ARTFEED — Contemporary Art Intelligence

Complexity of Answering Path Queries under Guarded Existential Rules

other · 2026-07-29

A new arXiv paper investigates the complexity of answering two-way regular path queries (RPQs) and conjunctive regular path queries (CRPQs) over knowledge bases with ontologies expressed as guarded existential rules. The study first examines linear existential rules, finding that RPQ and CRPQ answering is NL-complete in data complexity, matching the complexity for plain graph databases. In combined complexity, both tasks are ExpTime-complete generally, but RPQ drops to PTime-complete and CRPQ to PSpace-complete when predicate arity is bounded. For guarded rules, the authors provide a non-trivial reduction showing that RPQ answering is 2ExpTime-complete in combined complexity, with a tight lower bound via a reduction from alternating Turing machines with exponential space. The paper contributes to ontology-mediated query answering, extending prior work on conjunctive queries to navigational queries.

Key facts

  • Paper arXiv:2607.22636 studies answering two-way (C)RPQs under guarded existential rules.
  • For linear existential rules, (C)RPQ answering is NL-complete in data complexity.
  • Combined complexity for linear rules is ExpTime-complete generally.
  • RPQ answering drops to PTime-complete and CRPQ to PSpace-complete with bounded predicate arity.
  • For guarded rules, RPQ answering is 2ExpTime-complete in combined complexity.
  • Lower bound for guarded rules uses reduction from alternating Turing machines with exponential space.
  • The work extends ontology-mediated query answering to navigational queries.
  • Data complexity for linear rules matches that of plain graph databases.

Entities

Institutions

  • arXiv

Sources