Abstract
This paper introduces a framework for "rule repairs" to facilitate query answering in ontologies where existential rules conflict with underlying data. By utilizing preference-based ontologies and stable model semantics, the authors demonstrate that for several common rule classes, this robust approach does not increase the computational complexity of query answering. The proposed framework is implemented via Answer Set Programming (ASP), showing high scalability and efficiency in practical benchmarks.
Introduction
In Knowledge Representation, existential rules (or Datalog±) are used to infer new facts from existing data. Traditional conflict resolution focuses on "data repairs"—modifying the facts to fit the rules. However, rules themselves can be unreliable if they are automatically learned or contain human errors. This paper addresses "rule repairs," where maximal consistent subsets of rules are selected to provide reliable query answers under stable model semantics.
Methodology and Complexity
The authors propose a framework based on Preference-based Ontologies, allowing users to rank rules by reliability (e.g., set inclusion, cardinality, or weights). A query is considered "certainly" true if it holds under all preferred rule repairs.
A core contribution of the work is a rigorous complexity analysis. The authors focus on two tractable classes: R-acyclic and guarded existential rules. Surprisingly, for R-stratified or guarded rules with stratified negation, query answering under rule repairs maintains the same complexity as standard query answering.
As shown in the table above, data complexity remains PTIME-complete for standard stratified cases, while combined complexity stays at 2EXPTIME-complete. Adding full negation shifts data complexity into the Boolean Hierarchy (BH).
Empirical Evaluation
The authors implemented their framework in a prototype system called QAIER, which translates logic problems into Answer Set Programming (ASP) for resolution by high-performance solvers like clingo. Evaluation was conducted using two modified industry benchmarks:
- Modified LUBM (Lehigh University Benchmark): Used to test data complexity by scaling the number of facts up to ~1.2 million.
- Modified ChEBI (Chemical Entities of Biological Interest): Used to test combined complexity by varying both rules and facts.
Key Results
The empirical results highlight the scalability of the QAIER system. Notably, using prioritized repairs (such as weighted repairs, $\leq_w$) significantly improved performance. This is because the ASP solver can prune the search space once a consistent set at a high priority level is identified.
As seen in the LUBM results, the system handled over 1.2 million facts in approximately 432 seconds using weighted repairs. Prioritized set inclusion ($\subseteq_P$) and weighted repairs consistently outperformed simple inclusion-maximal repairs ($\subseteq$), often by several orders of magnitude.
Conclusion and Future Work
By shifting the focus to rule repairs, this framework provides a robust solution for modern Knowledge Graph applications where schemas are fluid and prone to error. Future research will explore expanding these results to broader classes of existential rules and identifying "first-order rewritable" rule classes that could allow direct translation into SQL for even greater scalability.
Summary updated