PG-Schema: Schemas for Property Graphs

Renzo Angles,Angela Bonifati,Stefania Dumbrava,George Fletcher,Alastair Green,Jan Hidders,Bei Li,Leonid Libkin,Victor Marsault,Wim Martens,Filip Murlak,Stefan Plantikow,Ognjen Savković,Michael Schmidt,Juan Sequeda,Sławek Staworko,Dominik Tomaszuk,Hannes Voigt,Domagoj Vrgoč,Mingxi Wu,Dušan Živković
DOI: https://doi.org/10.1145/3589778
2023-07-08
Abstract:Property graphs have reached a high level of maturity, witnessed by multiple robust graph database systems as well as the ongoing ISO standardization effort aiming at creating a new standard Graph Query Language (GQL). Yet, despite documented demand, schema support is limited both in existing systems and in the first version of the GQL Standard. It is anticipated that the second version of the GQL Standard will include a rich DDL. Aiming to inspire the development of GQL and enhance the capabilities of graph database systems, we propose PG-Schema, a simple yet powerful formalism for specifying property graph schemas. It features PG-Types with flexible type definitions supporting multi-inheritance, as well as expressive constraints based on the recently proposed PG-Keys formalism. We provide the formal syntax and semantics of PG-Schema, which meet principled design requirements grounded in contemporary property graph management scenarios, and offer a detailed comparison of its features with those of existing schema languages and graph database systems.
Databases
What problem does this paper attempt to address?