[Paper Review] G-CORE: A Core for Future Graph Query Languages
G-CORE is a composable, path-first graph query language designed to unify industry and academic needs in graph data management. It enables full graph output and native path manipulation, balancing expressive power with tractable evaluation complexity through a formal algebraic foundation based on property graphs and path patterns.
We report on a community effort between industry and academia to shape the future of graph query languages. We argue that existing graph database management systems should consider supporting a query language with two key characteristics. First, it should be composable, meaning, that graphs are the input and the output of queries. Second, the graph query language should treat paths as first-class citizens. Our result is G-CORE, a powerful graph query language design that fulfills these goals, and strikes a careful balance between path query expressivity and evaluation complexity.
Motivation & Objective
- Address the lack of composability in existing graph query languages, which typically return tables rather than graphs.
- Introduce paths as first-class citizens to enhance expressivity in graph pattern matching, reachability, and path analysis.
- Design a core language that balances expressive power with manageable evaluation complexity for practical deployment.
- Provide a foundation for future standardization of graph query languages across diverse systems and use cases.
- Enable interoperability and modularity by allowing graph outputs to be reused as inputs in subsequent queries.
Proposed method
- Define G-CORE as a formal algebraic language based on property graphs (PPG), supporting nodes, edges, paths, and labeled properties.
- Introduce the CONSTRUCT and MATCH clauses to form basic graph queries, where CONSTRUCT defines output graph structure and MATCH binds patterns.
- Support full graph queries via set operators: Union, Intersect, and Minus, with consistent semantics across graphs.
- Define graph views using GRAPH and GRAPH VIEW clauses to create reusable named subgraphs within queries.
- Formalize path semantics using regular expressions over path patterns, with named paths (e.g., ~pname) as first-class references.
- Ensure consistency in graph operations by requiring structural and label compatibility before combining graphs (e.g., union, intersection).
Experimental results
Research questions
- RQ1How can a graph query language be designed to support full composability, where graph outputs are first-class and can be reused as inputs?
- RQ2What formal semantics are required to treat paths as first-class citizens while maintaining efficient evaluation?
- RQ3How can a core language balance high expressivity for complex graph operations with tractable evaluation complexity?
- RQ4What mechanisms enable modular, reusable, and interoperable graph queries across diverse graph database systems?
- RQ5How can path patterns be formally integrated into a query algebra to support advanced analytics like reachability and shortest paths?
Key findings
- G-CORE successfully formalizes a composable graph query language where queries return full graphs, enabling modular and reusable data pipelines.
- The language natively treats paths as first-class entities, allowing them to be named, filtered, annotated, and used in subsequent operations.
- The use of path patterns with regular expression semantics enables powerful path-based queries while preserving formal consistency and correctness.
- Set operations (Union, Intersect, Minus) are defined with strict consistency checks, ensuring safe and predictable graph combination.
- The formal semantics of G-CORE ensure that graph views and query-local views (via GRAPH and GRAPH VIEW) are semantically well-defined and composable.
- G-CORE provides a principled foundation for future standardization of graph query languages, with potential to guide both existing and emerging systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.