Jumping Evaluation of Nested Regular Path Queries

08/05/2022
by   Joachim Niehren, et al.
0

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 datatrees based on indexes and jumping. Moreover, it overcomes some limitations of Maneth and Nguyen's: it is not bound to trees and applies to graphs; it is not limited to forward navigational XPath but can treat any nested regular path query and it can be implemented efficiently without any dedicated techniques, by using any efficient datalog evaluator such as LogicBlox.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/22/2018

The First Order Truth behind Undecidability of Regular Path Queries Determinacy

In our paper [GMO18] we have solved an old problem stated in [CGLV02] sh...
research
12/19/2019

Conjunctive Regular Path Queries with String Variables

We introduce the class CXRPQ of conjunctive xregex path queries, which a...
research
02/28/2014

Nested Regular Path Queries in Description Logics

Two-way regular path queries (2RPQs) have received increased attention r...
research
03/26/2021

One Algorithm to Evaluate Them All: Unified Linear Algebra Based Approach to Evaluate Both Regular and Context-Free Path Queries

The Kronecker product-based algorithm for context-free path querying (CF...
research
04/01/2019

Boundedness of Conjunctive Regular Path Queries

We study the boundedness problem for unions of conjunctive regular path ...
research
11/08/2021

Time- and Space-Efficient Regular Path Queries on Graphs

We introduce a time- and space-efficient technique to solve regularpath ...
research
04/04/2020

Regular Path Query Evaluation on Streaming Graphs

We study persistent query evaluation over streaming graphs, which is bec...

Please sign up or login with your details

Forgot password? Click here to reset