Abstract
This research maps the computational landscape of answering queries that combine Metric Temporal Logic (MTL) with ontologies under event-based semantics. By identifying specific fragments of MTL where query answering ranges from First-Order (FO) rewritable to P-complete, this work provides a roadmap for building practical systems capable of reasoning over real-time sensor data and industrial logs.
Introduction
In industrial monitoring, such as Siemens power turbine operations, data is typically a stream of events with precise timestamps. While standard Ontology-Based Data Access (OBDA) allows querying high-level concepts, it often fails to handle "metric" temporal constraints (e.g., "Did a specific condition persist for exactly 30 seconds within a two-minute window?"). Metric Temporal Logic (MTL) offers the necessary expressivity for these real-time constraints, but its combination with ontologies introduces significant computational overhead. This paper focuses on the data complexity of MTL-mediated queries (OMQs), specifically seeking "rewritings" into standard database languages like SQL for efficient execution.
Methodology
The study investigates several fragments of MTL-OMQs under event-based semantics, where data consists of discrete atoms timestamped with binary fractions (dyadic rationals). The classification follows three main axes:
- Logic Fragment: Distinguishing between general MTL, the "Horn" fragment (disallowing disjunction in rule heads), and the "Core" fragment.
- Temporal Range: Categorizing queries by interval types in operators, such as infinite ($[r, \infty)$), punctual ($[r, r]$), or arbitrary non-punctual intervals.
- Descriptive Complexity: Utilizing tools to provide rewritings into First-Order logic (FO) and its extensions, including Transitive Closure (TC) and Relational Primitive Recursion (RPR).
Key Insights: The Impact of Temporal Ranges
A primary finding is that the complexity of query answering is heavily dictated by the type of temporal intervals used. Infinite ranges are the most efficient, falling into AC$^0$ and being FO-rewritable. In contrast, punctual ranges (e.g., "exactly 5 seconds ago") increase complexity to NC$^1$, requiring more powerful FO(RPR) rewritings.
The choice of event-based semantics over continuous state-based semantics allows for the application of discrete automata techniques. For linear Horn-MTL queries, the authors introduce a novel "metric automaton" to characterize certain answers, facilitating the proof of complexity bounds.
Complexity Results and Rewritability
The paper establishes a comprehensive hierarchy for MTL-OMQ data complexity:
- General MTL: CONP-complete.
- Horn-MTL: P-complete, rewritable to
datalog(FO). - Core-MTL with $\Diamond$ (Sometime in the past): NL-hard and FO(TC)-rewritable.
- Core-MTL with $\Box$ (Always in the past): P-hard.
- Range-Uniform Core-MTL: FO($<,+$)-rewritable for specific non-punctual ranges.
These results identify "sweet spots"—logic fragments expressive enough for industrial requirements yet simple enough for translation into standard database queries.
Conclusion and Future Work
While this work provides the mathematical foundations for temporal OBDA, several avenues for future research remain. The current study focuses on "past" MTL operators; proving similar bounds for "future" operators is a logical next step. Additionally, the techniques used for event-based semantics do not directly translate to continuous state-based semantics, which remains a significantly harder challenge. Finally, practical implementation and performance evaluation of these rewritings on real-world database engines are necessary to validate their industrial utility.
Summary updated