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.
翻译:属性图已经达到了很高的成熟度,有多个强大的图形数据库系统以及正在进行的 ISO 标准化工作,旨在创建新的标准图形查询语言(GQL)。然而,尽管有已知的需求,但现有系统和第一版 GQL 标准的模式支持有限。预计 GQL 标准的第二版将包括丰富的数据定义语言。为了激发 GQL 的开发,增强图形数据库系统的能力,我们提出了 PG-Schema,这是一种简单而又强大的形式化语言,用于指定属性图模式。它功能强大的 PG-Types 支持多继承的灵活类型定义,以及基于最近提出的 PG-Keys 语言的表达式约束。我们提供了 PG-Schema 的正式语法和语义,以满足基于当代属性图管理方案的原则性设计要求,并详细比较了其特征和现有模式语言和图形数据库系统的特点。