Introduction
In the context of the Semantic Web and large-scale database systems, maintaining absolute consistency between the extensional database (ABox) and the intensional rules or ontology (TBox) is often impractical. Under classical logic, even a single contradiction triggers the "principle of explosion," rendering the entire knowledge base useless for querying. To address this, Consistent Query Answering (CQA) has emerged as a robust framework. CQA identifies "repairs"—maximal consistent subsets of the data—and considers a query answer valid only if it holds across all possible repairs.
While theoretically sound, CQA is often computationally prohibitive. This paper provides a comprehensive theoretical analysis of the data complexity for answering queries over inconsistent knowledge bases using the Datalog+/- family of ontology languages.
Problem Statement and Semantics
The study focuses on data complexity, evaluating the hardness of answering Boolean Conjunctive Queries (BCQs) relative to the size of the database. Three primary semantics are analyzed:
- Cons (CQA): The standard approach where an answer must be true in every repair.
- Intersection Semantics (ICons): A more efficient approximation where queries are evaluated against the intersection of all repairs (the undisputed facts).
- Intersection of Closed Repairs (ICR): A finer approximation where queries are evaluated against the intersection of the logical closures of all repairs.
Methodology
The authors establish membership and hardness bounds for 11 syntactic fragments of Datalog+/- (e.g., guarded, linear, sticky, weakly-acyclic). The analysis utilizes polynomial-time reductions and guessing-and-verifying algorithms to pinpoint the exact complexity classes for each combination of fragment and semantics.
Key Results
The core findings of the paper are summarized in the complexity matrix below, which evaluates 11 Datalog+/- fragments against the three semantics.
The analysis reveals several critical insights:
- The Intractability of CQA and ICR: Both the standard Cons semantics and the ICR approximation are co-NP-complete across all 11 fragments studied. This indicates that ICR, while potentially providing more informative answers than ICons, offers no advantage in terms of worst-case data complexity.
- The Tractability of ICons: The Intersection Semantics (ICons) is the only approach that achieves tractability for specific fragments. It is FO-rewritable for the linear, multi-linear, sticky, and sticky-join fragments, meaning queries can be compiled into standard SQL and executed directly by an RDBMS.
- The Complexity Cliff: For ICons, there is a sharp divide: fragments are either FO-rewritable or co-NP-complete, with no intermediate complexity (such as PTIME-complete) observed among the studied fragments.
Conclusion and Future Work
The findings highlight a significant challenge: current approximations either fail to improve worst-case complexity (ICR) or are so restrictive that they only achieve tractability on a small subset of language fragments (ICons). The authors suggest that the field needs to invent new inconsistency-tolerant semantics that offer a better tradeoff between computational efficiency and answer quality. Future work will also involve exploring additional Datalog+/- fragments that might allow for tractable query answering under existing semantics.
Summary updated