Recursive XML Schemas, Recursive XML Queries, and Relational Storage: XML-to-SQL Query Translation

  • Authors:
  • Rajasekar Krishnamurthy;Venkatesan T. Chakaravarthy;Raghav Kaushik;Jeffrey F. Naughton

  • Affiliations:
  • -;-;-;-

  • Venue:
  • ICDE '04 Proceedings of the 20th International Conference on Data Engineering
  • Year:
  • 2004

Quantified Score

Hi-index 0.01

Visualization

Abstract

We consider the problem of translating XML queries intoSQL when XML documents have been stored in an RDBMSusing a schema-based relational decomposition. Surprisingly,there is no published XML-to-SQL query translationalgorithm for this scenario that handles recursive XMLschemas. We present a generic algorithm to translate pathexpression queries into SQL in the presence of recursionin the schema and queries. This algorithm handles a generalclass of XML-to-Relational mappings, which includesall techniques proposed in literature. Some of the salientfeatures of this algorithm are: (i) It translates a path expressionquery into a single SQL query, irrespective of howcomplex the XML schema is, (ii) It uses the "with" clause inSQL99 to handle recursive queries even over non-recursiveschemas, (iii) It reconstructs recursive XML subtrees witha single SQL query and (iv) It shows that the support forlinear recursion in SQL99 is sufficient for handling pathexpression queries over arbitrarily complex recursive XMLschema.