Query Inseparability for ALC Ontologies

Elena Botoeva, Carsten Lutz, Vladislav Ryzhikov, Frank Wolter, Michael Zakharyaschev

Abstract

Determining whether two ontologies are indistinguishable under a specific set of queries is a fundamental problem in ontology engineering, known as query inseparability. While well-understood for lightweight Description Logics, the problem is significantly more complex for expressive logics like $\mathcal{ALC}$. This paper establishes that checking inseparability for Conjunctive Queries (CQs) is undecidable for $\mathcal{ALC}$ ontologies. However, the problem becomes decidable (2ExpTime-complete) when considering Unions of Conjunctive Queries (UCQs) or by restricting the ontologies to the Horn$\mathcal{ALC}$ fragment.

Introduction

In the field of ontology engineering, tasks such as versioning, modularization, and forgetting require comparing two ontologies to determine if they behave identically. While logical equivalence—checking if two ontologies have the exact same models—is a standard metric, it is often too restrictive for applications like ontology-based data access (OBDA). In OBDA, the primary concern is whether two ontologies yield the same answers to relevant database queries over a specific vocabulary, a property known as query inseparability.

While query inseparability has been extensively studied for lightweight Description Logics (DLs) like $\mathcal{EL}$ and DL-Lite, it has remained a technically daunting open problem for expressive, non-Horn DLs like $\mathcal{ALC}$. This paper addresses this gap by mapping the computational complexity of deciding query inseparability for $\mathcal{ALC}$ ontologies, considering both Knowledge Bases (KBs) and TBoxes.

Methodology

The authors utilize a combination of model theory and automata theory to establish their results:

  • Model-Theoretic Characterization: Query entailment is characterized using finite partial homomorphisms and products of interpretations. This allows the authors to translate the problem of query inseparability into checking for homomorphic embeddings between models.
  • Automata-Theoretic Reductions: For decidable cases, the model-theoretic criteria are encoded into emptiness problems for tree automata, specifically Two-way Alternating Parity Automata (2APTAs) and Non-deterministic Top-down Tree Automata (NTAs).
  • Hardness Proofs: Undecidability and complexity lower bounds are derived through reductions from known hard problems, such as the rectangle tiling problem and word problems for space-bounded alternating Turing machines.

Key Insights

The CQ Undecidability Surprise

A central finding of the paper is that checking inseparability for standard Conjunctive Queries (CQs) and rooted CQs (rCQs) is undecidable for $\mathcal{ALC}$. This holds true even when comparing an $\mathcal{ALC}$ ontology against one written in the highly restricted $\mathcal{EL}$ logic, and regardless of whether the comparison is between KBs or TBoxes.

UCQs to the Rescue

Counterintuitively, moving to a broader class of queries—Unions of Conjunctive Queries (UCQs)—makes the inseparability problem decidable. The authors show that UCQ inseparability for $\mathcal{ALC}$ KBs is 2ExpTime-complete. This shift occurs because UCQ inseparability can be characterized by simpler partial homomorphisms, whereas CQ inseparability requires complex products of models that lead to undecidability.

Complexity of KB query inseparability, highlighting the decidability of UCQs in ALC.

Horn-ALC Tractability

While CQ inseparability is undecidable for full $\mathcal{ALC}$, restricting the ontologies to the Horn$\mathcal{ALC}$ fragment—which disallows certain disjunctions—restores decidability. In this fragment, the problem is 2ExpTime-complete for CQs and ExpTime-complete for rooted CQs.

Summary of Complexity Results

The paper provides a comprehensive complexity landscape for query inseparability across different logics and query types.

Complexity of TBox query inseparability for CQs and rooted CQs across ALC and Horn-ALC.

Conclusion and Future Work

The undecidability of CQ inseparability for expressive DLs suggests that developers of ontology engineering tools must rely on sound approximations, such as UCQ inseparability. Future research will focus on the open question of UCQ inseparability for $\mathcal{ALC}$ TBoxes—which the authors conjecture is undecidable—and extending these results to logics incorporating inverse roles, qualified number restrictions, and nominals.

Summary updated

BibTeX
@article{botoeva2019query,
  author = {Elena Botoeva and Carsten Lutz and Vladislav Ryzhikov and Frank Wolter and Michael Zakharyaschev},
  title = {{Query Inseparability for ALC Ontologies}},
  journal = {Artificial Intelligence},
  year = {2019},
  doi = {10.1016/j.artint.2018.09.003},
}
Figure