Evaluating regular path queries on compressed adjacency matrices

被引:0
|
作者
Arroyuelo, Diego [1 ,2 ]
Gomez-Brandon, Adrian [3 ,4 ]
Navarro, Gonzalo [5 ,6 ]
机构
[1] Pontificia Univ Catolica Chile, Escuela Ingn, DCC, Santiago, Chile
[2] Pontificia Univ Catolica Chile, Escuela Ingn, DCC, Santiago, Chile
[3] Univ A Coruna, ECOBAS, La Coruna, Spain
[4] Univ A Coruna, CITIC, La Coruna, Spain
[5] Univ Chile, IMFD, Santiago, Chile
[6] Univ Chile, DCC, Santiago, Chile
来源
VLDB JOURNAL | 2025年 / 34卷 / 01期
关键词
Regular path queries on graph databases; Compact data structures for adjacency matrices; Sparse matrices; Sparse Boolean matrices; EFFICIENT TRANSITIVE CLOSURE; ALGORITHM; MULTIPLICATION; ALGEBRA; WEB;
D O I
10.1007/s00778-024-00885-6
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
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 and GQL. 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 and time as the previously most compact index for RPQs, outperforming it on the hardest types of queries-those where both RPQ endpoints are unspecified. Our more succinct structure, based on k2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$k<^>2$$\end{document}-trees, is 4 times smaller than any existing representation that handles RPQs. While slower, it still solves complex RPQs in a few seconds and slightly outperforms the smallest previous structure on the hardest RPQs. Our new sparse-matrix-based solutions dominate a good portion of the space/time tradeoff map, being outperformed only by representations that use much more space. They also implement an algebra of Boolean matrices that is of independent interest beyond solving RPQs.
引用
收藏
页数:28
相关论文
共 50 条
  • [41] The view selection problem for regular path queries
    Afonin, Sergey
    LATIN 2008: THEORETICAL INFORMATICS, 2008, 4957 : 121 - 132
  • [42] α-ADJACENCY: A GENERALIZATION OF ADJACENCY MATRICES
    Hudelson, M.
    Mcdonald, J.
    Wendler, E.
    ELECTRONIC JOURNAL OF LINEAR ALGEBRA, 2019, 35 : 365 - 375
  • [43] PAIRPQ: An Efficient Path Index for Regular Path Queries on Knowledge Graphs
    Liu, Baozhu
    Wang, Xin
    Liu, Pengkai
    Li, Sizhuo
    Wang, Xiaofei
    WEB AND BIG DATA, APWEB-WAIM 2021, PT II, 2021, 12859 : 106 - 120
  • [44] CLASSIFYING STRONGLY REGULAR GRAPHS USING LEXICAL ORDERING OF ADJACENCY MATRICES
    COOLSAET, K
    FACK, V
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 1991, 21 (2-3) : 15 - 21
  • [45] On the p-Ranks of the Adjacency Matrices of Distance-Regular Graphs
    René Peeters
    Journal of Algebraic Combinatorics, 2002, 15 : 127 - 149
  • [46] On the p-ranks of the adjacency matrices of distance-regular graphs
    Peeters, R
    JOURNAL OF ALGEBRAIC COMBINATORICS, 2002, 15 (02) : 127 - 149
  • [47] Processing Regular Path Queries on Arbitrarily Distributed Data
    Davoust, Alan
    Esfandiari, Babak
    ON THE MOVE TO MEANINGFUL INTERNET SYSTEMS: OTM 2016 CONFERENCES, 2016, 10033 : 844 - 861
  • [48] FPIRPQ: Accelerating regular path queries on knowledge graphs
    Wang, Xin
    Hao, Wenqi
    Qin, Yuzhou
    Liu, Baozhu
    Liu, Pengkai
    Song, Yanyan
    Zhang, Qingpeng
    Wang, Xiaofei
    WORLD WIDE WEB-INTERNET AND WEB INFORMATION SYSTEMS, 2023, 26 (02): : 661 - 681
  • [49] Distributed processing of regular path queries in RDF graphs
    Guo, Xintong
    Gao, Hong
    Zou, Zhaonian
    KNOWLEDGE AND INFORMATION SYSTEMS, 2021, 63 (04) : 993 - 1027
  • [50] Answering Regular Path Queries over SQ Ontologies
    Gutierrez-Basulto, Victor
    Ibanez-Garcia, Yazmin
    Jung, Jean Christoph
    THIRTY-SECOND AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTIETH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / EIGHTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2018, : 1845 - 1852