Data Complexity of Querying Description Logic Knowledge Bases under Cost-Based Semantics

Meghyn Bienvenu, Quentin ManièrearXiv 2025

TL;DR

This paper maps out the data complexity of querying inconsistent, weighted description logic knowledge bases under cost-based semantics. It resolves a major open problem by proving a tight $\Delta^p_2$ complexity bound for optimal-cost semantics and uncovers a surprising pocket of tractability ($\text{AC}^0$) for $\text{DL-Lite}^\mathcal{H}_\text{bool}$ ontologies using first-order query rewriting.

What Problem Does This Paper Address?

Ontology-mediated query answering (OMQA) supercharges traditional database querying by factoring in logical rules (ontologies) to uncover hidden relationships in data. However, real-world data is messy. When data conflicts with the ontology, the knowledge base becomes logically inconsistent, causing classical query answering to trivialize—meaning every possible answer becomes vacuously "certain."

To handle this, researchers use cost-based semantics. In this framework, data assertions and ontology rules are annotated with weights (penalties for violations). The system then answers queries by looking at data interpretations that minimize these penalties (optimal-cost) or stay under a specific threshold (bounded-cost).

While promising, prior work left massive gaps: the exact computational upper bounds for optimal-cost querying were unknown, and the framework hadn't been extended to expressive description logics that support inverse roles and role inclusions (like the popular DL-Lite family used in industry). This paper tackles these exact limitations.

Methods

The authors employ purely theoretical proof techniques to map out data complexity (how query time scales with the size of the database):

  • Cost-Independent Quotient Construction: To establish upper bounds for highly expressive description logics (up to $\mathcal{ALCHIO}$), the authors designed a novel filtration technique. This method collapses massive logical interpretations into a "small interpretation" whose size is polynomially bounded only by the database size, completely independent of the cost bound $k$.
  • First-Order (FO) Rewriting: For the $\text{DL-Lite}^\mathcal{H}_\text{bool}$ dialect under a fixed cost bound, the authors proved a "very small interpretation property." They demonstrated that any relevant data violations are localized within a predictable "core" of rare data types. This allowed them to compile both the query and the ontology into a single standard first-order query (like SQL) that can be executed directly on the database.

Datasets

Not discussed in the paper. As a purely theoretical study on computational complexity, no empirical datasets or benchmarks were used.

Key Insights and Ideas

  • Taming the Cost Bound: The core challenge in proving the $\Delta^p_2$ upper bound was that previous filtration methods resulted in interpretation sizes that scaled exponentially with the cost bound $k$. By separating the ontology axioms into "expensive" and "cheap" sets, the authors decoupled the interpretation size from $k$, proving that a small counter-model always exists if a query is false.
  • Locality Breeds Tractability: Optimization problems are notoriously intractable (NP-hard). However, the authors realized that under a fixed cost bound $k$ in DL-Lite, the cascading effect of data violations stops at a depth of $k+1$. Because the impact of an inconsistency is strictly local, the problem doesn't scale with the size of the database, leading to the lowest possible data complexity class: $\text{AC}^0$.

Key Results

The paper provides a comprehensive complexity landscape, with the main highlights being:

  • Optimal-Cost Exactness: Query answering under optimal-cost semantics is proven to be $\Delta^p_2$-complete for all studied description logics (from lightweight $\mathcal{EL}_\bot$ to expressive $\mathcal{ALCHIO}$).
  • Fixed-Cost Efficiency: For $\text{DL-Lite}^\mathcal{H}_\text{bool}$ ontologies, evaluating bounded-cost possible semantics for Conjunctive Queries (CQs) and certain semantics for Instance Queries (IQs) drops to $\text{AC}^0$ data complexity.
  • Sharpened Lower Bounds: The authors proved that bounded-cost query answering remains NP-hard (or coNP-hard) even for the lowest non-trivial cost bound ($k=1$), showing that varying the cost bound quickly introduces intractability.
Logic Family Bounded-Cost (Fixed $k$) Optimal-Cost
$\mathcal{EL}_\bot$ / $\mathcal{ALCHIO}$ $\text{NP}$ / $\text{coNP}$-complete $\Delta^p_2$-complete
$\text{DL-Lite}_\text{core} / \text{DL-Lite}^\mathcal{H}_\text{bool}$ $\text{in AC}^0$ (for CQs possible / IQs certain) $\Delta^p_2$-complete

Limitations and Future Work

  • Fixed vs. Variable Costs: The highly efficient $\text{AC}^0$ rewriting only works when the cost bound $k$ is a fixed constant. If $k$ is part of the input or needs to be optimized, the problem becomes intractable.
  • Expressivity Limits: Certain semantics for full Conjunctive Queries (CQs)—as opposed to simpler Instance Queries (IQs)—remain $\text{coNP}$-hard even in DL-Lite under fixed costs.
  • Next Steps: The authors note that their current framework cannot handle negative role inclusions (needed for $\text{DL-Lite}_\mathcal{R}$) or ontologies with functionality/number restrictions, which often require infinite interpretations. Developing practical implementations of their first-order rewritings is also flagged as an important future direction.

Summary updated

BibTeX
@misc{bienvenu2025data,
  author = {Meghyn Bienvenu and Quentin Manière},
  title = {{Data Complexity of Querying Description Logic Knowledge Bases under Cost-Based Semantics}},
  year = {2025},
  eprint = {2511.07095},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07095},
}
Figure