Efficient rewriting of XPath queries using Query Set Specifications

  • Authors:
  • Bogdan Cautis;Alin Deutsch;Nicola Onose;Vasilis Vassalos

  • Affiliations:
  • Telecom ParisTech;UC San Diego;UC San Diego;Athens Univ. of Economics and Business

  • Venue:
  • Proceedings of the VLDB Endowment
  • Year:
  • 2009

Quantified Score

Hi-index 0.02

Visualization

Abstract

We study the problem of querying XML data sources that accept only a limited set of queries, such as sources accessible by Web services which can implement very large (potentially infinite) families of XPath queries. To compactly specify such families of queries we adopt the Query Set Specifications [14], a formalism close to context-free grammars. We say that query Q is expressible by the specification P if it is equivalent to some expansion of P. Q is supported by P if it has an equivalent rewriting using some finite set of P's expansions. We study the complexity of expressibility and support and identify large classes of XPath queries for which there are efficient (PTIME) algorithms. Our study considers both the case in which the XML nodes in the results of the queries lose their original identity and the one in which the source exposes persistent node ids.