Efficient Schemes of Executing Star Operators in XPath Query Expressions

Upon performing XPath queries on XML documents that are stored in relational databases, the execution of path expressions with steps of the star operator ‘*', which can be mapped to arbitrary names of either elements or attributes, has not been treated seriously in the literature. This paper presents schemes of acquiring path identifiers of query expressions that have steps of star operators in addition to steps of element names and attribute names. The contribution of this paper can be summarized as follows. First, we show that path identifiers of “/@*” and “//@*” can be obtained from the relation Path that holds path identifiers of path expressions in XML documents; by extending the relation Path, path identifiers of “//*” can be obtained from the extended relation; and some of “/*”s can be handled with the same way as “//*”. Second, to obtain path identifiers of “/*” from the extended relation Path, we propose a new reserved character ‘$' that extends the string-pattern of the LIKE operator of SQL. The reserved character ‘$' followed by the restricting character string ‘[^patterns]' matches arbitrary number of arbitrary characters except for the characters listed in the restricting character string.

[1]  Alin Deutsch,et al.  XML-QL: A Query Language for XML , 1998 .

[2]  Chun Zhang,et al.  Storing and querying ordered XML using a relational database system , 2002, SIGMOD '02.

[3]  Toshiyuki Amagasa,et al.  XRel: a path-based approach to storage and retrieval of XML documents using relational databases , 2001, ACM Trans. Internet Techn..

[4]  Alin Deutsch,et al.  A Query Language for XML , 1999, Comput. Networks.

[5]  Eugene J. Shekita,et al.  XTABLES: Bridging relational technology and XML , 2002, IBM Syst. J..

[6]  Masatoshi Yoshikawa,et al.  Storage and Retrieval of XML Documents Using Object-Relational Databases , 1999, DEXA.

[7]  Torsten Grust,et al.  Accelerating XPath evaluation in any RDBMS , 2004, TODS.

[8]  Dan Suciu,et al.  Towards a Scalable Infrastructure for Advanced E-Services. , 2001 .

[9]  Wenfei Fan,et al.  Taming XPath Queries by Minimizing Wildcard Steps , 2004, VLDB.

[10]  Torsten Grust,et al.  Tree Awareness for Relational DBMS Kernels: Staircase Join , 2003, Intelligent Search on XML Data.

[11]  Michael J. Carey,et al.  XPERANTO: Publishing Object-Relational Data as XML , 2000, WebDB.

[12]  S. Boag,et al.  XQuery 1.0 : An XML query language, W3C Working Draft 12 November 2003 , 2003 .

[13]  Bongki Moon,et al.  PRIX: indexing and querying XML using prufer sequences , 2004, Proceedings. 20th International Conference on Data Engineering.

[14]  Philip S. Yu,et al.  ViST: a dynamic index method for querying XML data by tree structures , 2003, SIGMOD '03.