Data Complexity of Answering Unions of Conjunctive Queries in SHIQ

Magdalena Ortiz, Diego Calvanese, Thomas EiterDescription Logics 2006

Abstract

This research addresses the computational complexity of answering Unions of Conjunctive Queries (UCQs) over knowledge bases expressed in the Description Logic (DL) $SHIQ$. While $SHIQ$ is highly expressive—supporting inverse roles, number restrictions, and role hierarchies—its data complexity for query answering remained an open problem for years. This paper presents a novel tableaux-based algorithm that establishes a tight coNP-complete upper bound for data complexity. This result aligns the data complexity of $SHIQ$ with much simpler DLs, providing a theoretical foundation for efficient query answering in large-scale ontology-based data access.

Introduction

In the context of the Semantic Web and ontology-based data integration, Description Logics (DLs) serve as the formal foundation for representing domain knowledge. $SHIQ$ is a particularly important DL because it balances expressivity with decidability, making it suitable for complex real-world ontologies. However, the practical utility of these systems depends on the efficiency of query answering, especially as the volume of data (the ABox) grows.

Computational complexity in DLs is typically analyzed in two ways: combined complexity, which considers both the query and the ontology as variables, and data complexity, which fixes the query and ontology while the data size grows. Given that real-world datasets are often massive compared to their governing ontologies, data complexity is the more critical metric for performance. Prior to this work, a significant gap existed for $SHIQ$: while query answering was known to be coNP-hard, the best-known upper bound was ExpTime.

Problem Statement

The primary challenge in $SHIQ$ query answering is the logic's lack of the "finite model property." Some $SHIQ$ knowledge bases only admit infinite models, making it difficult to determine if a query is entailed by all possible models. The goal of this research was to bridge the gap between the known lower bound (coNP) and the existing upper bounds for answering UCQs in $SHIQ$, specifically focusing on cases where queries do not contain transitive roles.

Methodology: Tableaux and Completion Forests

The authors developed a specialized tableaux-based algorithm to decide query entailment. Tableaux algorithms work by attempting to construct a "completion forest"—a finite representation of a set of models that satisfy the knowledge base.

The $n$-Blocking Condition

To handle the potential for infinite models, the algorithm employs a sophisticated $n$-blocking condition. This condition determines when a branch of the completion forest can be "blocked" (stopped) because it repeats a pattern seen earlier. The depth parameter $n$ is carefully chosen based on the size of the query to ensure that the finite forest accurately represents all relevant properties of potentially infinite models.

Figure 1: Example of structures $T_1$ and $T_2$ representing completion forests or model fragments used to analyze query entailment.

Syntactic Mapping

The algorithm checks for query entailment by attempting to find a syntactic mapping from the query into the generated completion forests. If no such mapping exists for a forest that represents a model of the knowledge base, then the query is not entailed. The authors proved that expanding the forest to a depth related to the query size is sufficient to make this determination.

Key Results

The central contribution of this paper is the proof of a tight coNP upper bound for the data complexity of UCQ answering in $SHIQ$.

  • Data Complexity: The problem is confirmed to be coNP-complete. This is a significant result as it shows that the high expressivity of $SHIQ$ does not necessarily lead to worse scaling behavior than simpler logics like $ALC$ when data size is the primary factor.
  • Combined Complexity: The authors also provide a co-3NExpTime upper bound for combined complexity. While likely not tight, it provides a new reference point for future refinements.

Conclusion and Future Work

By closing the data complexity gap for $SHIQ$, this research provides a strong theoretical justification for using expressive ontologies in data-intensive applications. The results suggest that the "hardness" of the problem is dominated by the inherent complexity of the data itself rather than the complexity of the $SHIQ$ constructs.

Future research directions include:

  1. Transitive Roles in Queries: Extending the results to queries that include transitive roles, which currently remains an open problem.
  2. Algorithmic Optimization: Transitioning the non-deterministic tableaux algorithm into a deterministic, highly optimized implementation suitable for production environments.
  3. Refining Combined Complexity: Narrowing the gap for combined complexity, with a 2ExpTime bound being a likely target.

Summary updated

BibTeX
@inproceedings{ortiz2006data,
  author = {Magdalena Ortiz and Diego Calvanese and Thomas Eiter},
  title = {{Data Complexity of Answering Unions of Conjunctive Queries in SHIQ}},
  booktitle = {Description Logics},
  year = {2006},
}
Figure