Hostname: page-component-89b8bd64d-9prln Total loading time: 0 Render date: 2026-05-06T08:08:32.372Z Has data issue: false hasContentIssue false

The Temporal Vadalog System: Temporal Datalog-Based Reasoning

Published online by Cambridge University Press:  07 April 2025

LUIGI BELLOMARINI
Affiliation:
Bank of Italy, Italy (e-mail: luigi.bellomarini@bancaditalia.it)
LIVIA BLASI
Affiliation:
Bank of Italy, Italy TU Wien, Austria (e-mail: livia.blasi@bancaditalia.it)
MARKUS NISSL
Affiliation:
TU Wien, Austria (e-mail: nissl@dbai.tuwien.ac.at)
EMANUEL SALLINGER
Affiliation:
TU Wien, Austria University of Oxford, UK (e-mail: sallinger@dbai.tuwien.ac.at)
Rights & Permissions [Opens in a new window]

Abstract

In the wake of the recent resurgence of the Datalog language of databases, together with its extensions for ontological reasoning settings, this work aims to bridge the gap between the theoretical studies of DatalogMTL (Datalog extended with metric temporal logic) and the development of production-ready reasoning systems. In particular, we lay out the functional and architectural desiderata of a modern reasoner and propose our system, Temporal Vadalog. Leveraging the vast amount of experience from the database community, we go beyond the typical chase-based implementations of reasoners, and propose a set of novel techniques and a system that adopts a modern data pipeline architecture. We discuss crucial architectural choices, such as how to guarantee termination when infinitely many time intervals are possibly generated, how to merge intervals, and how to sustain a limited memory footprint. We discuss advanced features of the system, such as the support for time series, and present an extensive experimental evaluation. This paper is a substantially extended version of “The Temporal Vadalog System” as presented at RuleML+RR ’22.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NC
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial licence (https://creativecommons.org/licenses/by-nc/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1. The reasoning pipeline for Example1.1. The atom significantShare is denoted by the filter S, significantOwner by O, watchCompany by W, connected by C, and J is an artificial filter to decompose, for simplicity, the ternary join of Rule 2 into binary joins.

Figure 1

Fig. 2. Overview of interleaving strategies; merging positions are marked in fuchsia.

Figure 2

Algorithm 1 Streaming Strategy in the MergeNode

Figure 3

Algorithm 2 Blocking Strategy in the MergeNode

Figure 4

Algorithm 3 Temporal Join between two predicates

Figure 5

Fig. 3. Basic time series operators in Temporal Vadalog: a) Shifting by 1; b) Rolling operator with $n=3$; c) Join of the extended intervals with the original ones.

Figure 6

Fig. 4. From simple moving average (a) to centered moving average (b), with $n=3$.

Figure 7

Fig. 5. (a) Temporal, Aggregation and Negation on MN7-MN28 over time; (b) Box and Diamond in Temporal Vadalog and MeTeoR; (c) RW dataset in all scenarios; (d) LUBM Non-Recursive experiment; (e) LUBM Recursive experiment; (f) Meteorological experiments; (g) iTemporal Box and Diamond; (h) iTemporal Union and Intersection; (i) Time Series.

Supplementary material: File

Bellomarini et al. supplementary material 1

Bellomarini et al. supplementary material
Download Bellomarini et al. supplementary material 1(File)
File 724.4 KB
Supplementary material: File

Bellomarini et al. supplementary material 2

Bellomarini et al. supplementary material
Download Bellomarini et al. supplementary material 2(File)
File 7.6 KB