Database Theory in Action: Cypher, GQL, and Regular Path Queries

Amélie Gheerbrant*, Leonid Libkin*, Liat Peterfreund*, Alexandra Rogova*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Cypher has so far been the most commonly used query language for property graphs, and served as the foundation of the recently standardized graph query language GQL. In designing the features of GQL, the standards committee addressed the perceived limitations of Cypher. One such limitation is the inability of Cypher, as originally designed, to express all regular path queries (RPQs). Despite this claim having been stated many times as a folklore result, we could not find any proof of it. In this note we formalize the core of Cypher’s pattern matching and formally prove that indeed it falls short of all RPQs, justifying the inclusion of new pattern matching features in GQL.

Original languageEnglish
Title of host publication28th International Conference on Database Theory, ICDT 2025
EditorsSudeepa Roy, Ahmet Kara
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773645
DOIs
StatePublished - 21 Mar 2025
Event28th International Conference on Database Theory, ICDT 2025 - Barcelona, Spain
Duration: 25 Mar 202528 Mar 2025

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume328
ISSN (Print)1868-8969

Conference

Conference28th International Conference on Database Theory, ICDT 2025
Country/TerritorySpain
CityBarcelona
Period25/03/2528/03/25

Bibliographical note

Publisher Copyright:
© Amélie Gheerbrant, Leonid Libkin, Liat Peterfreund, and Alexandra Rogova.

Keywords

  • Cypher
  • GQL
  • inexpressibility
  • Regular path queries

Fingerprint

Dive into the research topics of 'Database Theory in Action: Cypher, GQL, and Regular Path Queries'. Together they form a unique fingerprint.

Cite this