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 条
  • [11] On the evaluation of tree pattern queries
    Chen, Yangjun
    ICSOFT 2006: Proceedings of the First International Conference on Software and Data Technologies, Vol 2, 2006, : 79 - 85
  • [12] Functional queries in Datalog
    Stefano Basta
    Sergio Flesca
    Sergio Greco
    New Generation Computing, 2002, 20 : 339 - 371
  • [13] TRANSDUCTIONS OF RECOGNIZABLE SETS OF MONADIC TREES - REGULAR TREE GRAMMARS
    ARNOLD, A
    DAUCHET, M
    REVUE FRANCAISE D AUTOMATIQUE INFORMATIQUE RECHERCHE OPERATIONNELLE, 1976, 10 (03): : 5 - 28
  • [14] INCREMENTAL EVALUATION OF DATALOG QUERIES
    DONG, GZ
    TOPOR, R
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 646 : 282 - 296
  • [15] EQUIVALENCE OF DATALOG QUERIES IS UNDECIDABLE
    SHMUELI, O
    JOURNAL OF LOGIC PROGRAMMING, 1993, 15 (03): : 231 - 241
  • [16] Games and total Datalog queries
    Flum, J
    Kubierschky, M
    Ludäscher, B
    THEORETICAL COMPUTER SCIENCE, 2000, 239 (02) : 257 - 276
  • [17] Bash Datalog: Answering Datalog Queries with Unix Shell Commands
    Rebele, Thomas
    Tanon, Thomas Pellissier
    Suchanek, Fabian
    SEMANTIC WEB - ISWC 2018, PT I, 2018, 11136 : 566 - 582
  • [18] Eliminating Recursion from Monadic Datalog Programs on Trees
    Mazowiecki, Filip
    Ochremiak, Joanna
    Witkowski, Adam
    MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2015, PT I, 2015, 9234 : 394 - 406
  • [19] Monadic Datalog over Finite Structures of Bounded Treewidth
    Gottlob, Georg
    Pichler, Reinhard
    Wei, Fang
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2010, 12 (01)
  • [20] UNORDERED TREE MATCHING AND TREE PATTERN QUERIES IN XML DATABASES
    Chen, Yangjun
    ICSOFT 2009: PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL 2, 2009, : 191 - 198