A TRICHOTOMY FOR REGULAR TRAIL QUERIES

被引:0
作者
Martens, Wim [1 ]
Niewerth, Matthias [1 ]
Popp, Tina [1 ]
机构
[1] Univ Bayreuth, Bayreuth, Germany
关键词
Regular languages; query languages; path queries; graph databases; databases; complexity; trails; simple paths; FINITE MONOIDS; PATHS; LANGUAGE; PRODUCT;
D O I
10.46298/lmcs-19(4:20)2023
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Regular path queries (RPQs) are an essential component of graph query languages. Such queries consider a regular expression r and a directed edge-labeled graph G and search for paths in G for which the sequence of labels is in the language of r. In order to avoid having to consider infinitely many paths, some database engines restrict such paths to be trails, that is, they only consider paths without repeated edges. In this article we consider the evaluation problem for RPQs under trail semantics, in the case where the expression is fixed. We show that, in this setting, there exists a trichotomy. More precisely, the complexity of RPQ evaluation divides the regular languages into the finite languages, the class Ttract (for which the problem is tractable), and the rest. Interestingly, the tractable class in the trichotomy is larger than for the trichotomy for simple paths, discovered by Bagan, Bonifati, and Groz [JCSS 2020]. In addition to this trichotomy result, we also study characterizations of the tractable class, its expressivity, the recognition problem, closure properties, and show how the decision problem can be extended to the enumeration problem, which is relevant to practice.
引用
收藏
页码:20:1 / 20:38
页数:38
相关论文
共 50 条
  • [11] Conjunctive Regular Path Queries under Injective Semantics
    Figueira, Diego
    Romero, Miguel
    PROCEEDINGS OF THE 42ND ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, PODS 2023, 2023, : 231 - 240
  • [12] Universal provenance for regular path queries
    Grahne, Gosta
    Liu, Tianyi
    Shiri, Nematollaah
    PROCEEDINGS OF 14TH INTERNATIONAL WORKSHOP ON THE THEORY AND PRACTICE OF PROVENANCE, TAPP 2022, 2022, : 17 - 23
  • [13] Regular Path Queries on Large Graphs
    Koschmieder, Andre
    Leser, Ulf
    SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, SSDBM 2012, 2012, 7338 : 177 - 194
  • [14] ω-Regular languages are testable with a constant number of queries
    Chockler, H
    Kupferman, O
    THEORETICAL COMPUTER SCIENCE, 2004, 329 (1-3) : 71 - 92
  • [15] Containment of Simple Conjunctive Regular Path Queries
    Figueira, Diego
    Godbole, Adwait
    Krishna, S.
    Martens, Wim
    Niewerth, Matthias
    Trautner, Tina
    KR2020: PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON PRINCIPLES OF KNOWLEDGE REPRESENTATION AND REASONING, 2020, : 371 - 380
  • [16] Conjunctive Regular Path Queries with String Variables
    Schmid, Markus L.
    PODS'20: PROCEEDINGS OF THE 39TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2020, : 361 - 374
  • [17] Regular languages are testable with a constant number of queries
    Alon, N
    Krivelevich, M
    Newman, I
    Szegedy, M
    SIAM JOURNAL ON COMPUTING, 2001, 30 (06) : 1842 - 1862
  • [18] 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
  • [19] FINE-GRAINED COMPLEXITY OF REGULAR PATH QUERIES
    Casel, Katrin
    Schmid, Markus l.
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (04)
  • [20] Regular Path Queries in Expressive Description Logics with Nominals
    Calvanese, Diego
    Eiter, Thomas
    Ortiz, Magdalena
    21ST INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE (IJCAI-09), PROCEEDINGS, 2009, : 714 - 720