Containment of Regular Path Queries Under Path Constraints

被引:0
作者
Salvati, Sylvain [1 ]
Tison, Sophie [1 ]
机构
[1] Univ Lille, INRIA, CRIStAL CNRS UMR 9189, Lille, France
来源
27TH INTERNATIONAL CONFERENCE ON DATABASE THEORY, ICDT 2024 | 2024年 / 290卷
关键词
Graph databases; rational path queries; query containment; TGDs; word constraints; rewrite systems; finite controllability; decision problems;
D O I
10.4230/LIPIcs.ICDT.2024.17
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Data integrity is ensured by expressing constraints it should satisfy. One can also view constraints as data properties and take advantage of them for several tasks such as reasoning about data or accelerating query processing. In the context of graph databases, simple constraints can be expressed by means of path constraints while simple queries are modeled as regular path queries (RPQs). In this paper, we investigate the containment of RPQs under path constraints. We focus on word constraints that can be viewed as tuple-generating dependencies (TGDs) of the form for all x(1), x(2),there exists (z) over bar, a(1)(x(1), y(1)) boolean AND.....boolean AND a(i) (y(i-1), y(i)) boolean AND.... boolean AND a(n)( y(n-1), x(2)) -> there exists(z) over bar, b(1)(x(1), z(1))boolean AND.....boolean AND b(i) ( z(i-1), z(i))boolean AND....boolean AND b(m)(z(m-1), x(2)). Such a constraint means that whenever two nodes in a graph are connected by a path labeled a(1)... a(n), there is also a path labeled b(1)... b(m) that connects them. Rewrite systems offer an abstract view of these TGDs: the rewrite rule a(1)... a(n) -> b(1)... b(m) represents the previous constraint. A set of constraints C is then represented by a rewrite system R and, when dealing with possibly infinite databases, a path query p is contained in a path query q under the constraints C iff p rewrites to q with R. Contrary to what has been claimed in the literature we show that, when restricting to finite databases only, there are cases where a path query p is contained in a path query q under the constraints C while p does not rewrite to q with R. More generally, we study the finite controllability of the containment of RPQs under word constraints, that is when this containment problem on unrestricted databases does coincide with the finite case. We give an exact characterisation of the cases where this equivalence holds. We then deduce the undecidability of the containment problem in the finite case even when RPQs are restricted to word queries. We prove several properties related to finite controllability, and in particular that it is undecidable. We also exhibit some classes of word constraints that ensure the finite controllability and the decidability of the containment problem.
引用
收藏
页数:19
相关论文
共 19 条
[1]   Regular path queries with constraints [J].
Abiteboul, S ;
Vianu, V .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1999, 58 (03) :428-452
[2]  
Amendola G, 2018, PROCEEDINGS OF THE TWENTY-SEVENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, P5189
[3]   Path constraints in semistructured data [J].
Andre, Y. ;
Caron, A. C. ;
Debarbieux, D. ;
Roos, Y. ;
Tison, S. .
THEORETICAL COMPUTER SCIENCE, 2007, 385 (1-3) :11-33
[4]   On the data complexity of consistent query answering over graph databases [J].
Barcelo, Pablo ;
Fontaine, Gaelle .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2017, 88 :164-194
[5]  
Bienvenu M, 2017, PROCEEDINGS OF THE TWENTY-SIXTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, P844
[6]  
Book R., 1993, STRING REWRITING SYS, DOI DOI 10.1007/978-1-4613-9771-7
[7]  
Buchi R, 1964, Arch. Math. Logik Grundlag.
[8]   Path constraints in semistructured databases [J].
Buneman, P ;
Fan, WF .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2000, 61 (02) :146-193
[9]  
Calvanese Diego, 2016, LIPIcs, V15, DOI [10.4230/ LIPIcs.ICDT.2016.15, DOI 10.4230/LIPICS.ICDT.2016.15]
[10]  
Figueira Santiago, 2020, INT C PRINC KNOWL RE, DOI [10.24963/kr.2020/39, DOI 10.24963/KR.2020/39]