Skip to main content
QUICK REVIEW

[Paper Review] A Researcher’s Digest of GQL (Invited Talk)

Francis, Nadime, Gheerbrant, Amélie|arXiv (Cornell University)|Nov 20, 2022
Semantic Web and OntologiesComputer Science2 citations
TL;DR

This paper proposes PG-Schema, a formal, extensible schema language for property graphs that supports rich type hierarchies with multi-inheritance, expressive constraints via PG-Keys, and advanced cardinality constraints. It unifies descriptive and prescriptive schema modeling, offering a foundation for future GQL standardization and addressing critical gaps in current graph database systems.

ABSTRACT

GQL (Graph Query Language) is being developed as a new ISO standard for graph query languages to play the same role for graph databases as SQL plays for relational. In parallel, an extension of SQL for querying property graphs, SQL/PGQ, is added to the SQL standard; it shares the graph pattern matching functionality with GQL. Both standards (not yet published) are hard-to-understand specifications of hundreds of pages. The goal of this paper is to present a digest of the language that is easy for the research community to understand, and thus to initiate research on these future standards for querying graphs. The paper concentrates on pattern matching features shared by GQL and SQL/PGQ, as well as querying facilities of GQL.

Motivation & Objective

  • To address the lack of comprehensive schema support in existing property graph databases.
  • To provide a unified, formal schema language that supports both descriptive and prescriptive schema roles.
  • To support advanced modeling features such as multi-inheritance, type composition, and complex integrity constraints.
  • To serve as a concrete proposal to guide the upcoming second version of the GQL standard.
  • To bridge the gap between academia and industry in standardizing property graph schema modeling.

Proposed method

  • Proposes PG-Schema, a formal schema language with a clear ASCII-art syntax and well-defined semantics.
  • Introduces PG-Types for flexible type definitions, including multi-inheritance and composition of types.
  • Employs PG-Keys formalism to express key constraints, participation constraints, and denial constraints without negation.
  • Extends PG-Keys with cardinality constraints using the syntax COUNT lower..upper OF, enabling range-based participation checks.
  • Supports type combinators such as unions (|) and intersections (&) for property and content types.
  • Enables advanced constraints like disjointness (e.g., COUNT 0 OF) and complex content structures with array and range annotations.

Experimental results

Research questions

  • RQ1How can a schema language for property graphs support both descriptive and prescriptive schema roles effectively?
  • RQ2What formal features are necessary to model complex type hierarchies and integrity constraints in property graphs?
  • RQ3How can schema definitions be made extensible and interoperable across diverse graph database systems?
  • RQ4What role can a formal schema language play in guiding the standardization of GQL?
  • RQ5How can schema languages evolve to support agile data modeling and evolving data structures?

Key findings

  • PG-Schema provides the first unified, formal schema language for property graphs, supporting multi-inheritance and complex type compositions.
  • The language enables expressive constraints through PG-Keys, including cardinality bounds, disjointness, and denial constraints without negation.
  • Cardinality constraints are formally expressed using COUNT lower..upper OF syntax, allowing precise control over relationships and participation.
  • The language supports advanced type combinators such as unions and intersections for both property and content types.
  • PG-Schema is designed to be extensible, supporting future enhancements like range constraints and complex data types.
  • The work provides a concrete foundation for the upcoming second version of the GQL standard, addressing a critical gap in current systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.