Regular Queries on Graph Databases

被引:19
|
作者
Reutter, Juan L. [1 ]
Romero, Miguel [2 ]
Vardi, Moshe Y. [3 ]
机构
[1] Pontificia Univ Catolica Chile, Santiago, Chile
[2] Univ Chile, Santiago, Chile
[3] Rice Univ, Houston, TX 77005 USA
关键词
Graph databases; Conjunctive regular path queries; Regular queries; Containment; EXPRESSIONS; CONTAINMENT;
D O I
10.1007/s00224-016-9676-2
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Graph databases are currently one of the most popular paradigms for storing data. One of the key conceptual differences between graph and relational databases is the focus on navigational queries that ask whether some nodes are connected by paths satisfying certain restrictions. This focus has driven the definition of several different query languages and the subsequent study of their fundamental properties. We define the graph query language of Regular Queries, which is a natural extension of unions of conjunctive 2-way regular path queries (UC2RPQs) and unions of conjunctive nested 2-way regular path queries (UCN2RPQs). Regular queries allow expressing complex regular patterns between nodes. We formalize regular queries as nonrecursive Datalog programs extended with the transitive closure of binary predicates. This language has been previously considered, but its algorithmic properties are not well understood. Our main contribution is to show elementary tight bounds for the containment problem for regular queries. Specifically, we show that this problem is 2Expspace-complete. For all extensions of regular queries known to date, the containment problem turns out to be non-elementary. Together with the fact that evaluating regular queries is not harder than evaluating UCN2RPQs, our results show that regular queries achieve a good balance between expressiveness and complexity, and constitute a well-behaved class that deserves further investigation.
引用
收藏
页码:31 / 83
页数:53
相关论文
共 50 条
  • [1] Regular Queries on Graph Databases
    Juan L. Reutter
    Miguel Romero
    Moshe Y. Vardi
    [J]. Theory of Computing Systems, 2017, 61 : 31 - 83
  • [2] Enhanced regular path queries on semistructured databases
    Stefanescu, Dan
    Thomo, Alex
    [J]. CURRENT TRENDS IN DATABASE TECHNOLOGY - EDBT 2006, 2006, 4254 : 700 - 711
  • [3] Graph Traversals for Regular Path Queries
    Tetzel, Frank
    Kasperovics, Romans
    Lehner, Wolfgang
    [J]. PROCEEDINGS OF THE 2ND ACM SIGMOD JOINT INTERNATIONAL WORKSHOP ON GRAPH DATA MANAGEMENT EXPERIENCES & SYSTEMS (GRADES) AND NETWORK DATA ANALYTICS (NDA) 2019, 2019,
  • [4] Performance of Graph and Relational Databases in Complex Queries
    Kotiranta, Petri
    Junkkari, Marko
    Nummenmaa, Jyrki
    [J]. APPLIED SCIENCES-BASEL, 2022, 12 (13):
  • [5] Processing Scientific Mesh Queries in Graph Databases
    Mahdiraji, Alireza Rezaei
    Baumann, Peter
    [J]. WWW'14 COMPANION: PROCEEDINGS OF THE 23RD INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, 2014, : 1163 - 1168
  • [6] Processing SPARQL queries with regular expressions in RDF databases
    Jinsoo Lee
    Minh-Duc Pham
    Jihwan Lee
    Wook-Shin Han
    Hune Cho
    Hwanjo Yu
    Jeong-Hoon Lee
    [J]. BMC Bioinformatics, 12
  • [7] Processing SPARQL queries with regular expressions in RDF databases
    Lee, Jinsoo
    Pham, Minh-Duc
    Lee, Jihwan
    Han, Wook-Shin
    Cho, Hune
    Yu, Hwanjo
    Lee, Jeong-Hoon
    [J]. BMC BIOINFORMATICS, 2011, 12
  • [8] Partially ordered regular languages for graph queries
    Flesca, S
    Greco, S
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2005, 70 (01) : 1 - 25
  • [9] Answering Top-k Graph Similarity Queries in Graph Databases
    Zhu, Yuanyuan
    Qin, Lu
    Yu, Jeffrey Xu
    Cheng, Hong
    [J]. IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2020, 32 (08) : 1459 - 1474
  • [10] Analytical queries on semantic trajectories using graph databases
    Gomez, Leticia, I
    Kuijpers, Bart
    Vaisman, Alejandro A.
    [J]. TRANSACTIONS IN GIS, 2019, 23 (05) : 1078 - 1101