{"title":"A Two-Step Approach for Tree-structured XPath Query Reduction","authors":"Minsoo Lee, Yun-mi Kim, Yoon-kyung Lee","volume":10,"journal":"International Journal of Computer and Information Engineering","pagesStart":3397,"pagesEnd":3403,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/12893","abstract":"XML data consists of a very flexible tree-structure\r\nwhich makes it difficult to support the storing and retrieving of XML\r\ndata. The node numbering scheme is one of the most popular\r\napproaches to store XML in relational databases. Together with the\r\nnode numbering storage scheme, structural joins can be used to\r\nefficiently process the hierarchical relationships in XML. However, in\r\norder to process a tree-structured XPath query containing several\r\nhierarchical relationships and conditional sentences on XML data,\r\nmany structural joins need to be carried out, which results in a high\r\nquery execution cost. This paper introduces mechanisms to reduce the\r\nXPath queries including branch nodes into a much more efficient form\r\nwith less numbers of structural joins. A two step approach is proposed.\r\nThe first step merges duplicate nodes in the tree-structured query and\r\nthe second step divides the query into sub-queries, shortens the paths\r\nand then merges the sub-queries back together. The proposed\r\napproach can highly contribute to the efficient execution of XML\r\nqueries. Experimental results show that the proposed scheme can\r\nreduce the query execution cost by up to an order of magnitude of the\r\noriginal execution cost.","references":"[1] Quanzhong Li and Bongki Moon. Indexing and querying XML data for\r\nregular path expressions. In Proc. of the 27th VLDB conference, Rome,\r\nItaly, Sep. 2001.\r\n[2] Chun Zhang, Jeffrey F. Naughton, Qiong Luo, and David J. DeWitt, and\r\nGuy M. Lohman. On supporting containment queries in relational\r\ndatabase management systems. SIGMOD conference, Santa Barbara, CA,\r\nUSA, May 2001.\r\n[3] Divesh Srivastava, Shurug Al-Khalifa, H. V. Jagadish, Nick Koudas,\r\nJinesh M. Patel, and Yuqing Wu. Structural joins: A primitive for efficient\r\nXML query pattern matching. IEEE conference on Data Engineering, San\r\nJose, USA, Feb. 2002.\r\n[4] Shu-Yao Chien, Zografoula Vagena, Donghui Zhang, vassilis J. Tsotras,\r\nand Carlo Zaniolo. Efficient structural joins on indexed XML documents.\r\n28th VLDB conference, p.263-274, Hong Kong, China, Aug. 2002.\r\n[5] Yuqing Wu, Jignesh M. Patel, and H. V. Jagadish, Structural Join Order\r\nSelection for XML Query Optimization. IEEE conference on Data\r\nEngineering, p. 443-454, Bangalore, India, March 2003.\r\n[6] Nicolas Bruno, Nick Koudas, and Divesh Srivastava, Holistic twig joins:\r\noptimal XML pattern matching, SIGMOD conference, p. 311-321,\r\nMadison, Wisconsin, USA, Jun. 2002.\r\n[7] Haifeng Jiang, Wei Wang, Hongjun Lu, and Jeffrey Xu Yu, Holistic Twig\r\nJoins on Indexed XML Documents, 29th VLDB conference, p. 273-284,\r\nBerlin, Germany, Sep. 2003.\r\n[8] Mary Fernandez and Dan Suciu. Optimizing regular path expressions\r\nusing graph schemas. IEEE Conference on Data Engineering, p. 4-13,\r\nOrlando, Florida, Feb. 1998.\r\n[9] Hyoseop Shin, Minsoo Lee, An Efficient Branch Query Rewriting\r\nAlgorithm for XML Query Optimization, ODBASE 2005, LNCS 3761,\r\nSpringer-Verlag, p. 1629-1639, Agia Napa, Cyprus, October 31 -\r\nNovember 4, 2005.\r\n[10] Albrecht Schmidt, Florian Waas, Martin L. Kersten, Michael J. Carey,\r\nIoana Manolescu, Ralph Busse. XMark: A Benchmark for XML Data\r\nManagement. In Proc. of the 28th VLDB conference, p. 974-985, Hong\r\nKong, China, Aug. 2002.\r\n[11] Sleepycat Software Inc., http:\/\/www.sleepycat.com.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 10, 2007"}