The Sticky Path to Expressive Querying: Decidability of Navigational Queries under Existential Rules
Piotr Ostropolski-Nalewaja, Sebastian Rudolph
TL;DR
The paper investigates whether regular path queries ($RPQ$) retain decidability under existential rules, revealing a sharp contrast between forward-chaining $\mathtt{fcs}$-style fragments and backward-chaining $\mathtt{fus}$ fragments. It proves undecidability of Boolean $RPQ$ entailment over arbitrary $\mathtt{fus}$ via a grid-encoding reduction of two-counter machines, while establishing decidability for sticky rulesets in the plain $RPQ$ setting by reducing to finite RPQ-controllability and providing both RE and co-RE procedures. A brittle boundary emerges: slightly extending $RPQ$ (to HRPQs) or relaxing stickiness again yields undecidability, showing the decidability result for sticky $RPQ$ is highly sensitive to the exact query language. The work thus maps precise frontiers for navigational querying in ontology-based data access and informs which rule-fragment and query-language combinations permit practical reasoning.
Abstract
Extensive research in the field of ontology-based query answering has led to the identification of numerous fragments of existential rules (also known as tuple-generating dependencies) that exhibit decidable answering of atomic and conjunctive queries. Motivated by the increased theoretical and practical interest in navigational queries, this paper considers the question for which of these fragments decidability of querying extends to regular path queries (RPQs). In fact, decidability of RPQs has recently been shown to generally hold for the comprehensive family of all fragments that come with the guarantee of universal models being reasonably well-shaped (that is, being of finite cliquewidth). Yet, for the second major family of fragments, known as finite unification sets (short: fus), which are based on first-order-rewritability, corresponding results have been largely elusive so far. We complete the picture by showing that RPQ answering over arbitrary fus rulesets is undecidable. On the positive side, we establish that the problem is decidable for the prominent fus subclass of sticky rulesets, with the caveat that a very mild extension of the RPQ formalism turns the problem undecidable again.
