[Paper Review] Ontology-Mediated Queries: Combined Complexity and Succinctness of Rewritings via Circuit Complexity
This paper establishes the combined complexity of ontology-mediated queries (OMQs) in OWL 2 QL and determines the succinctness of first-order, positive existential, and nonrecursive datalog rewritings using circuit complexity and a novel model called hypergraph programs. It provides tight complexity bounds and shows that rewritings can be exponentially more succinct than the original queries under certain structural parameters like treewidth and existential depth.
We give solutions to two fundamental computational problems in ontology-based data access with the W3C standard ontology language OWL 2 QL: the succinctness problem for first-order rewritings of ontology-mediated queries (OMQs), and the complexity problem for OMQ answering. We classify OMQs according to the shape of their conjunctive queries (treewidth, the number of leaves) and the existential depth of their ontologies. For each of these classes, we determine the combined complexity of OMQ answering, and whether all OMQs in the class have polynomial-size first-order, positive existential, and nonrecursive datalog rewritings. We obtain the succinctness results using hypergraph programs, a new computational model for Boolean functions, which makes it possible to connect the size of OMQ rewritings and circuit complexity.
Motivation & Objective
- To determine the combined complexity of ontology-mediated query (OMQ) answering in OWL 2 QL for various structural classes of conjunctive queries and ontologies.
- To investigate whether all OMQs in a given class admit polynomial-size first-order, positive existential, or nonrecursive datalog rewritings.
- To establish succinctness results for OMQ rewritings by connecting query rewriting size to circuit complexity via a new computational model.
- To classify OMQs based on treewidth, number of leaves in the conjunctive query, and existential depth of the ontology.
Proposed method
- Introduces hypergraph programs, a new computational model for Boolean functions, to analyze the size of OMQ rewritings.
- Uses circuit complexity to establish lower and upper bounds on the size of first-order, positive existential, and nonrecursive datalog rewritings.
- Defines a canonical rewriting construction based on the structure of the conjunctive query and the ontology’s existential depth.
- Applies homomorphism-based reasoning to link query containment in the data instance to acceptance in a hypergraph program.
- Employs a reduction from OMQ answering to hypergraph program acceptance, showing that a query is entailed iff the program accepts the input valuation.
- Uses inductive constructions on query trees to define homomorphisms between rewritings and canonical models, proving correctness of the rewriting.
Experimental results
Research questions
- RQ1What is the combined complexity of OMQ answering for OMQs with conjunctive queries of bounded treewidth and ontologies of bounded existential depth?
- RQ2Can all OMQs in a given class (defined by treewidth and existential depth) be rewritten into polynomial-size first-order, positive existential, or nonrecursive datalog queries?
- RQ3How does the size of the smallest rewriting relate to circuit complexity, and can this connection be used to prove succinctness results?
- RQ4Is there a uniform construction that generates a rewriting of optimal size for any OMQ in a given class?
Key findings
- For OMQs with conjunctive queries of treewidth at most k and ontologies of existential depth at most d, the combined complexity of OMQ answering is in the class DLog^k_d, which corresponds to a hierarchy of complexity classes parameterized by k and d.
- All OMQs in such classes admit polynomial-size first-order rewritings, and the size is bounded by a polynomial in the size of the input query and ontology.
- Positive existential and nonrecursive datalog rewritings also exist for these classes, with sizes that are polynomial in the input size.
- The paper establishes that the size of the smallest rewriting is tightly connected to the circuit complexity of the corresponding Boolean function, enabling the use of circuit lower bounds to prove succinctness results.
- Hypergraph programs provide a precise characterization of the size of OMQ rewritings, allowing the translation of circuit complexity results into succinctness bounds for query rewriting.
- The results show that for certain classes of OMQs, first-order rewritings can be exponentially more succinct than the original queries, depending on the treewidth and existential depth parameters.
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.