arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.11949cs.DBcs.FL
收藏

设计和比较RPQ语义

Designing and Comparing RPQ Semantics

Univ Gustave Eiffel, CNRS, LIGM(巴黎-萨莱学院大学,法国国家科学研究中心,信息与数字技术实验室)

Victor Marsault, Antoine Meyer

AI总结:

本文提出一个框架用于分类和比较RPQ语义,探讨其属性及不同语义设计对图数据库查询语言的影响。

摘要:

现代属性图数据库查询语言,如Cypher、PGQL、GSQL以及标准GQL,均受到正则路径查询(RPQ)形式化的启发。为了显式输出路径,它们脱离了经典且广泛研究的同态语义。然而,这使得向用户展示结果变得困难,因为RPQ可能匹配无限多的路径。上述语言使用任意标准来选择有限数量的匹配项。例如,Cypher使用路径语义,丢弃有重复边的路径;PGQL和GSQL使用最短路径语义,仅保留所有匹配路径中最短的路径;而GQL允许用户选择几种语义。尽管对这些语义有学术研究,但几乎全部集中在评估效率上。为了更好地理解、选择和设计RPQ语义,我们提出一个框架,根据其他标准对它们进行分类和比较。我们正式化了若干可能的属性,涉及将RPQ语义视为数学函数,将数据库和查询映射到有限路径集的研究。我们证明了一些属性是相互排斥的,或无法同时满足。我们还给出了几种新的RPQ语义作为示例。其中一些可能为未来图数据库查询语言的新语义设计提供思路。

英文摘要:

Modern property graph database query languages such as Cypher, PGQL, GSQL, and the standard GQL draw inspiration from the formalism of regular path queries (RPQs). In order to output walks explicitly, they depart from the classical and well-studied homomorphism semantics. However, it then becomes difficult to present results to users because RPQs may match infinitely many walks. The aforementioned languages use ad-hoc criteria to select a finite subset of those matches. For instance, Cypher uses trail semantics, discarding walks with repeated edges; PGQL and GSQL use shortest walk semantics, retaining only the walks of minimal length among all matched walks; and GQL allows users to choose from several semantics. Even though there is academic research on these semantics, it focuses almost exclusively on evaluation efficiency. In an attempt to better understand, choose and design RPQ semantics, we present a framework to categorize and compare them according to other criteria. We formalize several possible properties, pertaining to the study of RPQ semantics seen as mathematical functions mapping a database and a query to a finite set of walks. We show that some properties are mutually exclusive, or cannot be met. We also give several new RPQ semantics as examples. Some of them may provide ideas for the design of new semantics for future graph database query languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑