arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.04823cs.DB
收藏

图查询语言的基于路径的代数基础

Path-based Algebraic Foundations of Graph Query Languages

Renzo Angles, Angela Bonifati, Roberto García, Domagoj Vrgoč

AI总结:

针对图查询引擎缺乏评估路径查询的代数方法这一局限,提出一种将路径作为一等实体的抽象代数,能表达GQL和SQL/PGQ的核心路径查询片段并支持查询优化,为路径查询评估提供了形式化框架。

摘要:

得益于其数据模型和查询语言的灵活性与表达能力,图数据库正日益受到关注。由ISO/IEC标准化机构推动的标准化活动也在进行中,并已于2023年和2024年分别完成了两种标准图查询语言首版本的规范,即SQL/PGQ和GQL。除标准外,当前的图数据库系统还提供了大量具体的图查询语言,各自提供不同的查询特性。当前图查询引擎的一个共同局限是缺乏用于评估路径查询的代数方法。为解决这一问题,我们引入了一种用于评估路径查询的抽象代数,允许将路径作为查询处理管道中的一等实体来处理。我们证明,我们的代数能够表达GQL和SQL/PGQ中定义的路径查询核心片段,从而为研究这两种标准提供形式化框架,并支持它们在当前图数据库系统中的实现。我们还展示了路径代数表达式的评估树可以作为评估路径查询的逻辑计划,并支持查询优化技术的应用。我们的代数框架有潜力成为路径查询评估的通用语言,使不同的实现能够被表达和比较。

英文摘要:

Graph databases are gaining momentum thanks to the flexibility and expressiveness of their data models and query languages. A standardization activity driven by the ISO/IEC standardization body is also ongoing and has already conducted to the specification of the first versions of two standard graph query languages, namely SQL/PGQ and GQL, respectively in 2023 and 2024. Apart from the standards, there exists a panoply of concrete graph query languages provided by current graph database systems, each offering different query features. A common limitation of current graph query engines is the absence of an algebraic approach for evaluating path queries. To address this, we introduce an abstract algebra for evaluating path queries, allowing paths to be treated as first-class entities within the query processing pipeline. We demonstrate that our algebra can express a core fragment of path queries defined in GQL and SQL/PGQ, thereby serving as a formal framework for studying both standards and supporting their implementation in current graph database systems. We also show that evaluation trees for path algebra expressions can function as logical plans for evaluating path queries and enable the application of query optimization techniques. Our algebraic framework has the potential to act as a lingua franca for path query evaluation, enabling different implementations to be expressed and compared.

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

↑