Monadic Datalog and Regular Tree Pattern Queries

被引:0
|
作者
Mazowiecki, Filip [1 ]
Murlak, Filip [1 ]
Witkowski, Adam [1 ]
机构
[1] Univ Warsaw, Fac Math Informat & Mech, Banacha 2, PL-02097 Warsaw, Poland
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2016年 / 41卷 / 03期
关键词
Theory; Recursive queries; trees; semistructured data; containment problem; EXPRESSIVE POWER; CONTAINMENT; EQUIVALENCE;
D O I
10.1145/2925986
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Containment of monadic datalog programs over trees is decidable. The situation is more complex when tree nodes carry labels from an infinite alphabet that can be tested for equality. It then matters whether the descendant relation is allowed or not: the descendant relation can be eliminated easily from monadic programs only when label equalities are not used. With descendant, even containment of linear monadic programs in unions of conjunctive queries is undecidable, and positive results are known only for bounded-depth trees. We show that without descendant, containment of connected monadic programs is decidable over ranked trees, but over unranked trees it is so only for linear programs. With descendant, it becomes decidable over unranked trees under restriction to downward programs: each rule only moves down from the node in the head. This restriction is motivated by regular tree pattern queries, a recent formalism in the area of ActiveXML, which we show to be equivalent to linear downward programs.
引用
收藏
页数:43
相关论文
共 50 条
  • [1] Monadic Datalog and Regular Tree Pattern Queries
    Mazowiecki, Filip
    Murlak, Filip
    Witkowski, Adam
    [J]. MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2014, PT I, 2014, 8634 : 426 - 437
  • [2] Monadic Datalog Tree Transducers
    Buechse, Matthias
    Stueber, Torsten
    [J]. LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS, 2009, 5457 : 267 - 278
  • [3] Monadic Datalog, Tree Validity, and Limited Access Containment
    Benedikt, Michael
    Bourhis, Pierre
    Gottlob, Georg
    Senellart, Pierre
    [J]. ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2020, 21 (01)
  • [4] DATALOG REWRITINGS OF REGULAR PATH QUERIES USING VIEWS
    Francis, Nadime
    Segoufin, Luc
    Sirangelo, Cristina
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2015, 11 (04)
  • [5] Weighted monadic datalog
    Stueber, Torsten
    Vogler, Heiko
    [J]. THEORETICAL COMPUTER SCIENCE, 2008, 403 (2-3) : 221 - 238
  • [6] Monadic Datalog Containment
    Benedikt, Michael
    Bourhis, Pierre
    Senellart, Pierre
    [J]. AUTOMATA, LANGUAGES, AND PROGRAMMING, ICALP 2012, PT II, 2012, 7392 : 79 - 91
  • [7] Monadic queries over tree-structured data
    Gottlob, G
    Koch, C
    [J]. 17TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2002, : 189 - 202
  • [8] Functional queries in Datalog
    Basta, S
    Flesca, S
    Greco, S
    [J]. NEW GENERATION COMPUTING, 2002, 20 (04) : 339 - 371
  • [9] Minimization of Tree Pattern Queries
    Czerwinski, Wojciech
    Martens, Wim
    Niewerth, Matthias
    Parys, Pawel
    [J]. PODS'16: PROCEEDINGS OF THE 35TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2016, : 43 - 54
  • [10] Minimization of tree pattern queries
    Amer-Yahia, S
    Cho, SR
    Lakshmanan, LVS
    Srivastava, D
    [J]. SIGMOD RECORD, 2001, 30 (02) : 497 - 508