,
Leonid Libkin
,
Liat Peterfreund
,
Alexandra Rogova
Creative Commons Attribution 4.0 International license
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.
@InProceedings{gheerbrant_et_al:LIPIcs.ICDT.2025.36,
author = {Gheerbrant, Am\'{e}lie and Libkin, Leonid and Peterfreund, Liat and Rogova, Alexandra},
title = {{Database Theory in Action: Cypher, GQL, and Regular Path Queries}},
booktitle = {28th International Conference on Database Theory (ICDT 2025)},
pages = {36:1--36:5},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-364-5},
ISSN = {1868-8969},
year = {2025},
volume = {328},
editor = {Roy, Sudeepa and Kara, Ahmet},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICDT.2025.36},
URN = {urn:nbn:de:0030-drops-229771},
doi = {10.4230/LIPIcs.ICDT.2025.36},
annote = {Keywords: Regular path queries, Cypher, GQL, inexpressibility}
}