Jumping Evaluation of Nested Regular Path Queries
Joachim Niehren (Inria Lille), Sylvain Salvati (Universit\'e de, Lille), Rustam Azimov (Saint Petersburg State University)

TL;DR
This paper introduces a novel algorithm for evaluating nested regular path queries on graphs, achieving linear time complexity dependent on the query's relevant subgraph size, and extends existing automata-based methods to more general graph structures.
Contribution
It presents a new algorithm based on compiling nested regular path queries into monadic datalog, reducing complexity and broadening applicability beyond trees to general graphs.
Findings
Algorithm achieves combined linear time evaluation.
Complexity depends on the size of the query's top-down needed subgraph.
Extends automata-based evaluation to arbitrary graphs and nested queries.
Abstract
Nested regular path queries are used for querying graph databases and RDF triple stores. We propose a new algorithm for evaluating nested regular path queries on a graph from a set of start nodes in combined linear time. We show that this complexity upper bound can be reduced by making it dependent on the size of the query's top-down needed subgraph, a notion that we introduce. For many queries in practice, the top-down needed subgraph is way smaller than the whole graph. Our algorithm is based on a novel compilation schema from nested regular path queries to monadic datalog queries. Its complexity upper bound follows from known properties of top-down datalog evaluation. As an application, we show that our algorithm permits to reformulate in simple terms a variant of a very efficient automata-based algorithm proposed by Maneth and Nguyen that evaluates navigational path queries in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
