Evaluating Regular Path Queries on Compressed Adjacency Matrices

07/27/2023
by   Diego Arroyuelo, et al.
0

Regular Path Queries (RPQs), which are essentially regular expressions to be matched against the labels of paths in labeled graphs, are at the core of graph database query languages like SPARQL. A way to solve RPQs is to translate them into a sequence of operations on the adjacency matrices of each label. We design and implement a Boolean algebra on sparse matrix representations and, as an application, use them to handle RPQs. Our baseline representation uses the same space as the previously most compact index for RPQs and excels in handling the hardest types of queries. Our more succinct structure, based on k^2-trees, is 4 times smaller and still solves complex RPQs in reasonable time.

READ FULL TEXT

page 1

page 2

page 3

page 4

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
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
05/12/2023

Complexity of conjunctive regular path query homomorphisms

A graph database is a digraph whose arcs are labeled with symbols from a...
research
04/23/2022

Evaluating regular path queries under the all-shortest paths semantics

The purpose of this report is to explain how the textbook breadth-first ...
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
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
09/03/2018

Typed Linear Algebra for Efficient Analytical Querying

This paper uses typed linear algebra (LA) to represent data and perform ...

Please sign up or login with your details

Forgot password? Click here to reset