[Paper Review] Computing Datalog Rewritings beyond Horn Ontologies
This paper presents a resolution-based procedure for computing datalog rewritings of non-Horn ontologies, particularly $σ$-Horn and $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$, proving that such rewritings are possible despite general non-rewritability in non-Horn settings. The method ensures termination and correctness for $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$, enabling tractable data complexity for ground queries.
Rewriting-based approaches for answering queries over an OWL 2 DL ontology have so far been developed mainly for Horn fragments of OWL 2 DL. In this paper, we study the possibilities of answering queries over non-Horn ontologies using datalog rewritings. We prove that this is impossible in general even for very simple ontology languages, and even if PTIME = NP. Furthermore, we present a resolution-based procedure for $\SHI$ ontologies that, in case it terminates, produces a datalog rewriting of the ontology. Our procedure necessarily terminates on DL-Lite_{bool}^H ontologies---an extension of OWL 2 QL with transitive roles and Boolean connectives.
Motivation & Objective
- To address the challenge of query answering over non-Horn OWL 2 DL ontologies, which are generally not rewritable into datalog due to co-NP-hardness and complexity barriers.
- To overcome the limitations of prior rewriting techniques that only apply to Horn fragments, which cannot express disjunctive knowledge common in real-world ontologies.
- To develop a procedure that computes datalog rewritings for non-Horn ontologies, particularly focusing on $σ$-Horn and $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$, ensuring correctness and termination under specific conditions.
- To demonstrate that strong rewritings—rewritings that preserve entailment for all ground queries—do not always exist, even for rewritable ontologies, challenging assumptions in existing systems.
- To provide a practical and theoretically grounded framework for efficient query answering over expressive non-Horn ontologies using datalog compilation techniques.
Proposed method
- Proposes a three-step resolution-based procedure to rewrite $σ$-Horn ontologies into datalog: (1) eliminate transitivity axioms via a novel rewriting to a TBox $Ω_{\mathcal{T}}$, (2) apply Hustadt et al.'s algorithm to generate a disjunctive datalog program $\mathsf{DD}(\Omega_{\mathcal{T}})$, and (3) compile this into a standard datalog program using knowledge compilation techniques.
- Introduces a condensation simplification rule to remove redundant literals in clauses, improving efficiency and enabling termination proofs for nearly-monadic and simple programs.
- Employs monotone circuit lower bounds to show that certain $σ$-ELU ontologies cannot be rewritten into datalog, even under $πτμτ=πτμτ$, by comparing proof lengths in $σ$-ELU and datalog.
- Uses backward chaining and unfolding techniques to transform the final datalog program into a union of conjunctive queries (UCQ), preserving query answers over arbitrary ABoxes.
- Adapts knowledge compilation methods from del Val [2005] and Selman & Kautz [1996] to transform disjunctive datalog into standard datalog, with termination guaranteed for $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$.
- Establishes that the procedure terminates and produces a correct rewriting when applied to $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$ ontologies, extending known tractability results to all ground queries.
Experimental results
Research questions
- RQ1Can datalog rewritings be computed for non-Horn ontologies such as $σ$-ELU, despite known co-NP-hardness of query answering?
- RQ2Is it possible to design a general procedure that computes correct and terminating datalog rewritings for expressive non-Horn ontologies like $σ$-Horn?
- RQ3Under what conditions does a strong rewriting—preserving entailment for all ground queries—exist for a given ontology?
- RQ4Can the proposed resolution-based procedure be guaranteed to terminate for $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$, an extension of OWL 2 QL with transitive roles and Boolean connectives?
- RQ5What are the theoretical limits of strong rewritability, and can non-existence of strong rewritings be detected or proven?
Key findings
- Non-rewritability of $σ$-ELU ontologies into datalog is independent of complexity-theoretic assumptions, as shown via monotone circuit lower bounds on proof length.
- The proposed three-step resolution-based procedure correctly computes a datalog rewriting of a $σ$-Horn ontology if it terminates, preserving entailment of all ground atoms.
- The procedure with condensation simplification is guaranteed to terminate and produce a correct rewriting when applied to $σ$-DL-Lite$_{bool}^{\mathcal{H},+}$ ontologies.
- The final datalog program $π_{H}$, when combined with the ABox, correctly answers any ground query over the original ontology, ensuring semantic equivalence.
- Strong rewritings do not always exist: there exists a $σ$-ELU TBox and a ground query $Q$ that is $Q$-rewritable but not strongly $Q$-rewritable, implying that no finite datalog program can capture all entailments of a strong rewriting.
- The procedure fails to terminate on ontologies lacking strong rewritings, as demonstrated on the TBox from Theorem 22, confirming the necessity of strong rewritability for termination.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.