Evaluating Regular Path Queries in GQL and SQL/PGQ: How Far Can The Classical Algorithms Take Us?

06/03/2023
by   Benjamín Farías, et al.
0

We tackle the problem of answering regular path queries over graph databases, while simultaneously returning the paths which witness our answers. We study this problem under the arbitrary, all-shortest, trail, and simple-path semantics, which are the common path matching semantics considered in the research literature, and are also prescribed by the upcoming ISO Graph Query Language (GQL) and SQL/PGQ standards. In the paper we present how the classical product construction from the theoretical literature on graph querying can be modified in order to allow returning paths. We then discuss how this approach can be implemented, both when the data resides in a classical B+ tree structure, and when it is assumed to be available in main memory via a compressed sparse row representation. Finally, we perform a detailed experimental study of different trade-offs these algorithms have over real world queries, and compare them with existing approaches.

READ FULL TEXT

page 1

page 2

page 3

page 4

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
10/06/2017

Enumeration Problems for Regular Path Queries

Evaluation of regular path queries (RPQs) is a central problem in graph ...
research
04/07/2020

An Algorithm for Context-Free Path Queries over Graph Databases

RDF (Resource Description Framework) is a standard language to represent...
research
02/06/2018

Axiomatic Foundations and Algorithms for Deciding Semantic Equivalences of SQL Queries

Deciding the equivalence of SQL queries is a fundamental problem in data...
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
12/12/2021

Graph Pattern Matching in GQL and SQL/PGQ

As graph databases become widespread, JTC1 – the committee in joint char...
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