arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.13313cs.DBcs.FLcs.LO
收藏

RPQ的基于运行的语义

Run-Based Semantics for RPQs

Claire David, Victor Marsault, Nadime Francis

摘要:

规则路径查询(RPQ)的形式化是大多数图数据库查询语言的重要组成部分。RPQ通常在同态语义下进行评估;特别是只返回匹配遍历的端点。在实际应用中,常常需要全匹配遍历来计算聚合值。在这些情况下,同态语义是不合适的,因为匹配的行走的数量可以是无限的。因此,图数据库引擎适应RPQ的语义,经常忽略理论上的危险信号。例如,流行的查询语言Cypher使用踪迹语义,这确保了结果是有限的,但代价是使计算问题变得棘手。我们提出了一种新的语义RPQs,特别是包括简单运行和绑定线索语义,作为一个候选人,以调和理论考虑与实际愿望。两者都确保输出是有限的,与同态语义兼容:端点上的投影与同态语义一致。因此,测试结果的空性是易处理的,并且已知的方法容易应用。此外,简单运行和绑定跟踪语义支持包语义,并且结果包的枚举是易处理的

英文摘要:

The formalism of RPQs (regular path queries) is an important building block of most query languages for graph databases. RPQs are generally evaluated under homomorphism semantics; in particular only the endpoints of the matched walks are returned. Practical applications often need the full matched walks to compute aggregate values. In those cases, homomorphism semantics are not suitable since the number of matched walks can be infinite. Hence, graph-database engines adapt the semantics of RPQs, often neglecting theoretical red flags. For instance, the popular query language Cypher uses trail semantics, which ensures the result to be finite at the cost of making computational problems intractable. We propose a new kind of semantics for RPQs, including in particular simple-run and binding-trail semantics, as a candidate to reconcile theoretical considerations with practical aspirations. Both ensure the output to be finite in a way that is compatible with homomorphism semantics: projection on endpoints coincides with homomorphism semantics. Hence, testing the emptiness of result is tractable, and known methods readily apply. Moreover, simple-run and binding-trail semantics support bag semantics, and enumeration of the bag of results is tractable

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

↑