JOURNAL ARTICLE

Tractable Fragments of Datalog with Metric Temporal Operators

Abstract

We study the data complexity of reasoning for several fragments of MTL - an extension of Datalog with metric temporal operators over the rational numbers. Reasoning in the full MTL language is PSPACE-complete, which handicaps its application in practice. To achieve tractability we first study the core fragment, which disallows conjunction in rule bodies, and show that reasoning remains PSPACE-hard. Intractability prompts us to also limit the kinds of temporal operators allowed in rules, and we propose a practical core fragment for which reasoning becomes TC0-complete. Finally, we show that this fragment can be extended by allowing linear conjunctions in rule bodies, where at most one atom can be intensional (IDB); we show that the resulting fragment is NL-complete, and hence no harder than plain linear Datalog.

Keywords:
Datalog Fragment (logic) PSPACE Computer science Extension (predicate logic) Metric (unit) Time complexity Limit (mathematics) Theoretical computer science Core (optical fiber) Conjunction (astronomy) Linear temporal logic Temporal logic Programming language Algorithm Computational complexity theory Mathematics

Metrics

19
Cited By
2.35
FWCI (Field Weighted Citation Impact)
15
Refs
0.90
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence
Logic, Reasoning, and Knowledge
Physical Sciences →  Computer Science →  Artificial Intelligence
Logic, programming, and type systems
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

Stratified Negation in Datalog with Metric Temporal Operators

David J. Tena CucalaPrzemysław Andrzej WałęgaBernardo Cuenca GrauEgor V. Kostylev

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2021 Vol: 35 (7)Pages: 6488-6495
JOURNAL ARTICLE

MeTeoR: Practical Reasoning in Datalog with Metric Temporal Operators

Dingmin WangPan HuPrzemysław Andrzej WałęgaBernardo Cuenca Grau

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2022 Vol: 36 (5)Pages: 5906-5913
JOURNAL ARTICLE

The Stable Model Semantics of Datalog with Metric Temporal Operators

Przemysław Andrzej WałęgaDavid J. Tena CucalaBernardo Cuenca GrauEgor V. Kostylev

Journal:   Theory and Practice of Logic Programming Year: 2023 Vol: 24 (1)Pages: 22-56
© 2026 ScienceGate Book Chapters — All rights reserved.