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

在压缩邻接矩阵上评估正则路径查询

Evaluating Regular Path Queries on Compressed Adjacency Matrices

Diego Arroyuelo, Adrián Gómez-Brandón, Gonzalo Navarro

AI总结:

本文提出基于稀疏矩阵和$k^2$-trees的布尔代数方法处理图数据库中的正则路径查询,在保持查询效率的同时显著压缩存储空间,并在空间/时间权衡上表现优异。

摘要:

正则路径查询(Regular Path Queries, RPQs)本质上是用于匹配带标签图中路径标签的正则表达式,是SPARQL等图数据库查询语言的核心。解决RPQs的一种方法是将其转化为对每个标签的邻接矩阵进行的一系列操作。我们设计并实现了一种基于稀疏矩阵表示的布尔代数,并将其作为应用来处理RPQs。我们的基线表示与此前最紧凑的RPQs索引占用相同空间,且在最困难的查询类型(即RPQ两个端点均未指定的查询)上表现优于后者。我们基于$k^2$-trees的更简洁结构比任何现有处理RPQs的表示小4倍,且仍能在几秒钟内解决复杂的RPQs。我们新的基于稀疏矩阵的表示在空间/时间权衡图的大部分区域占据优势,仅被使用更多空间的表示超越。它们在解决RPQs之外也具有独立的研究价值。

英文摘要:

Regular Path Queries (RPQs), which are essentially regular expressions to be matched against the labels of paths in labeled graphs, are at the core of graph database query languages like SPARQL. A way to solve RPQs is to translate them into a sequence of operations on the adjacency matrices of each label. We design and implement a Boolean algebra on sparse matrix representations and, as an application, use them to handle RPQs. Our baseline representation uses the same space as the previously most compact index for RPQs and outperforms it on the hardest types of queries -- those where both RPQ endpoints are unspecified. Our more succinct structure, based on $k^2$-trees, is 4 times smaller than any existing representation that handles RPQs, and still solves complex RPQs in a few seconds. Our new sparse-matrix-based representations dominate a good portion of the space/time tradeoff map, being outperformed only by representations that use much more space. They are also of independent interest beyond solving RPQs.

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

↑