Design and Implementation of XML Update System Based on Region Encoding

Author
FangYou
Advisor
PanYinRong
School
East China Normal University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
66
Citations
0

Request the full text

Abstract

As a new markup language, XML has become the standard for representing and exchanging data via network. Since its unique advantages such as self-description, and platform-independence, more and more applications use XML to store, exchange and publish information, which brings a great challenge to XML storage solution.With powerful and reliable data management capabilities relational database is increasingly widely used to store XML data.Currently the performance issue of query and update xml data based on RDBMS has become a research hot point.In order to use existing RDBMS it requires us to efficiently map xml data into relational table.However, with no aware of underlying tree-shaped data RDBMS can’t make full use of encoding information, which affects its query and update performance. Region-based encoding maps xml data into index structure that facilitates the management.More importantly, Staircase Join are aware of tree-shaped data and can effectively reduce redundant operation for loop.Experiments show compared with other approaches the use of region-based encoding can significantly improve the performance of XPath and XQuery.However, because of structural update problem in region-based encoding nearly half of the total nodes need to be changed for update operation.Therefore, it is very meaningful to design and implement a high-efficient region-based xml update system.This paper designs and implements a prototype system called XUpdate2SQL. It consists of two major components:The first part designs the rules to map XUpdate to SQL and uses loop-lifted approach to convert loop in XUpdate to join in SQL to solve the differences between XUpdate and SQL.Then according to those rules it transforms XUpdate AST (Abstract Syntax Tree) to SQL AST with BURG tool to complete compilation process. The target language of internal compiler is SQL which follows SQL92 standard and supported by popular RDBMS so it has good versatility.The second part designs BUS(Batch Update Strategy) by introducing incremental BTree, not only reduce the number of the nodes needed to be updated but also save the time spent on reconstruction index.Tests show BUS has greatly enhanced XML update performance. BUS maintains the integrity of the internal structure of the database so it is independent of specific RDBMS and has good portability. In addition, for ordinary users who are unfamiliar with XUpdate language this system provides GUI and fast menu to automatically generate XUpdate statement and enhances ease of use of the system.Tests verify XUpdate2SQL prototype system maintains efficient query performance, while improving the XML update performance, system’s overall performance is improved. Versatility, efficiency, portability and ease of use constitute the biggest characteristics and innovation of this paper.Finally, we give a conclusion of the advantages as well as drawbacks of XUpdate2SQL prototype system, which will guide our research work in the future.

Table of contents

Summary 7-9 Abstract 9-14 Chapter 1 Introduction 14-21 1.1 XML Introduction 14-15 < br /> 1.2 XML documents stored in the database 15-17 1.2.1 XML object-oriented database storage method 15 1.2.2 XML native database storage method 15-16 1.2.3 XML in a relational database storage methods 16-17 1.3 research status and problems the main research work 17-18 1.4 article organizational structure 18-20 1.5 article 20-21 Chapter II update XML query language and region coding mode 21-35 2.1 XML query and update 21-24 2.1.1 XML query languages ??: XPath and XQuery 21-23 2.1.2 XML update language : XUpdate language 23-24 2.2 region coding introduces 24-26 2.3 ladder connection 26-31 2.3 .1 pruning (pruning) 26-29 2.3.2 partition (partitioning) 29 2.3.3 jump (skipping) 29-30 <br / > 2.3.4 ladder connection (Staircase Join) 30-31 2.4 region coding mode XML update operations and inadequate 31-33 2.5 XML storage 33-34 2.6 Summary 34-35 Chapter XUpdate to SQL compiler design 35-46 3.1 XUpdate expression 35-36 3.2 cycle elimination method 36-37 3.3 translation rules 37-44 3.3.1 constants : e = C translation rules 38 3.3.2 sequence : (e, e) the translation rules 38 3.3.3 variable : $ v translation rules 38-39 3.3.4 let expressions : let $ v = el return e2 translation rules 39 3.3.5 path expressions : e / a :: translation rules of n 39 <br / > 3.3.6 for expression : for $ v in el return e2 translation rules 39-40 3.3.7 insert the expression : do insert el (((as (first | last))? into) | after | before e2 translation rules 40-42 3.3.8 delete expressions : do delete e translation rules 42-44 3.3.9 updated values expression : do replace (value of) e1 with e2 translation rules 44 3.3.10 update expression node name :? do rename e1 as e2 translation rules 44 <br / > 3.4 Summary 44-46 Chapter IV architecture nbsp XUpdate2SQL prototype system ; 46-50 4.1 XUpdate2SQL prototype system architecture 46-47 4.2 XUpdate2SQL subsystem 47-48 4.2.1 lexical parsing subsystem 47 4.2.2 syntax tree conversion subsystem 47-48 <br / > 4.2.3 SQL statement generation subsystem 48 4.2.4 XML document loads and reconstruction subsystem 48 4.2.5 update batch subsystem 48 4.3 Summary achieve 48-50 Chapter XUpdate2SQL prototype system achieve 50-67 5.1 syntax analysis subsystem 50 -54 5.1.1 Flex / Bison 50-51 5.1.2 lexical analysis to achieve 51-52 5.1.3 syntax analysis to achieve 52-54 5.2 syntax tree into realization subsystem 54-63 5.2.1 SQL language syntax tree generated 54-58 5.2. 2 converted from XUPdate SQL syntax syntax tree to tree 58-63 5.3 SQL statements generated realize subsystem 63-65 loading and remodeling 5.4 XML document subsystem to achieve loading 65-66 5.4.1 XML document subsystem 65 5.4.2 XML document reconstruction subsystem 65-66 5.5 Summary proposed 66-67 Chapter VI batch update strategy and implementation 67-79 6.1 XML-based update region coding mode problems 67-69 6.2 SQLite database describes 69-70 6.3 batch update strategy designed 70-74 6.3.1 lookup based on incremental BTree 71 6.3.2 BTree based on incremental insertion / deletion 71-73 6.3.3 modify the internal structure of the database 73-74 6.4 design and Implementation of incremental BTree 74-78 6.4.1 designed 74-75 6.4.2 design ideas 75-77 <br / > 6.4.3 implementation 77-78 6.5 Summary 78-79 Chapter VII application examples and performance testing 79-87 7.1 application methods XUpdate2SQL system 79-82 7.2 performance test 82-86 7.2.1 test environment and related data 82-83 7.2 insert and delete .2 XML node 83-84 queries 7.2.3 XML documents 84-85 7.2.4 XML document update performance comparison 85 -86 7.3 summary 86-87 Chapter VIII summary and Outlook 87-89 8.1 summarizes 87-88 8.2 Looking 88-89 References 89-93 Thanks 93-94 pursuing a master's degree to participate in the project and published during the academic catalog 94

Related dissertations

  1. Research on Data Integration Technology for E-commerce in the Web Environment
  2. Design and Implementation of the XProc Processor Based on.NET
  3. Design and Implementation of the XML Document Processing System Based on Xproc
  4. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  5. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  6. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  7. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  8. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  9. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  10. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  11. Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
    HeZhenLei ·Zhejiang University ·2013 ·Master's thesis
  12. Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
    ShenZhangBiao ·Zhejiang University ·2014 ·Master's thesis
  13. The Design and Implementation of Office Automation System for Sifang Chemical Co., Ltd.
    LiuZhongPing ·Northeastern University ·2012 ·Master's thesis
  14. Research on SPARQL Query Over Relational Databases Based on SQL Convertion
    ZhangLiLi ·Northeastern University ·2011 ·Master's thesis
  15. Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
    ZhaoLi ·Northeastern University ·2011 ·Master's thesis
  16. The Design and Implementation of WebDAV Service in XML Database
  17. Research of Heterogeneous Database Integration Based on Web Service and XML
    XiaMinNa ·Hunan University ·2012 ·Master's thesis
  18. Research on Encoding and Query Process Technology for Continuous Uncertain
  19. Research on XML Data Cube Based on Tree Structure
  20. XQuery Query Processor Design and Implementation