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
相关论文
共 49 条
[1]   Using forward reachability analysis for verification of lossy channel systems [J].
Abdulla, PA ;
Collomb-Annichini, A ;
Bouajjani, A ;
Jonsson, B .
FORMAL METHODS IN SYSTEM DESIGN, 2004, 25 (01) :39-65
[2]   G-CORE A Core for Future Graph Query Languages [J].
Angles, Renzo ;
Arenas, Marcelo ;
Barcelo, Pablo ;
Boncz, Peter ;
Fletcher, George ;
Gutierrez, Claudio ;
Lindaaker, Tobias ;
Paradies, Marcus ;
Plantikow, Stefan ;
Sequeda, Juan ;
van Rest, Oskar ;
Voigt, Hannes .
SIGMOD'18: PROCEEDINGS OF THE 2018 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2018, :1421-1432
[3]  
[Anonymous], 2008, US
[4]  
[Anonymous], 2013, SPARQL 1.1 Query Language
[5]  
[Anonymous], Oracle Spatial and Graph: Spatial and Graph Analytic Services and Data Models that Support Big Data Workloads
[6]  
[Anonymous], 2018, Cypher query language reference
[7]  
Arenas Marcelo., 2012, WWW, P629
[8]   MODULARITY OF CYCLES AND PATHS IN GRAPHS [J].
ARKIN, EM ;
PAPADIMITRIOU, CH ;
YANNAKAKIS, M .
JOURNAL OF THE ACM, 1991, 38 (02) :255-274
[9]  
Baeza PabloBarcelo., 2013, Proceedings of the 32nd ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS'13, page, P175, DOI [10.1145/2463664.2465216, DOI 10.1145/2463664.2465216]
[10]   A trichotomy for regular simple path queries on graphs [J].
Bagan, Guillaume ;
Bonifati, Angela ;
Groz, Benoit .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2020, 108 :29-48