Skip to main content
QUICK REVIEW

[Paper Review] Computing FO-Rewritings in EL in Practice: from Atomic to Conjunctive Queries

Peter Hansen, Carsten Lutz|arXiv (Cornell University)|Apr 18, 2018
Semantic Web and OntologiesComputer Science9 references4 citations
TL;DR

This paper presents a practical, sound, and complete method for computing first-order (FO) rewritings of ontology-mediated queries (OMQs) in the description logic $ε\mathcal{L}$ when the query is a conjunctive query (CQ). It extends a decomposed backwards chaining algorithm for atomic queries (AQs) via a reduction to AQ-based rewritings, achieving polynomial-time computation for tree-quantified and rooted CQs, with experiments showing efficient performance on real-world ontologies like ENVO and not-galen.

ABSTRACT

A prominent approach to implementing ontology-mediated queries (OMQs) is to rewrite into a first-order query, which is then executed using a conventional SQL database system. We consider the case where the ontology is formulated in the description logic EL and the actual query is a conjunctive query and show that rewritings of such OMQs can be efficiently computed in practice, in a sound and complete way. Our approach combines a reduction with a decomposed backwards chaining algorithm for OMQs that are based on the simpler atomic queries, also illuminating the relationship between first-order rewritings of OMQs based on conjunctive and on atomic queries. Experiments with real-world ontologies show promising results.

Motivation & Objective

  • To enable efficient, sound, and complete computation of first-order rewritings for ontology-mediated queries (OMQs) in the $ε\mathcal{L}$ description logic when the query is a conjunctive query (CQ).
  • To address the challenge that naive reductions from CQs to atomic queries fail in terms of both correctness and efficiency, particularly since FO-rewritability of constituent atoms is neither necessary nor sufficient for the CQ to be FO-rewritable.
  • To extend the existing decomposed backwards chaining algorithm for atomic queries to handle CQs by introducing a reduction-based approach that preserves rewritability and enables practical performance.
  • To evaluate the method empirically on real-world ontologies, demonstrating scalability and efficiency despite the increased complexity of CQs compared to atomic queries.

Proposed method

  • The approach reduces a conjunctive query (CQ) to a set of atomic queries (AQs) by constructing a new OMQ where each atom in the CQ is treated as a separate query, leveraging the structure of the query graph.
  • For tree-quantified CQs (tqCQs), the reduction is polynomial and ensures that FO-rewritability of the transformed OMQs implies FO-rewritability of the original CQ.
  • The method relies on the decomposed backwards chaining algorithm from prior work, which supports structure sharing and ensures that rewritings are produced in a form that avoids unnecessary atom introduction.
  • It assumes that the FO-rewriting of the reduced OMQs is a union of conjunctive queries (UCQ) with tree-shaped CQs, a condition naturally satisfied by the decomposed algorithm.
  • For rooted CQs (rCQs), the method does not achieve a black-box reduction but instead uses the algorithm’s internal behavior to propagate rewritings from the reduced OMQs back to the original CQ.
  • The implementation integrates these reductions into the Grind system, using the existing decomposed backwards chaining engine to compute rewritings efficiently.

Experimental results

Research questions

  • RQ1Can first-order rewritings of conjunctive queries in $ε\mathcal{L}$ be computed efficiently and completely in practice, despite the theoretical complexity of the problem?
  • RQ2Is there a way to reduce the FO-rewritability problem for CQs to the FO-rewritability problem for atomic queries without losing correctness or efficiency?
  • RQ3What structural restrictions on CQs (e.g., tree-quantified or rooted) allow for a polynomial-time reduction to atomic query rewriting while preserving rewritability?
  • RQ4How does the performance of the proposed method scale on real-world ontologies with complex schema and large data instances?
  • RQ5To what extent do the properties of the underlying rewriting algorithm (e.g., structure sharing, avoidance of spurious atoms) enable the transfer of rewritings from reduced OMQs to the original CQ?

Key findings

  • The method successfully computes FO-rewritings for all non-Boolean conjunctive queries in $ε\mathcal{L}$ when the query is rooted or tree-quantified, with a polynomial-time reduction to atomic query rewriting.
  • Experiments on five real-world ontologies (ENVO, FBbi, SO, MOHSE, not-galen) show that the average runtime for CQ rewriting is under 10 seconds, with the slowest query taking 2 minutes 23 seconds.
  • Only three queries (out of 50) failed to terminate within 30 minutes or exhausted memory, all involving non-FO-rewritable atomic subqueries that triggered expensive processing phases.
  • The average time to compute FO-rewritings for constituent atomic queries (Avg AQ) was significantly lower than for the full CQs, indicating that the CQ rewriting process is more expensive but still practical.
  • The performance is promising given that the system has not been heavily optimized, and the method scales well on ontologies with up to 4,636 concept inclusions and 2,748 concept names.
  • The results confirm that FO-rewritability is highly feasible in practice for $ε\mathcal{L}$, even for complex CQs, especially when the query structure is simple (e.g., rooted or tree-shaped).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.