Evaluating Regular Path Queries on Compressed Adjacency Matrices

被引:4
|
作者
Arroyuelo, Diego [1 ,2 ]
Gomez-Brandon, Adrian [1 ,3 ]
Navarro, Gonzalo [1 ,4 ]
机构
[1] Millennium Inst Foundat Res Data IMFD, Santiago, Chile
[2] Univ Tecn Federico Santa Maria, Dept Informat, Vina Del Mar, Chile
[3] Univ A Coruna, CITIC Res Ctr, La Coruna, Spain
[4] Univ Chile, Dept Comp Sci, Santiago, Chile
来源
STRING PROCESSING AND INFORMATION RETRIEVAL, SPIRE 2023 | 2023年 / 14240卷
关键词
D O I
10.1007/978-3-031-43980-3_4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 excels in handling the hardest types of queries. Our more succinct structure, based on k(2)-trees, is 4 times smaller and still solves complex RPQs in reasonable time.
引用
收藏
页码:35 / 48
页数:14
相关论文
共 50 条