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

嵌套正则路径图的跳跃计算

Jumping Evaluation of Nested Regular Path Queries

Joachim Niehren, Sylvain Salvati, Rustam Azimov

摘要:

嵌套规则路径查询用于查询图数据库和RDF三元组存储。我们提出了一个新的算法,用于评估从一组起始节点在组合线性时间图上的嵌套规则路径查询。我们表明,这个复杂性的上限可以降低,使其依赖于查询的自上而下所需的子图的大小,我们引入的概念。对于实际中的许多查询,自上而下需要的子图比整个图要小得多。我们的算法是基于一种新的编译模式,从嵌套的常规路径查询,一元数据查询。它的复杂性上界来自自顶向下数据库评估的已知属性。作为一个应用程序,我们表明,我们的算法允许重新制定一个非常有效的基于自动机的算法Maneth和Nguyen提出的一个简单的变种,评估基于索引和跳转的数据树中的导航路径查询。此外,它克服了Maneth和Nguyen的一些局限性:它不限于树,适用于图;它不限于向前导航查询,但可以处理任何嵌套的规则路径查询,它可以有效地实现,而无需任何专用技术,通过使用任何有效的数据库评估器,如LogicBlox。

英文摘要:

Nested regular path queries are used for querying graph databases and RDF triple stores. We propose a new algorithm for evaluating nested regular path queries on a graph from a set of start nodes in combined linear time. We show that this complexity upper bound can be reduced by making it dependent on the size of the query's top-down needed subgraph, a notion that we introduce. For many queries in practice, the top-down needed subgraph is way smaller than the whole graph. Our algorithm is based on a novel compilation schema from nested regular path queries to monadic datalog queries. Its complexity upper bound follows from known properties of top-down datalog evaluation. As an application, we show that our algorithm permits to reformulate in simple terms a variant of a very efficient automata-based algorithm proposed by Maneth and Nguyen that evaluates navigational path queries in datatrees based on indexes and jumping. Moreover, it overcomes some limitations of Maneth and Nguyen's: it is not bound to trees and applies to graphs; it is not limited to forward navigational XPath but can treat any nested regular path query and it can be implemented efficiently without any dedicated techniques, by using any efficient datalog evaluator such as LogicBlox.

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

↑