Abstract
This paper presents the first decision procedures for answering conjunctive queries (CQs) in the expressive Description Logics (DLs) SHQ and SHOQ. A primary challenge in these logics is the presence of transitive roles and cyclic queries, which often violate the tree-model property inherent to standard DL reasoning. By incorporating "binders" from Hybrid Logics and developing novel variable-guessing strategies, the authors provide a sound and complete reasoning framework that maintains decidability while handling complex graph-based data structures.
Introduction: The Challenge of Cyclic Queries
Description Logics serve as the formal foundation for ontologies and the Semantic Web (e.g., OWL). While checking concept consistency is well-understood, answering Conjunctive Queries—which involve "joins" over graph-structured data—presents significant difficulty.
The core challenge lies in handling transitive roles (e.g., "part-of" or "ancestor-of") and cycles within a query. Most DLs are designed around a "tree-model property," preferring data structures that do not loop back on themselves. When a query contains a cycle involving transitive relations, standard "rolling-up" techniques—which transform a query into a single DL concept—typically fail.
Methodology
The authors propose two distinct approaches tailored to the specific logic being addressed:
1. SHQ: Hybrid Logic Binders
For SHQ (DL with transitive roles and number restrictions), the authors extend the logic with a restricted form of the "downward binder" ($\downarrow$) from Hybrid Logics. This allows the algorithm to "label" a specific node in the data and refer back to it later, effectively representing a cycle as a linear path that "remembers" its starting point.
The standard SHOQ tableaux algorithm is adapted to handle these binders. A key innovation is the proof that "blocking" (the technique used to ensure the algorithm terminates) can safely ignore these binders in SHQ, preventing infinite loops during computation.
2. SHOQ: Sophisticated Guessing
In SHOQ (SHQ plus nominals/named individuals), nominals can create cycles that deviate from simple tree structures. The authors introduce a non-deterministic "guessing" strategy to identify which variables in a query cycle correspond to named individuals or "shortcuts" created by transitive roles.
Key Insights
- The Decidability Paradox: While adding $\downarrow$ binders generally makes DLs undecidable, the authors discovered that restricting their appearance (negated and under universal quantifiers in the final check) preserves decidability.
- Loss of the Finite Model Property: Introducing binders to handle transitive cycles causes the logic to lose the "finite model property." This means some sets of facts can only be satisfied by an infinite model, which has significant implications for how reasoning engines must be constructed.
- The "Inverse Role" Wall: Adding inverse roles (the ability to navigate relationships in both directions) significantly complicates the problem. Inverse roles break the "safe blocking" conditions, meaning a reasoner might think it has found a solution when it has actually created an invalid loop.
Results and Future Work
The paper successfully proves that conjunctive query answering is decidable for both SHQ and SHOQ, even with transitive roles. The proposed rolling-up technique integrates more seamlessly into existing tableaux-based reasoners than previous "CARIN-style" algorithms, which required separate, highly non-deterministic mapping steps.
However, limitations remain. The current techniques do not yet support inverse roles (the "I" in SHIQ/SHOIQ). Furthermore, the guessing technique for SHOQ is highly non-deterministic and may be computationally expensive for queries involving many nominals. Future work aims to extend these techniques to the full range of OWL-DL knowledge bases.
Summary updated