Designing and Implementation of an Extensible XQuery-SQL Translation Model

Author
LongGuanQing
Advisor
PanYinRong
School
East China Normal University
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2007
Downloads
56
Citations
0

Request the full text

Abstract

As a markup language, XML is now a proposed standard for web information publishing, data storing and information exchanging. More and more application areas are producing XML documents on the web. It is critical to have efficient mechanisms to store XML documents to exploit the full power of the new technology. Mature relational database is widely used to store XML documents. However, this brings two problems: how to transfer XML documents from XML to relational database; how to convert XML queries to relational queries. This paper mainly studies the second problem.This paper studies a number of translation strategies, and finds out that there’s no existing technologes to our best knowledge can solve this problem soundly. Morever, query translation relies on mapping strategy. In order to support new mapping strategy, new query processor should be built. So it is helpful to design and implement a query translation system, which enables users to extend it to support new mapping strategy at a low cost.Based on the idea above, this paper designed and implemented an Extensible XQuery-SQL Translation Model (EXSM), which supports the XQuery-SQL translation and enables user to extend it at a low cost to support new mapping strategy.In order to enable users to extend EXSM at a low cost, EXSM is divided into the schema mapping component and the query translation component. The first component processes schema mapping, and defines a series of API, which enables user to exntend EXSM more conveniently and be unconscious of the top component’s implementation. Query translation component is used to translate XQuery to SQL. It is well designed so that it only depends on the abstract API of the schema mapping component, and would not be affected by the changes of mapping strategy. Morever, EXSM provides a complete XQuery-SQL translation solution, including the schema mapping based on Schema and the translation from original XQuery statement to the destination SQL statement. EXSM have powerful function and is easy to be extended, which makes up the characteristic and originality of this paper.Finally, we give a conclusion of the advantages as well as drawbacks of our approach, which will guide our research work in the future.

Table of contents

Summary 7-8 Abstract 8-11 Chapter 1 Introduction 11-17 1.1 XML Introduction 11-13 < br /> 1.1.1 XML generation and characteristics 11-12 1.1.2 XML Schema and DTD 12-13 1.2 XML -based relational database storage 13-14 1.3 current research major work 14-15 1.4 article 15-16 1.5 papers organizational structure 16-17 chapter EXSM related technologies 17-25 2.1 XQuery and XPath 17-21 2.1.1 XPath 18 - 20 2.1.2 FLWOR expression 20-21 2.2 schema mapping technology 21-23 2.2.1 edge mapping 22 <br / > 2.2.2 basic inline method 22-23 2.2.3 sharing the associated 23 2.2.4 inline mixing method 23 <br / > 2.3 JavaCC 23-24 2.4 Summary 24-25 design idea and system framework Chapter EXSM system 25-32 3.1 SilkRoute and View Forest design goals and ideas 25-26 3.2 EXSM system system architecture and processes 26-27 3.3 EXSM system 27 - 30 3.3.1 schema mapping module 28-29 3.3.2 converter module processing 29 3.3.3 EXSM system 29 -30 3.4 Summary design 30-32 Chapter IV schema mapping module design and implementation design ideas 32-44 4.1 schema mapping module 32-33 4.2 schema mapping library 33-37 4.2.1 EXSM relationship model design 33-35 4.2.2 schema mapping table 35-37 4.3 mapping user interface 37-41 4.3.1 mapping operation interface definition 37-38 4.3.2 XPath-SQL translation is 38-41 4.4 mode parser 41-43 4.5 Summary 43-44 Chapter query conversion module and its core algorithm design ideas 44-68 5.1 converter module 44-45 5.2 XQuery parser 45-47 5.2.1 XQuery resolved design 45 5.2.2 XQuery parser implementation 45-47 5.3 bind variables collector 47-60 5.3. a bind variable tree 47-52 5.3.2 bind variables tree construction algorithm GenBVT 52-60 5.4 SQL builder 60-66 < br /> 5.4.1 SQL builder principle 61-64 5.4.2 SQL construct algorithms 64-66 5.5 Summary 66-68 <br / > Chapter VI mode mapping module extension for example 68-69 Chapter VII summary and Outlook 69-71 7.1 summarizes 69-70 <br / > 7.2 Prospects 70-71 References 71-74 Appendix XML Schema definition document toysco.xsd 74-76 Thanks 76-77 studying for a master's degree to participate in the project and published during the academic catalog 77

Related dissertations

  1. Research on XML Data Cube Based on Tree Structure
  2. XQuery Query Processor Design and Implementation
  3. Optimizing Twig Query Pattern Based on XML Schema
    LiHui ·Beijing University of Technology ·2013 ·Master's thesis
  4. Research and Implementation of the Full-text Retrieval System in XML Databases
    GuoXiaoLei ·Northeastern University ·2011 ·Master's thesis
  5. Scheduling Algorithm in Parallelizarion of Xquery Programs
    WangLei ·Beijing University of Technology ·2012 ·Master's thesis
  6. Study and Implementation of a Heterogeneous Data Integration System Based on XML
  7. Research on XML Stream Data Processing
    DengZiQiang ·Beijing University of Technology ·2012 ·Master's thesis
  8. Research on Data Integration Technology for E-commerce in the Web Environment
  9. Identification and Query Algorithm of Extended XML Tree Pattern for XQuery Programs
    ChenJunPeng ·Beijing University of Technology ·2013 ·Master's thesis
  10. Design and Implementation of the XProc Processor Based on.NET
  11. Design and Implementation of the XML Document Processing System Based on Xproc
  12. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  13. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  14. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  15. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  16. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  17. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  18. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  19. Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
    HeZhenLei ·Zhejiang University ·2013 ·Master's thesis
  20. Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
    ShenZhangBiao ·Zhejiang University ·2014 ·Master's thesis