Incremental Maintenance of DatalogMTL Materialisations

Authors

  • Kaiyue Zhao Shanghai Jiao Tong University
  • Dingqi Chen Shanghai Jiao Tong University
  • Shaoyu Wang Shanghai Jiao Tong University University of Oxford
  • Pan Hu Shanghai Jiao Tong University

DOI:

https://doi.org/10.1609/aaai.v40i23.39025

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.

Downloads

Published

2026-03-14

How to Cite

Zhao, K., Chen, D., Wang, S., & Hu, P. (2026). Incremental Maintenance of DatalogMTL Materialisations. Proceedings of the AAAI Conference on Artificial Intelligence, 40(23), 19467–19476. https://doi.org/10.1609/aaai.v40i23.39025

Issue

Section

AAAI Technical Track on Knowledge Representation and Reasoning