MGQL: An Executable, Small-Step Semantics of GQL

📅 2026-08-25
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文解决了GQL标准难以形式化推理的问题,通过提出MGQL,一种基于ISO/IEC 39075标准的小步操作语义,支持大部分GQL查询特性。
📝 Abstract
ISO Graph Query Language (GQL) is the first international standard for property graph-based graph query languages, standardized as ISO/IEC 39075 in 2024. However, ISO/IEC 39075 codifies its semantics informally across 600+ pages of prose, making it difficult to formally reason about the standard or for a standard-faithful implementation. Existing formalizations are not adequate because they either: (1) significantly reduce the semantic complexity by omitting bag semantics, schemas, and composite queries on multiple graphs; (2) or significantly reduce the syntactic complexity by only considering isolated fragments such as pattern-matching, leaving the full query pipeline unformalized. Yet it is these semantic-syntactic features that make formalizing GQL non-trivial. We present MGQL, the first mechanized, small-step operational semantics for a substantial read-only fragment of GQL that is grounded in the ISO/IEC 39075 standard. Our formalization models multi-graph property graphs with mixed edge directionality and supports a large fraction of GQL pattern constructs: quantified paths and edges, directional and undirected matching, label expressions, pattern lists, and composite queries. The semantics is supported by a schema-aware type system that refines variable types via closed-graph schemas, tracks nullability, supports multiple composite query operators, and models quantified-path bindings with list types. We prove that our type system is sound, ensuring an end-to-end guarantee of well-formed queries yielding results that conform to their declared schemas. MGQL provides the first bridge between GQL's informal specification and a mechanized implementation, enabling formal reasoning about correctness.
Problem

Research questions and friction points this paper is trying to address.

GQL
formal reasoning
standardization
semantics
syntax
Innovation

Methods, ideas, or system contributions that make the work stand out.

executable small-step semantics
schema-aware type system
multi-graph property graphs
quantified paths and edges
composite queries
🔎 Similar Papers
2024-09-09NLP4KGC@SEMANTiCSCitations: 3
💼 Related Jobs
No related jobs found.
A
Aditya Thimmaiah
University of Texas at Austin, USA
T
Tong-Nong Lin
University of Texas at Austin, USA
Milos Gligoric
Milos Gligoric
The University of Texas at Austin
Software Engineering