{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,5,21]],"date-time":"2025-05-21T05:53:29Z","timestamp":1747806809841,"version":"3.40.4"},"reference-count":61,"publisher":"Association for Computing Machinery (ACM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2008,8]]},"abstract":"<jats:p>There has been a lot of research and industrial effort on building XQuery engines with different kinds of XML storage and index models. However, most of these efforts focus on building either an efficient XQuery engine with one kind of XML storage, index, view model in mind or a general XQuery engine without any consideration of the underlying XML storage, index and view model. We need an underlying framework to build an XQuery engine that can work with and provide optimization for different XML storage, index and view models. Besides XQuery, RDBMSs also support SQL\/XML, a standard language that integrates XML and relational processing. There are industrial efforts for building hybrid XQuery and SQL\/XML engines that support both languages so that users can manage and query both relational and XML data on one platform. However, we need a theoretical framework to optimize both SQL\/XML and XQuery languages in one RDBMS. In this paper, we show our industrial work of building a combined XQuery and SQL\/XML engine that is able to work and provide optimization for different kinds of XML storage and index models in Oracle XMLDB. This work is based on<jats:bold>XML extended relational algebra<\/jats:bold>as the underlying tuple-based logical algebra and incorporates tree and automata based physical algebra into the logical tuple-based algebra so as to provide optimization for different physical XML formulations. This results in<jats:bold>logical and physical rewrite<\/jats:bold>techniques to optimize XQuery and SQL\/XML over a variety of physical XML storage, index and view models, including schema aware object relational XML storage with relational indexes, binary XML storage with schema agnostic path-value-order key XMLIndex, SQL\/XML view over relational data and relational view over XML. Furthermore, we show the approach of leveraging<jats:bold>cost based XML physical rewrite<\/jats:bold>strategy to evaluate different physical rewrite plans.<\/jats:p>","DOI":"10.14778\/1454159.1454177","type":"journal-article","created":{"date-parts":[[2014,6,24]],"date-time":"2014-06-24T12:17:57Z","timestamp":1403612277000},"page":"1356-1367","source":"Crossref","is-referenced-by-count":6,"title":["Towards a physical XML independent XQuery\/SQL\/XML engine"],"prefix":"10.14778","volume":"1","author":[{"given":"Zhen Hua","family":"Liu","sequence":"first","affiliation":[{"name":"Oracle Corporation, Redwood Shores, CA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Sivasankaran","family":"Chandrasekar","sequence":"additional","affiliation":[{"name":"Oracle Corporation, Redwood Shores, CA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Thomas","family":"Baby","sequence":"additional","affiliation":[{"name":"Oracle Corporation, Redwood Shores, CA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Hui J.","family":"Chang","sequence":"additional","affiliation":[{"name":"Oracle Corporation, Redwood Shores, CA"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2008,8]]},"reference":[{"unstructured":"LORE : http:\/\/infolab.stanford.edu\/lore\/ LORE: http:\/\/infolab.stanford.edu\/lore\/","key":"e_1_2_1_1_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_2_1","DOI":"10.1145\/152610.152611"},{"doi-asserted-by":"publisher","key":"e_1_2_1_3_1","DOI":"10.1145\/319732.319745"},{"doi-asserted-by":"publisher","key":"e_1_2_1_4_1","DOI":"10.1145\/500080.500091"},{"doi-asserted-by":"crossref","unstructured":"R. Murthy S. Banerjee: XML Schemas in Oracle XML DB. VLDB 2003 R. Murthy S. Banerjee: XML Schemas in Oracle XML DB. VLDB 2003","key":"e_1_2_1_5_1","DOI":"10.1016\/B978-012722442-8\/50094-X"},{"doi-asserted-by":"crossref","unstructured":"M. Krishnaprasad Z. H. Liu A. Manikutty J. Warner V. Arora S. Kotsovolos: Query Rewrite for XML in Oracle XML DB VLDB 2004 M. Krishnaprasad Z. H. Liu A. Manikutty J. Warner V. Arora S. Kotsovolos: Query Rewrite for XML in Oracle XML DB VLDB 2004","key":"e_1_2_1_6_1","DOI":"10.1016\/B978-012088469-8.50098-X"},{"doi-asserted-by":"publisher","key":"e_1_2_1_7_1","DOI":"10.1145\/1066157.1066300"},{"doi-asserted-by":"publisher","key":"e_1_2_1_8_1","DOI":"10.1145\/1066157.1066197"},{"doi-asserted-by":"publisher","key":"e_1_2_1_9_1","DOI":"10.1145\/1066157.1066298"},{"unstructured":"I. O. for Standardization (ISO). Information Technology-Database Language SQL-Part 14: XML-Related Specificaitons (SQL\/XML) I. O. for Standardization (ISO). Information Technology-Database Language SQL-Part 14: XML-Related Specificaitons (SQL\/XML)","key":"e_1_2_1_10_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_11_1","DOI":"10.1145\/1066157.1066259"},{"volume-title":"ICDE 2007","author":"Liu Z. H.","key":"e_1_2_1_12_1"},{"unstructured":"M. Stonebraker P. Brown D. Moore: Object-Relational DBMSs Second Edition Morgan Kaufmann 1998 M. Stonebraker P. Brown D. Moore: Object-Relational DBMSs Second Edition Morgan Kaufmann 1998","key":"e_1_2_1_13_1"},{"unstructured":"Z. H. Liu. \"Object-Relational Features in Informix Internet Foundation.\"Informix technical notes. 9.4(Q4 1999): 77--95. Z. H. Liu. \"Object-Relational Features in Informix Internet Foundation.\"Informix technical notes. 9.4(Q4 1999):77--95.","key":"e_1_2_1_14_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_15_1","DOI":"10.1145\/304182.304235"},{"doi-asserted-by":"publisher","key":"e_1_2_1_16_1","DOI":"10.1145\/253260.253370"},{"unstructured":"J. Shanmugasundaram K. Tufte G. He C. Zhang D. DeWitt J. Naughton: Relational Databases for Querying XML documents: Limitations and Opportunities VLDB 1999 J. Shanmugasundaram K. Tufte G. He C. Zhang D. DeWitt J. Naughton: Relational Databases for Querying XML documents: Limitations and Opportunities VLDB 1999","key":"e_1_2_1_17_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_18_1","DOI":"10.1145\/564691.564715"},{"doi-asserted-by":"publisher","key":"e_1_2_1_19_1","DOI":"10.1145\/507338.507341"},{"unstructured":"M. Yoshikawa T. Amagasa T. Shimura S. Uemura: Xrel: A Path-Based Approach to Storage and Retrieval of XML documents Using Relational Databases M. Yoshikawa T. Amagasa T. Shimura S. Uemura: Xrel: A Path-Based Approach to Storage and Retrieval of XML documents Using Relational Databases","key":"e_1_2_1_20_1"},{"volume-title":"Jeffrey Xu Yu: Path Materialization Revisited: An Efficient Storage Model for XML Data. Australasian Database Conference 2002","author":"Jiang H.","key":"e_1_2_1_21_1"},{"issue":"3","key":"e_1_2_1_22_1","first-page":"27","article-title":"Storing and Querying XML Data using an RDMBS","volume":"22","author":"Florescu D.","year":"1999","journal-title":"IEEE Data Eng. Bull."},{"volume-title":"VLDB","year":"2001","author":"Shanmugasundaram J.","key":"e_1_2_1_23_1"},{"key":"e_1_2_1_24_1","first-page":"1037","article-title":"Query Processing in the AquaLogic Data Services Platform","volume":"2006","author":"Borkar V. R.","journal-title":"VLDB"},{"key":"e_1_2_1_25_1","first-page":"35","article-title":"Implementing Memoization in a Streaming XQuery Processor","volume":"2004","author":"Diao Y.","journal-title":"XSym"},{"doi-asserted-by":"publisher","key":"e_1_2_1_26_1","DOI":"10.1007\/s00778-004-0137-1"},{"key":"e_1_2_1_27_1","first-page":"1134","article-title":"Indexing XML Data Stored in a Relational Database","volume":"2004","author":"Pal S.","journal-title":"VLDB"},{"key":"e_1_2_1_28_1","first-page":"1175","article-title":"XQuery Implementation in a Relational Database System","volume":"2005","author":"Pal S.","journal-title":"VLDB"},{"doi-asserted-by":"publisher","key":"e_1_2_1_29_1","DOI":"10.1109\/ICDE.2006.6"},{"doi-asserted-by":"publisher","key":"e_1_2_1_30_1","DOI":"10.1145\/1066157.1066298"},{"key":"e_1_2_1_31_1","first-page":"168","article-title":"The NEXT Logical Framework for XQuery","volume":"2004","author":"Deutsch A.","journal-title":"VLDB"},{"doi-asserted-by":"publisher","key":"e_1_2_1_32_1","DOI":"10.1145\/584931.584936"},{"doi-asserted-by":"publisher","key":"e_1_2_1_33_1","DOI":"10.1145\/1142473.1142527"},{"doi-asserted-by":"crossref","unstructured":"N. May S. Helmer G. Moerkotte: Nested queries and quantifiers in an ordered context.: ICDE 239--250 Mar 2004 N. May S. Helmer G. Moerkotte: Nested queries and quantifiers in an ordered context.: ICDE 239--250 Mar 2004","key":"e_1_2_1_34_1","DOI":"10.1109\/ICDE.2004.1320001"},{"unstructured":"R. A. Kader: XQuery Optimization in Relational Database Systems: http:\/\/arvo.ifi.uzh.ch\/dbtg\/vldbphd2007\/Camera-Ready%20Papers\/Paper%206\/XQuery_Optimization.pdf R. A. Kader: XQuery Optimization in Relational Database Systems: http:\/\/arvo.ifi.uzh.ch\/dbtg\/vldbphd2007\/Camera-Ready%20Papers\/Paper%206\/XQuery_Optimization.pdf","key":"e_1_2_1_35_1"},{"unstructured":"M. Grinev S. Kuznetsov: Towards an Exhaustive Set of Rewriting Rules for XQuery Optimization: BizQuery Experience. http:\/\/www.ispras.ru\/~grinev\/mypapers\/rewriting-extended.pdf M. Grinev S. Kuznetsov: Towards an Exhaustive Set of Rewriting Rules for XQuery Optimization: BizQuery Experience. http:\/\/www.ispras.ru\/~grinev\/mypapers\/rewriting-extended.pdf","key":"e_1_2_1_36_1"},{"unstructured":"R. Krishnamurthy R. Kaushik J. Naughton: XML-to-SQL Query Translation Literature: The State of the Art and Open Problems. http:\/\/homepages.inf.ed.ac.uk\/wenfei\/qsx\/reading\/xmltosqlsurvey.pdf R. Krishnamurthy R. Kaushik J. Naughton: XML-to-SQL Query Translation Literature: The State of the Art and Open Problems. http:\/\/homepages.inf.ed.ac.uk\/wenfei\/qsx\/reading\/xmltosqlsurvey.pdf","key":"e_1_2_1_37_1"},{"key":"e_1_2_1_38_1","first-page":"252","article-title":"XQuery on SQL Hosts","volume":"2004","author":"Grust T.","journal-title":"VLDB"},{"unstructured":"I. Manolescu D. Florescu D. Kossmann: Answering XML Queries over Heterogeneous Data Sources. BDA 2001 I. Manolescu D. Florescu D. Kossmann: Answering XML Queries over Heterogeneous Data Sources. BDA 2001","key":"e_1_2_1_39_1"},{"volume-title":"G. Moerkotte: Efficient Storage of XML Data. ICDE 2000: 198","author":"Kanne C.","key":"e_1_2_1_40_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_41_1","DOI":"10.1007\/s00778-002-0081-x"},{"key":"e_1_2_1_42_1","first-page":"149","article-title":"TAX","volume":"2001","author":"Jagadish H. V.","journal-title":"A Tree Algebra for XML. DBPL"},{"unstructured":"XQuery 1.0 and Xpath 2.0 Formal Semantics: http:\/\/www.w3.org\/TR\/xquery-semantics\/ XQuery 1.0 and Xpath 2.0 Formal Semantics: http:\/\/www.w3.org\/TR\/xquery-semantics\/","key":"e_1_2_1_43_1"},{"key":"e_1_2_1_44_1","first-page":"237","article-title":"From Tree Patterns to Generalized Tree Patterns","volume":"2003","author":"Chen Z.","journal-title":"On Efficient Evaluation of XQuery. VLDB"},{"volume-title":"ICDE 2007: 246--255","author":"Michiels P.","key":"e_1_2_1_45_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_46_1","DOI":"10.1145\/564691.564727"},{"volume-title":"Stonebraker: Inclusion of New Types in Relational Data Base Systems. ICDE 1986: 262--269","author":"M.","key":"e_1_2_1_47_1"},{"volume-title":"H. Pirahesh: A Framework for Using Materialized Xpath Views in XML Query Processing. VLDB","year":"2004","author":"Balmin A.","key":"e_1_2_1_48_1"},{"doi-asserted-by":"publisher","key":"e_1_2_1_49_1","DOI":"10.1016\/j.datak.2006.03.003"},{"key":"e_1_2_1_50_1","first-page":"121","volume":"2005","author":"Xu W.","journal-title":"Rewriting XPath Queries Using Materialized Views. VLDB"},{"unstructured":"A. Arion V. Benzaken I. Manolescu: XML Access Modules: Towards Physical Data Independence in XML Databases. XIME-P 2005 A. Arion V. Benzaken I. Manolescu: XML Access Modules: Towards Physical Data Independence in XML Databases. XIME-P 2005","key":"e_1_2_1_51_1"},{"key":"e_1_2_1_52_1","first-page":"87","article-title":"Structured Materialized Views for XML Queries","volume":"2007","author":"Arion A.","journal-title":"VLDB"},{"doi-asserted-by":"publisher","key":"e_1_2_1_53_1","DOI":"10.1145\/584792.584815"},{"doi-asserted-by":"publisher","key":"e_1_2_1_54_1","DOI":"10.1145\/958942.958947"},{"doi-asserted-by":"publisher","key":"e_1_2_1_55_1","DOI":"10.1016\/j.datak.2005.10.008"},{"volume-title":"ICDE 2007: 256--265","author":"Fern\u00e1ndez M. F.","key":"e_1_2_1_56_1"},{"key":"e_1_2_1_57_1","first-page":"54","article-title":"Avoiding Unnecessary Ordering Operations","volume":"2003","author":"Hidders J.","journal-title":"XPath. DBPL"},{"volume-title":"ICDE 2007: 226--235","author":"Grust T.","key":"e_1_2_1_58_1"},{"doi-asserted-by":"crossref","unstructured":"A. Schmidt F. Waas M. L. Kersten M. J. Carey Manolescu R. Busse: \"XMark: A Benchmark for XML Data Management\" pp974--985 VLDB 2002 A. Schmidt F. Waas M. L. Kersten M. J. Carey Manolescu R. Busse: \"XMark: A Benchmark for XML Data Management\" pp974--985 VLDB 2002","key":"e_1_2_1_59_1","DOI":"10.1016\/B978-155860869-6\/50096-2"},{"doi-asserted-by":"publisher","key":"e_1_2_1_60_1","DOI":"10.1145\/1247480.1247590"},{"volume-title":"S. Pal: Optimizing Similar Scalar Subqueries for XML Processing in Microsoft SQL Server. ICDE 2007 1164--1173","author":"Baras A.","key":"e_1_2_1_61_1"}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/1454159.1454177","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,5,3]],"date-time":"2025-05-03T12:51:31Z","timestamp":1746276691000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/1454159.1454177"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2008,8]]},"references-count":61,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2008,8]]}},"alternative-id":["10.14778\/1454159.1454177"],"URL":"https:\/\/doi.org\/10.14778\/1454159.1454177","relation":{},"ISSN":["2150-8097"],"issn-type":[{"type":"print","value":"2150-8097"}],"subject":[],"published":{"date-parts":[[2008,8]]}}}