Lune

AAAI2026Top-tier venue

Incremental Maintenance of DatalogMTL Materialisations

Kaiyue Zhao, Dingqi Chen, Shaoyu Wang, Pan Hu

Abstract

DatalogMTL extends the classical Datalog language with metric temporal logic (MTL), enabling expressive reasoning over temporal data. While existing reasoning approaches, such as materialisation-based and automata-based methods, offer soundness and completeness, they lack support for handling efficient dynamic updates-a crucial requirement for real-world applications that involve frequent data updates. In this work, we propose DRedMTL, an incremental reasoning algorithm for DatalogMTL with bounded intervals. Our algorithm builds upon the classical Delete/Rederive (DRed) algorithm, which incrementally updates the materialisation of a Datalog program. Unlike a Datalog materialisation which is in essence a finite set of facts, a DatalogMTL materialisation has to be represented as a finite set of facts plus periodic intervals indicating how the full materialisation can be constructed through unfolding. To cope with this, our algorithm is equipped with specifically designed operators to efficiently handle such periodic representations of DatalogMTL materialisations. We have implemented this approach and tested it on several publicly available datasets. Experimental results show that DRedMTL often significantly outperforms rematerialisation, sometimes by orders of magnitude. Code, datasets and instructionsgithub.com/Horizon12275/DREDmtl-for-DatalogMTL Extended version with full proofarxiv.org/abs/2511.12169

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Goal-Driven Reasoning in DatalogMTL with Magic Sets cites iTemporal: An Extensible Generator of Temporal Benchmarks
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. iTemporal: An Extensible Generator of Temporal BenchmarksLuigi Bellomarini, Markus Nissl, Emanuel SallingerICDE 2022 · 7 citations
  2. Goal-Driven Reasoning in DatalogMTL with Magic SetsShaoyu Wang, Kaiyue Zhao, Dongliang Wei, Przemyslaw Andrzej Walega et al.AAAI 2025 · 2 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. MeTeoR: Practical Reasoning in Datalog with Metric Temporal OperatorsDingmin Wang, Pan Hu, Przemyslaw Andrzej Walega, Bernardo Cuenca GrauAAAI 2022 · 39 citations
  3. Stratified Negation in Datalog with Metric Temporal OperatorsDavid J. Tena Cucala, Przemyslaw Andrzej Walega, Bernardo Cuenca Grau, Egor V. KostylevAAAI 2021 · 28 citations
  4. Finding Cross-Rule Optimization Bugs in Datalog EnginesChi Zhang, Linzhang Wang, Manuel RiggerOOPSLA 2024 · 2 citations
  5. Optimizing Nested Recursive QueriesAmir Shaikhha, Dan Suciu, Maximilian Schleich, Hung Q. NgoSIGMOD 2024 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines