[Paper Review] On the Succinctness of Query Rewriting over OWL 2 QL Ontologies with Shallow Chases
This paper investigates the succinctness of first-order, positive existential (PE), and nonrecursive datalog (NDL) rewritings for conjunctive queries over OWL 2 QL ontologies with shallow chases (depth 1 and 2). By linking query rewritings to hypergraph representations of tree-witness homomorphisms and leveraging Boolean function complexity, it establishes that depth-1 ontologies admit polynomial-size NDL and PE rewritings for tree-shaped queries, while general queries over depth-1 ontologies may require superpolynomial PE rewritings; depth-2 ontologies incur exponential NDL/PE rewritings and superpolynomial FO rewritings unless NP ⊆ P/poly.
We investigate the size of first-order rewritings of conjunctive queries over OWL 2 QL ontologies of depth 1 and 2 by means of hypergraph programs computing Boolean functions. Both positive and negative results are obtained. Conjunctive queries over ontologies of depth 1 have polynomial-size nonrecursive datalog rewritings; tree-shaped queries have polynomial positive existential rewritings; however, in the worst case, positive existential rewritings can only be of superpolynomial size. Positive existential and nonrecursive datalog rewritings of queries over ontologies of depth 2 suffer an exponential blowup in the worst case, while first-order rewritings are superpolynomial unless $ ext{NP} \subseteq ext{P}/ ext{poly}$. We also analyse rewritings of tree-shaped queries over arbitrary ontologies and observe that the query entailment problem for such queries is fixed-parameter tractable.
Motivation & Objective
- To understand the worst-case size of first-order, positive existential (PE), and nonrecursive datalog (NDL) rewritings for conjunctive queries over OWL 2 QL ontologies.
- To investigate the impact of chase depth (1 or 2) on the succinctness of query rewritings, particularly in terms of blowup in size.
- To establish connections between query rewriting and computational models for monotone Boolean functions, such as hypergraphs and nondeterministic branching programs.
- To determine whether polynomial-size rewritings exist for all query-ontology pairs of depth 1 and 2, and to identify the complexity-theoretic assumptions required.
Proposed method
- Representing query-ontology pairs as hypergraphs of degree 2 or 3, where vertices correspond to variables and hyperedges to atoms, to model homomorphisms from the query to the chase.
- Using tree-witness rewritings to encode possible homomorphisms from conjunctive queries to labelled nulls in the chase, with hypergraph functions capturing the Boolean output of query entailment.
- Establishing a polynomial equivalence between representing hypergraphs of degree 2 and nondeterministic branching programs (NBPs), enabling application of known complexity results.
- Applying results from Boolean complexity theory—particularly on monotone circuits and formulas—to derive lower bounds on rewriting sizes.
- Using a balanced tree-partitioning strategy in recursive rewriting to minimize depth and achieve polynomial-size PE rewritings for tree-shaped queries.
- Reducing the query rewriting problem to the computation of monotone Boolean functions, with the size of the rewriting corresponding to the size of the corresponding computational circuit or formula.
Experimental results
Research questions
- RQ1Can nonrecursive datalog rewritings of conjunctive queries over depth-1 OWL 2 QL ontologies be of polynomial size?
- RQ2Are there conjunctive queries and depth-1 ontologies for which positive existential rewritings must be superpolynomial in size?
- RQ3Do tree-shaped queries over depth-1 ontologies always admit polynomial-size positive existential rewritings?
- RQ4What is the worst-case size of first-order rewritings for depth-2 ontologies, and how does it relate to complexity-theoretic assumptions like NP ⊆ P/poly?
- RQ5Can all tree-shaped queries be rewritten in polynomial size over depth-2 ontologies, or do exponential blowups occur?
Key findings
- Any conjunctive query and ontology of depth 1 have a polynomial-size nonrecursive datalog rewriting.
- There exist conjunctive queries and depth-1 ontologies for which positive existential rewritings must be of superpolynomial size.
- Tree-shaped queries over depth-1 ontologies have polynomial-size positive existential rewritings, with a bound of |T|·|q|² over complete data.
- The existence of polynomial-size first-order rewritings for all depth-1 queries and ontologies is equivalent to the open complexity-theoretic question NL/poly ⊆ NC¹.
- Nonrecursive datalog and positive existential rewritings for depth-2 ontologies can suffer exponential blowup in the worst case.
- First-order rewritings for depth-2 ontologies are superpolynomial in size unless NP ⊆ P/poly, indicating strong intractability under standard assumptions.
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.