News on Temporal Conjunctive Queries

Veronika ThostWSP/WOMoCoE@ISWC 2017

Introduction

In the evolving field of "stream reasoning," the ability to query data that changes over time is critical. Researchers utilize Temporal Conjunctive Queries (TCQs) to ask complex questions about temporal sequences. For instance, in a medical context, one might query for patients who were "previously infected with a virus and are not currently allergic to the vaccine." These queries combine standard conjunctive queries (CQs) with temporal operators such as "sometime in the past" or "always."

Formal semantics of Temporal Conjunctive Queries (TCQs) showing operators for negation, conjunction, future/past steps, and temporal intervals.

The semantics of TCQs, as shown in the table above, allow for expressive reasoning over time points. However, when these queries are executed against an ontology—a set of formal rules defining domain relationships (e.g., "Chickenpox is a type of VZV infection")—the computational cost can become significant.

The Challenge of Data Complexity

A primary concern in knowledge representation is data complexity: how the time required to answer a query scales as the volume of data grows. While the "combined complexity" (considering both the logic and the data) was well-understood, a significant gap existed for expressive description logics, particularly when dealing with "rigid" symbols. These are properties, such as a patient's blood type or chronic allergies, that are assumed to remain constant over time.

Example medical database tables illustrating patient IDs, names, allergy test results, and clinical findings over different dates.

For logics like $DL-Lite^\mathcal{H}_{krom}$ and $\mathcal{ALCHI}$, the data complexity of TCQ entailment was previously known only to lie somewhere between co-NP and ExpTime. This paper addresses this gap, focusing on whether adding temporal features necessarily makes querying harder as the underlying dataset (like the medical records above) expands.

Technical Contributions: Decoupling Time

The author's core contribution is a new characterization of r-satisfiability (satisfiability over a shared domain with rigid names). To prove a lower complexity bound, the paper introduces several novel constructions:

  • Canonical Interpretations: A "chase-based" approach is used to build a representative model of the knowledge base.
  • Tree-ABoxes: This construction captures "unnamed" individuals—those inferred by ontology rules rather than explicitly named in the data.
  • Nondeterministic Guessing: The author demonstrates that by "guessing" a polynomial amount of additional information (specifically "name-ABoxes" and "temporal types"), one can effectively decouple different time points.

This decoupling allows the system to verify the temporal query across the entire timeline without constructing an exponentially large model. By showing that this "guessing and checking" process can be completed in polynomial time, the author proves that the problem remains within the NP/co-NP complexity classes.

Key Results and Insights

The most significant finding is that for specific description logics, temporal features are essentially "for free" in terms of data complexity. Since standard query answering is already co-NP-hard in these logics, the temporal features do not add an extra layer of complexity.

  • Theorem 1: TCQ entailment for $DL-Lite^\mathcal{H}_{krom}$ is in co-NP regarding data complexity.
  • Corollary 1: This result extends to the more expressive logic $\mathcal{ALCHI}$, which is also shown to be in co-NP.

By settling the data complexity at co-NP, the author effectively closes the long-standing gap. This indicates that $DL-Lite^\mathcal{H}_{krom}$ is powerful enough to encode features of much more complex systems without a corresponding jump in computational cost.

Future Directions

While this theoretical breakthrough settles the complexity class, practical challenges remain. The proposed algorithm is nondeterministic, relying on "guessing" that is not directly implementable. Future work will focus on designing deterministic algorithms suitable for real-world stream-processing engines. Additionally, while this paper makes strides with rigid names, the interaction between complex ontologies and rigid roles (relationships that never change) remains a difficult frontier in description logic research.

Summary updated

BibTeX
@inproceedings{thost2017news,
  author = {Veronika Thost},
  title = {{News on Temporal Conjunctive Queries}},
  booktitle = {WSP/WOMoCoE@ISWC},
  year = {2017},
}
Figure