Skip to main content
QUICK REVIEW

[Paper Review] Nested Regular Path Queries in Description Logics

Meghyn Bienvenu, Diego Calvanese|arXiv (Cornell University)|Feb 28, 2014
Semantic Web and OntologiesComputer Science24 references31 citations
TL;DR

This paper investigates the computational complexity of answering nested two-way regular path queries (2RPQs) and their conjunctions (CN2RPQs) in description logics (DLs), extending SPARQL 1.1 and XPath with existential nesting. It shows that while nesting does not increase data complexity, it causes a significant jump in combined complexity—from P-complete to Exp-complete—for lightweight DLs like DL-Lite and EL, despite having no effect on more expressive DLs.

ABSTRACT

Two-way regular path queries (2RPQs) have received increased attention recently due to their ability to relate pairs of objects by flexibly navigating graph-structured data. They are present in property paths in SPARQL 1.1, the new standard RDF query language, and in the XML query language XPath. In line with XPath, we consider the extension of 2RPQs with nesting, which allows one to require that objects along a path satisfy complex conditions, in turn expressed through (nested) 2RPQs. We study the computational complexity of answering nested 2RPQs and conjunctions thereof (CN2RPQs) in the presence of domain knowledge expressed in description logics (DLs). We establish tight complexity bounds in data and combined complexity for a variety of DLs, ranging from lightweight DLs (DL-Lite, EL) up to highly expressive ones. Interestingly, we are able to show that adding nesting to (C)2RPQs does not affect worst-case data complexity of query answering for any of the considered DLs. However, in the case of lightweight DLs, adding nesting to 2RPQs leads to a surprising jump in combined complexity, from P-complete to Exp-complete.

Motivation & Objective

  • To study the impact of nesting on the computational complexity of 2RPQs and CN2RPQs in description logics.
  • To determine whether nesting increases the worst-case complexity of query answering in various DLs, from lightweight (DL-Lite, EL) to highly expressive (SH, Z families).
  • To establish tight complexity bounds for both data and combined complexity across different DLs.
  • To investigate whether nesting can be encoded away in expressive DLs, and if so, under what conditions.
  • To clarify the role of domain knowledge (TBox) in influencing query complexity when combined with nested path queries.

Proposed method

  • Extends two-way regular path queries (2RPQs) with nesting via existential test operators, inspired by XPath and SPARQL 1.1.
  • Proposes a formal semantics for nested 2RPQs (CN2RPQs) over DL knowledge bases, combining ABox data with TBox constraints.
  • Uses alternating automata over infinite trees to analyze query evaluation, particularly for expressive DLs.
  • Employs homomorphism-based reasoning and canonical model constructions to reduce query evaluation to automata runs.
  • Applies recursion and dynamic programming techniques to evaluate nested atoms, with space-efficient computation for lightweight DLs.
  • Leverages known complexity results for instance checking in DL-Lite R and ELHI⊥ to bound the space complexity of query evaluation.

Experimental results

Research questions

  • RQ1Does adding nesting to 2RPQs increase the data complexity of query answering in description logics?
  • RQ2What is the combined complexity of answering nested 2RPQs and their conjunctions in various DLs, from lightweight to highly expressive?
  • RQ3Can nesting be encoded away in expressive DLs such as those in the SH and Z families, thereby preserving complexity bounds?
  • RQ4Why does nesting cause a jump in combined complexity for lightweight DLs like DL-Lite and EL, despite not affecting data complexity?
  • RQ5How do TBox constraints interact with nested path queries to influence the overall complexity of certain answer computation?

Key findings

  • For all considered DLs, including expressive ones like SH and Z, adding nesting to 2RPQs does not increase worst-case data complexity.
  • In lightweight DLs such as DL-Lite and EL, nesting causes a jump in combined complexity from P-complete to Exp-complete.
  • For DL-Lite R and ELHI⊥, the query evaluation algorithm runs in non-deterministic logarithmic space in the size of the ABox.
  • In more expressive DLs (e.g., those containing ELI), nesting can be encoded away, preserving the original complexity bounds.
  • The complexity of evaluating CN2RPQs in DL-Lite R is NL-complete in data complexity and PSpace-complete in combined complexity.
  • The results show that the expressive power of nesting is not captured by standard C2RPQs, especially in the presence of transitive closures.

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.