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 条
  • [31] DATALOG EXTENSIONS FOR DATABASE QUERIES AND UPDATES
    ABITEBOUL, S
    VIANU, V
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1991, 43 (01) : 62 - 124
  • [32] Safe Datalog queries with linear constraints
    Revesz, PZ
    PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING - CP98, 1998, 1520 : 355 - 369
  • [33] TREE PATTERN MATCHING FROM REGULAR TREE EXPRESSIONS
    Belabbaci, Ahlem
    Cherroun, Hadda
    Cleophas, Loek
    Ziadi, Djelloul
    KYBERNETIKA, 2018, 54 (02) : 221 - 242
  • [34] Monadic datalog and the expressive power of languages for web information extraction
    Gottlob, G
    Koch, C
    JOURNAL OF THE ACM, 2004, 51 (01) : 74 - 113
  • [35] REWRITABILITY IN MONADIC DISJUNCTIVE DATALOG, MMSNP, AND EXPRESSIVE DESCRIPTION LOGICS
    Feier, Cristina
    Kuusisto, Antti
    Lutz, Carsten
    LOGICAL METHODS IN COMPUTER SCIENCE, 2019, 15 (02) : 15:1 - 15:46
  • [36] Scoping Monadic Relational Database Queries
    Ekblad, Anton
    PROCEEDINGS OF THE 12TH ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON HASKELL (HASKELL '19), 2019, : 114 - 124
  • [37] Containment in Monadic Disjunctive Datalog, MMSNP, and Expressive Description Logics
    Bourhis, Pierre
    Lutz, Carsten
    FIFTEENTH INTERNATIONAL CONFERENCE ON THE PRINCIPLES OF KNOWLEDGE REPRESENTATION AND REASONING, 2016, : 207 - 216
  • [38] On the complexity of single-rule datalog queries
    Gottlob, G
    Papadimitriou, C
    INFORMATION AND COMPUTATION, 2003, 183 (01) : 104 - 122
  • [39] Assigning semantics to partial tree-pattern queries
    Theodoratos, Dimitri
    Wu, Xiaoying
    DATA & KNOWLEDGE ENGINEERING, 2008, 64 (01) : 242 - 265
  • [40] XMin: Minimizing Tree Pattern Queries with Minimality Guarantee
    Ki-Hoon Lee
    Kyu-Young Whang
    Wook-Shin Han
    World Wide Web, 2010, 13 : 343 - 371