Goal-Driven Reasoning in DatalogMTL with Magic Sets
Shaoyu Wang, Kaiyue Zhao, Dongliang Wei, Przemyslaw Andrzej Walega, Dingmin Wang, Hongming Cai, Pan Hu
Abstract
DatalogMTL is a powerful rule-based language for temporal reasoning. Due to its high expressive power and flexible modeling capabilities, it is suitable for a wide range of applications, including tasks from industrial and financial sectors. However, due its high computational complexity, practical reasoning in DatalogMTL is highly challenging. To address this difficulty, we introduce a new reasoning method for Dat-alogMTL which exploits the magic sets technique-a rewriting approach developed for (non-temporal) Datalog to simulate top-down evaluation with bottom-up reasoning. We have implemented this approach and evaluated it on publicly available benchmarks, showing that the proposed approach significantly and consistently outperformed state-of-the-art reasoning techniques.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- MeTeoR: Practical Reasoning in Datalog with Metric Temporal Operators cites Stratified Negation in Datalog with Metric Temporal Operators
- Incremental Maintenance of DatalogMTL Materialisations cites iTemporal: An Extensible Generator of Temporal Benchmarks
Cited by top-tier papers1
Builds on3
- MeTeoR: Practical Reasoning in Datalog with Metric Temporal OperatorsDingmin Wang, Pan Hu, Przemyslaw Andrzej Walega, Bernardo Cuenca GrauAAAI 2022 · 39 citations
- Stratified Negation in Datalog with Metric Temporal OperatorsDavid J. Tena Cucala, Przemyslaw Andrzej Walega, Bernardo Cuenca Grau, Egor V. KostylevAAAI 2021 · 28 citations
- iTemporal: An Extensible Generator of Temporal BenchmarksLuigi Bellomarini, Markus Nissl, Emanuel SallingerICDE 2022 · 7 citations
Related papers
- Materialisation-Based Reasoning in DatalogMTL with Bounded IntervalsPrzemyslaw Andrzej Walega, Michal Zawidzki, Dingmin Wang, Bernardo Cuenca GrauAAAI 2023 · 13 citations
- Temporal Conjunctive Query Answering via RewritingLukas Westhofen, Jean Christoph Jung, Daniel NeiderAAAI 2025 · 1 citation
- Datalog with First-Class FactsThomas Gilray, Arash Sahebolamri, Yihao Sun, Sowmith Kunapaneni et al.VLDB 2025 · 3 citations
- DiLA: Enhancing LLM Tool Learning with Differential Logic LayerYu Zhang, Hui-Ling Zhen, Zehua Pei, Yingzhao Lian et al.KDD 2026 · 6 citations
- Magic Shapes for SHACL ValidationShqiponja Ahmetaj, Bianca Löhnert, Magdalena Ortiz, Mantas SimkusVLDB 2022 · 7 citations
