XPath satisfiability in the presence of DTDs

被引:89
作者
Benedikt, Michael [1 ]
Fan, Wenfei [2 ,3 ]
Geerts, Floris [2 ,4 ]
机构
[1] Univ Oxford, Comp Lab, Oxford OX1 3QD, England
[2] Univ Edinburgh, Edinburgh, Midlothian, Scotland
[3] Bell Labs, Murray Hill, NJ 07974 USA
[4] Transnatl Univ Limburg, Limburg, Belgium
基金
英国工程与自然科学研究理事会;
关键词
algorithms; languages; theory; DTDs; XML; XPath; satisfiability; containment;
D O I
10.1145/1346330.1346333
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We study the satisfiability problem associated with XPath in the presence of DTDs. This is the problem of determining, given a query p in an XPath fragment and a DTD D, whether or not there exists an XML document T such that T conforms to D and the answer of p on T is nonempty. We consider a variety of XPath fragments widely used in practice, and investigate the impact of different XPath operators on the satisfiability analysis. We first study the problem for negation-free XPath fragments with and without upward axes, recursion and data-value joins, identifying which factors lead to tractability and which to NP-completeness. We then turn to fragments with negation but without data values, establishing lower and upper bounds in the absence and in the presence of upward modalities and recursion. We show that with negation the complexity ranges from PSPACE to EXPTIME. Moreover, when both data values and negation are in place, we find that the complexity ranges from NEXPTIME to undecidable. Furthermore, we give a finer analysis of the problem for particular classes of DTDs, exploring the impact of various DTD constructs, identifying tractable cases, as well as providing the complexity in the query size alone. Finally, we investigate the problem for XPath fragments with sibling axes, exploring the impact of horizontal modalities on the satisfiability analysis.
引用
收藏
页数:79
相关论文
共 40 条
[1]   Tree pattern query minimization [J].
Amer-Yahia, S ;
Cho, S ;
Lakshmanan, LVS ;
Srivastava, D .
VLDB JOURNAL, 2002, 11 (04) :315-331
[2]  
[Anonymous], 2005, J APPL NONCLASSICAL
[3]   Structural properties of XPath fragments [J].
Benedikt, M ;
Fan, WF ;
Kuper, G .
THEORETICAL COMPUTER SCIENCE, 2005, 336 (01) :3-31
[4]  
BENEDIKT M, 2005, PODS 05, P25, DOI DOI 10.1145/1065167.1065172
[5]  
Borger Egon, 1997, CLASSICAL DECISION P
[6]  
Bray Tim, 1998, Extensible markup language
[7]  
Calvanese D, 2002, LECT NOTES COMPUT SC, V2397, P40
[8]  
CHAMBERLIN D, 2001, XQUERY 1 0 XML QUERY
[9]   Efficient filtering of XML documents with XPath expressions [J].
Chan, CY ;
Felber, P ;
Garofalakis, M ;
Rastogi, R .
18TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2002, :235-244
[10]   DOMINO-TILING GAMES [J].
CHLEBUS, BS .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1986, 32 (03) :374-392