Two Upper Bounds for Conjunctive Query Answering in SHIQ

Carsten LutzDescription Logics 2008

Abstract

In the field of Knowledge Representation, Description Logics (DLs) serve as the formal foundation for ontologies. While standard reasoning tasks like satisfiability are well-understood, Conjunctive Query (CQ) answering—a more expressive way to interact with data—often incurs a significant computational penalty. This paper investigates the complexity of CQ answering in the logics $\mathcal{SHQ}$ and $\mathcal{SHIQ}$. The author demonstrates that the absence of inverse roles in $\mathcal{SHQ}$ allows CQ answering to remain within ExpTime, the same complexity class as standard reasoning. Additionally, for the more expressive $\mathcal{SHIQ}$, the paper establishes that restricting queries to be "rooted" provides a tighter upper bound of co-NExpTime-complete.

Introduction

Description Logics (DLs) are widely used to model complex domains, providing a balance between expressivity and computational tractability. Traditionally, users have interacted with DL knowledge bases through instance retrieval—asking whether a specific individual belongs to a concept. However, many real-world applications require Conjunctive Queries (CQs), which allow for the retrieval of individuals based on complex relational patterns.

While CQs offer greater power, they are significantly more difficult to process. For many expressive DLs, the complexity of query answering jumps from ExpTime (exponential time) to 2-ExpTime (doubly exponential time). This paper, authored by Carsten Lutz, seeks to pinpoint the specific features of DLs that cause this complexity jump and identifies structural constraints that can mitigate the computational cost.

The Role of Inverse Roles in $\mathcal{SHQ}$

One of the primary contributions of this work is identifying the "culprit" behind the high complexity of CQ answering: inverse roles. In logics like $\mathcal{SHIQ}$, roles can be traversed in both directions, which complicates the way queries map onto the underlying models.

By focusing on $\mathcal{SHQ}$—a logic that includes transitive roles and role hierarchies but lacks inverse roles—the author proves that CQ answering is ExpTime-complete. This result is significant because it shows that for $\mathcal{SHQ}$, CQs are no harder than standard satisfiability or instance retrieval.

Methodology: Reduction to ABox Consistency

To prove the upper bound for $\mathcal{SHQ}$, the author employs a reduction technique that transforms the query entailment problem into an ABox consistency problem in an extended logic ($\mathcal{SHQ}^\cap$). The proof utilizes several key concepts:

  • Fork Rewritings: A technique to collapse query variables that must map to the same point in a model.
  • Splittings: A method to partition a query based on how it fits into the "forest models" (tree-like structures) typical of DLs.
  • Spoilers: The author introduces "spoilers," which are small, artificial knowledge bases representing potential counter-examples to a query match. By enumerating these spoilers, the problem is reduced to checking if any are consistent with the original knowledge base.

Rooted Queries in $\mathcal{SHIQ}$

In the second part of the paper, the author addresses the more expressive logic $\mathcal{SHIQ}$, which includes inverse roles. While general CQ answering in $\mathcal{SHIQ}$ is known to be 2-ExpTime-hard, the author examines the effect of a "rootedness" constraint.

A query is considered "rooted" if it is connected and contains at least one answer variable (an individual already named in the ABox). Because these queries are anchored to specific individuals, the search space for a match is constrained. The paper proves that for rooted CQs in $\mathcal{SHIQ}$, the complexity is co-NExpTime-complete. This provides a much tighter upper bound than previously established and suggests that many practical queries—which are naturally anchored to specific data points—are easier to solve than the general case.

Theoretical Insights

The research relies heavily on the forest model property of DLs. Even though CQs can represent non-tree-shaped patterns, the author demonstrates how they can be decomposed or "broken down" to fit the tree-like structures of DL models. This insight is fundamental to bridging the gap between the graph-like nature of queries and the tree-like nature of DL interpretations.

Conclusion and Limitations

The results presented by Lutz provide a clearer map of the DL complexity landscape. By identifying inverse roles as the driver of 2-ExpTime complexity and demonstrating the "computational discount" provided by rooted queries, the paper offers valuable theoretical bounds for the development of future reasoners.

However, several limitations remain:

  1. Simple Roles: The proofs assume that "non-simple roles" (such as transitive roles) do not appear within the conjunctive query itself. Including transitive roles in CQs remains a significantly more difficult problem.
  2. Theoretical Nature: The algorithms described, particularly the enumeration of spoilers, are designed for complexity proofs rather than direct implementation. Practical high-performance reasoners would require more optimized approaches.
  3. Future Extensions: The author suggests that these techniques might be extendable to even more expressive logics, such as those incorporating nominals ($\mathcal{O}$) or more complex role hierarchies, which remain areas for future research.

Summary updated

BibTeX
@inproceedings{lutz2008two,
  author = {Carsten Lutz},
  title = {{Two Upper Bounds for Conjunctive Query Answering in SHIQ}},
  booktitle = {Description Logics},
  year = {2008},
}
Figure