The development of practical query languages for graph databases runs well ahead of the underlying theory. The ISO committee in charge of database query languages is currently developing a new standard called Graph Query Language (GQL) as well as an extension of the SQL Standard for querying property graphs represented by a relational schema, called SQL/PGQ. The main component of both is the pattern matching facility, which is shared by the two standards. In many aspects, it goes well beyond RPQs, CRPQs, and similar queries on which the research community has focused for years. Our main contribution is to distill the lengthy standard specification into a simple Graph Pattern Calculus (GPC) that reflects all the key pattern matching features of GQL and SQL/PGQ, and at the same time lends itself to rigorous theoretical investigation. We describe the syntax and semantics of GPC, along with the typing rules that ensure its expressions are well-defined, and state some basic properties of the language. With this paper we provide the community a tool to embark on a study of query languages that will soon be widely adopted by industry.
翻译:为图形数据库开发实用查询语言远远早于基本理论。 负责数据库查询语言的ISO委员会目前正在制定名为“图表查询语言”的新标准,以及SQL标准的扩展,用于查询由关系模型(称为SQL/PGQ)代表的属性图。两者的主要组成部分都是模式匹配设施,由两种标准共同使用。在许多方面,它远远超出了RPQ、CRPQ和研究界多年来一直关注的类似查询。我们的主要贡献是将冗长的标准规格提炼成简单的图表模式计算(GPC),它反映了GQL和SQL/PGQ的所有关键模式匹配特征,同时有助于严格的理论调查。我们描述了GPC的语法和语义匹配机制,以及确保其表达方式定义清晰的打字规则,并说明了该语言的一些基本特性。我们为社区提供了一种工具,用于开始研究产业即将广泛采用的查询语言。