Conjunctive Regular Path Queries with String Variables

12/19/2019
by   Markus L. Schmid, et al.
0

We introduce the class CXRPQ of conjunctive xregex path queries, which are obtained from conjunctive regular path queries (CRPQs) by adding string variables (also called backreferences) as found in practical implementations of regular expressions. CXRPQs can be considered user-friendly, since they combine two concepts that are well-established in practice: pattern-based graph queries and regular expressions with backreferences. Due to the string variables, CXRPQs can express inter-path dependencies, which are not expressible by CRPQs. The evaluation complexity of CXRPQs, if not further restricted, is PSPACE-hard in data-complexity. We identify three natural fragments with more acceptable evaluation complexity: their data-complexity is in NL, while their combined complexity varies between EXPSPACE, PSPACE and NP. In terms of expressive power, we compare the CXRPQ-fragments with CRPQs and unions of CRPQs, and with extended conjunctive regular path queries (ECRPQs) and unions of ECRPQs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/09/2020

Containment of Simple Regular Path Queries

Testing containment of queries is a fundamental reasoning task in knowle...
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
08/05/2022

Jumping Evaluation of Nested Regular Path Queries

Nested regular path queries are used for querying graph databases and RD...
research
10/26/2020

A Purely Regular Approach to Non-Regular Core Spanners

The regular spanners (characterised by vset-automata) are closed under t...
research
09/10/2021

Regular Path Clauses and Their Application in Solving Loops

A well-established approach to reasoning about loops during program anal...
research
02/11/2020

Modular Path Queries with Arithmetic

We propose a new approach to querying graph databases. Our approach bala...
research
01/06/2021

Fine-Grained Complexity of Regular Path Queries

A regular path query (RPQ) is a regular expression q that returns all no...

Please sign up or login with your details

Forgot password? Click here to reset