Complexity of conjunctive regular path query homomorphisms

05/12/2023
by   Laurent Beaudou, et al.
0

A graph database is a digraph whose arcs are labeled with symbols from a fixed alphabet. A regular graph pattern (RGP) is a digraph whose edges are labeled with regular expressions over the alphabet. RGPs model navigational queries for graph databases called conjunctive regular path queries (CRPQs). A match of a CRPQ in the database is witnessed by a special navigational homomorphism of the corresponding RGP to the database. We study the complexity of deciding the existence of a homomorphism between two RGPs. Such homomorphisms model a strong type of containment between the two corresponding CRPQs. We show that this problem can be solved by an EXPTIME algorithm (while general query containmement in this context is EXPSPACE-complete). We also study the problem for restricted RGPs over a unary alphabet, that arise from some applications like XPath or SPARQL. For this case, homomorphism-based CRPQ containment is in NP. We prove that certain interesting cases are in fact polynomial-time solvable.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/05/2018

Can One Escape Red Chains? Regular Path Queries Determinacy is Undecidable

For a given set of queries (which are expressions in some query language...
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...
research
12/15/2022

The Complexity of the Shapley Value for Regular Path Queries

A path query extracts vertex tuples from a labeled graph, based on the w...
research
07/27/2022

Representing Paths in Graph Database Pattern Matching

Modern graph database query languages such as GQL, SQL/PGQ, and their ac...
research
05/29/2021

Efficient Folding Algorithms for Regular Polyhedra

We investigate the folding problem that asks if a polygon P can be folde...
research
07/27/2023

Evaluating Regular Path Queries on Compressed Adjacency Matrices

Regular Path Queries (RPQs), which are essentially regular expressions t...
research
09/18/2019

Regular matroids have polynomial extension complexity

We prove that the extension complexity of the independence polytope of e...

Please sign up or login with your details

Forgot password? Click here to reset