Lune

OOPSLA2025Top-tier venue

Flexible and Expressive Typed Path Patterns for GQL

Wenjia Ye, Matías Toro, Tomás Díaz, Bruno C. d. S. Oliveira, Manuel Rigger, Claudio Gutierrez, Domagoj Vrgoc

Abstract

Graph databases have become an important data management technology across various domains, including biology, sociology, industry ( e.g . fraud detection, supply chain management, financial services), and investigative journalism, due to their ability to efficiently store and query large-scale knowledge graphs and networks. Recently, the Graph Query Language (GQL) was introduced as a new ISO standard providing a unified framework for querying graphs. However, this initial specification lacks a formal type system for query validation. As a result, queries can fail at runtime due to type inconsistencies or produce empty results without prior warning. Solving this issue would help users write correct queries, especially on large datasets. To address this gap, we introduce a formal type model for a core fragment of GQL extended with property-based filtering and imprecise types both in the schema and the queries. This model, named FPPC, enables static detection of semantically incorrect and stuck queries, improving user feedback. We establish key theoretical properties, including emptiness (detecting empty queries due to type mismatches) and type safety (guaranteeing that well-typed queries do not fail at runtime). Additionally, we prove a gradual guarantee , ensuring that removing type annotations either does not introduce static type errors or only increases the result set. By integrating imprecision into GQL, FPPC offers a flexible solution for handling schema evolution and incomplete type information. This work contributes to making GQL more robust, improving both its usability and its formal foundation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Covering All the Bases: Type-Based Verification of Test Input Generators cites Incorrectness logic
  • Covering All the Bases: Type-Based Verification of Test Input Generators cites Finding real bugs in big programs with incorrectness logic
  • Finding real bugs in big programs with incorrectness logic cites Incorrectness logic
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. MGQL: An Executable, Small-Step Semantics of GQLAditya Thimmaiah, Tong-Nong Lin, Milos GligoricOOPSLA 2026

Builds on7

  1. Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 citations
  2. Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine et al.OOPSLA 2022 · 52 citations
  3. Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query TransformationYuancheng Jiang, Jiahao Liu, Jinsheng Ba, Roland H. C. Yap et al.ICSE 2024 · 14 citations
  4. Abstracting gradual typing moving forward: precise and space-efficientFelipe Bañados Schwerter, Alison M. Clark, Khurram A. Jafery, Ronald GarciaPOPL 2021 · 13 citations
  5. Covering All the Bases: Type-Based Verification of Test Input GeneratorsZhe Zhou, Ashish Mishra, Benjamin Delaware, Suresh JagannathanPLDI 2023 · 7 citations

Related papers

  1. GQL and SQL/PGQ: Theoretical Models and Expressive PowerAmélie Gheerbrant, Leonid Libkin, Liat Peterfreund, Alexandra RogovaVLDB 2025 · 16 citations
  2. Computing Why-Provenance for Property Graph QueriesKoumudi Ganepola, Maxime Jakubowski, Katja HoseVLDB 2026
  3. Adaptive Text2GQL: Integrating Structural Twig Linking and Evolutionary In-Context LearningFang Niu, Chaokun Wang, Hang Zhang, Songyao WangACL 2026
  4. Transforming Property GraphsAngela Bonifati, Filip Murlak, Yann RamusatVLDB 2024 · 9 citations
  5. Repairing Property Graphs under PG-ConstraintsChristopher Spinrath, Angela Bonifati, Rachid EchahedVLDB 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines