Worst-case Optimal Conjunctive Query Answering for an Expressive Description Logic without Inverses

Magdalena Ortiz, Mantas Simkus, Thomas EiterAAAI 2008

Abstract

Answering conjunctive queries (CQs) is a critical task for utilizing Description Logics (DLs) in data-intensive applications. This paper presents a worst-case optimal algorithm for CQ answering in the DL $\mathcal{ALCH}$. By introducing a novel "knot" compilation technique, the authors demonstrate that the problem is EXPTIME-complete, matching the complexity of standard satisfiability testing. This result is significant as it improves upon previous double-exponential (2EXPTIME) algorithms and highlights that the absence of inverse roles prevents an exponential jump in complexity.

Introduction

Description Logics (DLs) serve as the formal backbone for modern ontologies and the Semantic Web. While standard reasoning tasks like consistency checking are well-studied, Conjunctive Query (CQ) answering—which allows for complex joins across graph-structured data—presents a higher computational challenge. For the logic $\mathcal{ALC}$ and its extensions, the exact complexity of CQ answering remained an open question for years, with existing methods often hitting a 2EXPTIME ceiling. This research addresses the gap for $\mathcal{ALCH}$ (which includes role hierarchies), providing a worst-case optimal solution for logics without inverse roles.

Methods: The Knot Compilation Technique

The core of the proposed algorithm is a technique that compiles a Knowledge Base (KB) into a set of "knots." This approach leverages the forest-shaped model property of $\mathcal{ALCH}$.

  1. Normalization: The KB is first transformed into a simplified normal form to streamline processing.
  2. Knot Compilation: A "knot" is defined as a schematic representation of a small model fragment—specifically, a tree of depth $\le 1$. Since $\mathcal{ALCH}$ models can be viewed as collections of these knots tiled together, the algorithm identifies all possible valid knots for a given TBox.
  3. Rooted Subquery Entailment: The algorithm decomposes the CQ into sub-parts and uses a fixpoint computation to determine which knots satisfy which query components.
  4. Datalog Reduction: Finally, the problem of answering the query over the actual ABox (data) is reduced to evaluating a Datalog program over the compiled knots.
Illustration of knots and their tiling to form models.

This modular approach allows the schema (TBox) to be compiled independently of the data, making it potentially more efficient for stable ontologies with changing datasets.

Key Insights

The Impact of Inverse Roles

A primary finding of this work is the "cost" of inverse roles. In $\mathcal{ALCH}$, query answering is EXPTIME-complete. However, adding inverse roles ($\mathcal{ALCI}$) causes the complexity to jump to 2EXPTIME. This is because inverse roles allow information to flow "upward" in the model, breaking the local tree-like structure that the knot technique exploits.

Complexity Parity

The paper proves that for $\mathcal{ALCH}$, answering a complex join query is computationally no more expensive in the worst case than checking the consistency of the ontology itself. Furthermore, the algorithm achieves coNP-completeness in terms of data complexity, which is the theoretical lower bound for this class of logics.

Results and Conclusion

The established EXPTIME-completeness for $\mathcal{ALCH}$ provides a definitive upper bound for CQ answering in this logic. The algorithm's reduction to Datalog suggests it is amenable to efficient implementation, although this paper focuses on the theoretical framework.

Limitations and Future Work

The current method is strictly limited to logics without inverse roles. While the authors suggest extensions to $\mathcal{SH}$ (adding transitive roles) and logics with number restrictions, these remain areas for future exploration. Additionally, while the theoretical results are optimal, empirical performance against existing non-optimal solvers on real-world benchmarks is yet to be evaluated.

Summary updated

BibTeX
@inproceedings{ortiz2008worst,
  author = {Magdalena Ortiz and Mantas Simkus and Thomas Eiter},
  title = {{Worst-case Optimal Conjunctive Query Answering for an Expressive Description Logic without Inverses}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2008},
  url = {https://openreview.net/forum?id=rkbiu6guWB},
}
Figure