Lune

AAAI2025Top-tier venue

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.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Incremental Maintenance of DatalogMTL MaterialisationsKaiyue Zhao, Dingqi Chen, Shaoyu Wang, Pan HuAAAI 2026

Builds on3

  1. MeTeoR: Practical Reasoning in Datalog with Metric Temporal OperatorsDingmin Wang, Pan Hu, Przemyslaw Andrzej Walega, Bernardo Cuenca GrauAAAI 2022 · 39 citations
  2. Stratified Negation in Datalog with Metric Temporal OperatorsDavid J. Tena Cucala, Przemyslaw Andrzej Walega, Bernardo Cuenca Grau, Egor V. KostylevAAAI 2021 · 28 citations
  3. iTemporal: An Extensible Generator of Temporal BenchmarksLuigi Bellomarini, Markus Nissl, Emanuel SallingerICDE 2022 · 7 citations

Related papers

  1. Materialisation-Based Reasoning in DatalogMTL with Bounded IntervalsPrzemyslaw Andrzej Walega, Michal Zawidzki, Dingmin Wang, Bernardo Cuenca GrauAAAI 2023 · 13 citations
  2. Temporal Conjunctive Query Answering via RewritingLukas Westhofen, Jean Christoph Jung, Daniel NeiderAAAI 2025 · 1 citation
  3. Datalog with First-Class FactsThomas Gilray, Arash Sahebolamri, Yihao Sun, Sowmith Kunapaneni et al.VLDB 2025 · 3 citations
  4. DiLA: Enhancing LLM Tool Learning with Differential Logic LayerYu Zhang, Hui-Ling Zhen, Zehua Pei, Yingzhao Lian et al.KDD 2026 · 6 citations
  5. Magic Shapes for SHACL ValidationShqiponja Ahmetaj, Bianca Löhnert, Magdalena Ortiz, Mantas SimkusVLDB 2022 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines