属性图的组合语言
A Compositional Language for Property Graphs
AI总结:
针对GQL和SQL/PGQ缺乏组合性的问题,提出一种结合正则路径查询与#Datalog的组合语言,填补表达力空白,并给出标准扩展建议。
摘要:
最近标准化的图查询语言GQL和SQL/PGQ的一个主要缺点是缺乏组合性。鉴于这些语言在查询知识图谱中的重要性,我们解决了这一缺点,并提出了理论解决方案以及将它们添加到新标准中的路径。非组合性问题的突出之处在于,尽管GQL和SQL/PGQ都能表达图可达性和所有一阶查询,但它们无法处理NLOGSPACE中的问题。鉴于在一阶归约下可达性对于NLOGSPACE的完备性,这非常反直觉。标准委员会已经认识到这个问题,并一直在寻找语言扩展来填补某些特定不可表达查询层面的空白。我们以系统的方式解决这个问题,提出了一种语言,通过允许图模式与关系查询之间的完全组合性来填补表达力空白。它通过两个关键组件实现这一点:一个带有变量和数据值比较的正则路径查询的清理定义,以及一个完全组合的图到图语言#Datalog,它完全支持从节点、边、节点和边的列表甚至整个路径构建新的图元素。我们证明了所得到的语言解决了标准委员会面临的问题,并提出了一个具体的扩展,将其主要特性纳入GQL和SQL/PGQ。
英文摘要:
A major shortcoming of the recently standardized graph query languages GQL and SQL/PGQ is their lack of compositionality. Given the importance of these languages in querying knowledge graphs, we address this shortcoming and propose both theoretical solutions and a path to adding them to the new standards. The highlight of the non-compositionality problem is that while both GQL and SQL/PGQ can express graph reachability and all first-order queries, they fall short of the problems in NLOGSPACE. In view of the completeness of reachability for NLOGSPACE under first-order reductions, this is extremely counterintuitive. The issue is well recognized by the standards committee that has been searching for language extensions to fill the gaps at the level of some specific inexpressible queries. We address the issue in a systematic way and propose a language that fills expressivity gaps by allowing full compositionality between graph patterns and relational queries. It does so by using two key components: a cleaned up definition of regular path queries with variables and data value comparisons, and a fully compositional graph-to-graph language #Datalog with complete support for constructing new graph elements from nodes, edges, lists of nodes and edges, and even entire paths. We show that the resulting language addresses the issues facing the standards committee, and propose a concrete addition to GQL and SQL/PGQ that incorporates its main features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。