When is Query Inseparability for ALC Ontologies Decidable?

Elena Botoeva, Carsten Lutz, Vladislav Ryzhikov, Frank Wolter, Michael ZakharyaschevDescription Logics 2016

Introduction

In ontology engineering, maintaining the integrity of query results during versioning or module extraction is paramount. This property, known as query inseparability, ensures that replacing one ontology with another does not alter the answers to any potential application queries. While well-understood for restricted "Horn" logics, the decidability of query inseparability for the more expressive $\mathcal{ALC}$ logic—the foundation of the Web Ontology Language (OWL)—has remained a significant open question for years.

The Challenge of Expressive Logics

The primary hurdle in analyzing $\mathcal{ALC}$ is its support for disjunction (the "OR" operator). Unlike simpler Horn logics, $\mathcal{ALC}$ does not possess a single "canonical model" that represents all possible states of the world. This lack of a representative model makes checking query entailment across all possible interpretations computationally difficult. The authors investigate whether we can computationally decide if one $\mathcal{ALC}$ ontology entails another regarding Conjunctive Queries (CQs) and Unions of Conjunctive Queries (UCQs).

Proving Undecidability

The paper's first major contribution is a proof that general query entailment for $\mathcal{ALC}$ is undecidable. The authors achieve this through a reduction from the $N \times M$ tiling problem, a classic undecidable problem in computer science.

By constructing a specific Knowledge Base (KB) and a query, they demonstrate that the query is entailed if and only if a valid tiling of a grid exists. The "key trick" involves leveraging $\mathcal{ALC}$'s disjunction to create branching models that simulate the complex constraints of a tiling grid. This finding is particularly striking because it holds even when the source ontology is written in a very simple logic like $\mathcal{EL}$, provided the target ontology uses $\mathcal{ALC}$.

The construction used to reduce the tiling problem to query entailment.

The Rooted Query Breakthrough

Despite the general undecidability result, the authors identify a critical "Aha!" moment: the problem becomes decidable when queries are restricted to be rooted. In a rooted query, every variable is connected to an answer variable, preventing the query from "wandering" into infinitely deep or disconnected parts of a model.

This is a major practical insight, as many real-world queries are naturally rooted. For Horn-$\mathcal{ALC}$ TBoxes, the authors show that non-entailment is always witnessed by tree-shaped data structures (ABoxes), allowing them to establish firm decidability and complexity bounds.

Complexity Landscape

The paper provides a comprehensive map of the decidability and complexity for both Knowledge Bases (KBs) and TBoxes.

For KBs, while CQ and UCQ entailment are undecidable, Rooted UCQ (rUCQ) entailment is decidable with a 2EXPTIME upper bound. For TBoxes, the landscape is similarly nuanced: CQ entailment remains undecidable for general $\mathcal{ALC}$, but for Horn-$\mathcal{ALC}$, it is 2EXPTIME-complete for general CQs and EXPTIME-complete for rooted CQs.

Comprehensive summary of decidability and complexity results for KBs (left) and TBoxes (right).

Conclusion and Future Work

This work settles a long-standing theoretical mystery and provides a roadmap for safe ontology management. While some complexity classes remain open (marked with "?" in the results), the identification of rooted queries as a decidable fragment offers a path toward practical algorithms. Future research will likely focus on extending these results to logics with inverse roles ($\mathcal{ALCI}$) and developing efficient tools for automated query inseparability testing.

Summary updated

BibTeX
@inproceedings{botoeva2016when,
  author = {Elena Botoeva and Carsten Lutz and Vladislav Ryzhikov and Frank Wolter and Michael Zakharyaschev},
  title = {{When is Query Inseparability for ALC Ontologies Decidable?}},
  booktitle = {Description Logics},
  year = {2016},
}
Figure