Database Theory in Action: From Inexpressibility to Efficiency in GQL's Order-Constrained Paths

📅 2025-12-29
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
GQL (the ISO standard for graph querying) lacks native support for expressing monotonic edge-value constraints along paths, representing a fundamental expressiveness gap in its pattern-matching capabilities. To address this, we propose a constructive graph compilation technique that encodes ordering constraints directly into the graph structure—enabling existing GQL engines to evaluate such queries without syntactic extensions. Our approach integrates structural graph transformation, logical expressibility analysis, and Cypher-specific optimization, and is deeply embedded within the Neo4j runtime. Theoretically, this work closes a long-standing expressiveness gap in GQL concerning path-ordered constraints. Practically, it delivers substantial query performance improvements on real-world workloads, eliminating timeout failures observed with naïve implementations. By bridging formal database theory with industrial graph query engine design, our method advances both the theoretical foundations and practical applicability of standardized graph querying.

Technology Category

Application Category

📝 Abstract
Pattern matching of core GQL, the new ISO standard for querying property graphs, cannot check whether edge values are increasing along a path, as established in recent work. We present a construc- tive translation that overcomes this limitation by compiling the increasing-edges condition into the input graph. Remarkably, the benefit of this construction goes beyond restoring expressiveness. In our proof-of-concept implementation in Neo4j's Cypher, where such path constraints are expressible but costly, our compiled version runs faster and avoids timeouts. This illustrates how a theoretically motivated translation can not only close an expressiveness gap but also bring practical performance gains.
Problem

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

Overcomes GQL's inability to check increasing edge values along paths.
Compiles path constraints into the graph to restore expressiveness.
Improves performance in implementations like Neo4j's Cypher, avoiding timeouts.
Innovation

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

Compiles increasing-edge condition into input graph
Translation overcomes GQL pattern matching limitation
Achieves faster execution and avoids timeouts in Neo4j
🔎 Similar Papers
No similar papers found.
H
Hadar Rotschield
School of Computer Science and Engineering, The Hebrew University of Jerusalem, Israel
Liat Peterfreund
Liat Peterfreund
The Hebrew University of Jerusalem
DatabasesGraph DatabasesInformation Extraction