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

面向Neo4j的基于GLL的上下文无关路径查询

GLL-based Context-Free Path Querying for Neo4j

Vadim Abzalov, Vlada Pogozhelskaya, Vladimir Kutuev, Semyon Grigorev

AI总结:

本研究提出基于GLL、借助RSM处理EBNF查询的上下文无关路径查询算法,支持多类路径问题,作为Neo4j存储过程实现,性能优于RedisGraph同类方案,正则查询性能与原生方案相当且部分场景内存占用更低。

摘要:

我们提出了基于GLL的上下文无关路径查询算法,该算法使用递归状态机(Recursive State Machines, RSM)处理扩展巴科斯范式(Extended Backus-Naur Form, EBNF)格式的查询。EBNF的使用使得用户能够在约束中原生结合传统正则表达式与互递归模式。该算法可求解全点对和多源场景下的仅可达性问题及全路径问题。在真实世界图上的评估表明,RSM的使用提升了查询评估性能。我们的方案作为Neo4j的存储过程实现,其性能优于RedisGraph的同类方案。在正则路径查询方面,我们方案的性能与Neo4j原生方案相当,且在部分场景下内存需求显著更低。

英文摘要:

We propose GLL-based context-free path querying algorithm which handles queries in Extended Backus-Naur Form (EBNF) using Recursive State Machines (RSM). Utilization of EBNF allows one to combine traditional regular expressions and mutually recursive patterns in constraints natively. The proposed algorithm solves both the reachability-only and the all-paths problems for the all-pairs and the multiple sources cases. The evaluation on realworld graphs demonstrates that utilization of RSMs increases performance of query evaluation. Being implemented as a stored procedure for Neo4j, our solution demonstrates better performance than a similar solution for RedisGraph. Performance of our solution of regular path queries is comparable with performance of native Neo4j solution, and in some cases our solution requires significantly less memory.

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

↑