Satisfiability of simple xpath fragments in the presence of dtds

  • Authors:
  • Nobutaka Suzuki;Yuji Fukushima

  • Affiliations:
  • University of Tsukuba, Tsukuba, Japan;Yahoo Japan Corporation, Minato-ku, Tokyo, Japan

  • Venue:
  • Proceedings of the eleventh international workshop on Web information and data management
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

For an XPath expression q and a DTD D, q is satisfiable under D if there exists an XML document t such that t is valid against D and that the answer of q on t is nonempty. Evaluating an unsatisfiable XPath expression is meaningless, since such an expression can always be replaced by an empty set without evaluating it. However, it is shown that the XPath satisfiability problem is intractable for a large number of XPath fragments. In this paper, we consider simple XPath fragments under two restrictions; (i) only a label can be specified as a node test and (ii) operators such as qualifier ([]) and union (∪) are not allowed. We first show that, for some small XPath fragments under the above restrictions, the satisfiability problem is still NP-complete. Then we show that there exist XPath fragments, containing the above small fragments, for which the satisfiability problem is in PTIME under duplicate-free DTDs.