企业数据库的XML发布技术研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着Internet的发展,可扩展标记语言XML(eXtensible Markup Language)正逐渐成为互联网上数据发布和交换的标准。由于其强大的数据表达能力和嵌套的结构、自描述的特点,XML可以在互联网和数据库之间扮演更为重要的角色。然而,目前企业的大量数据仍存在于占主导地位的关系数据库中,如何在现有的数据库平台上以XML形式准确地表达关系数据,已成为亟待解决的关键问题。
     本文的研究以MDA(Model Driven Architecture,模型驱动的体系架构)作为指导思想,分别从模式层和实例层的角度探讨了关系数据库的XML发布技术。本文第一部分从XML和关系数据库的技术特点入手,分析了用XML发布企业关系数据库的必要性和可行性。
     接着,是本文的主要工作之一:分析了XML Schema和关系模式的语义约束特征,总结了关系模式到XML文档模式的一般转换规则;在此基础上,提出了构建XML视图模式结构图的两种典型策略。
     本文的第三部分比较了几个主流数据库厂商提供的XML动态发布技术;并选择以Oracle的产品作为实验工具,详细剖析了Oracle发布函数的使用特点。
     最后,给出企业数据库的XML发布模型,并根据该模型提出了可自动生成XML视图的XViews-Generator工具。同时结合一个气象数据库的XML发布系统的应用案例说明了上述技术:即运用XViews-Generator工具的实现原理,根据源气象关系数据库的相关信息,获得可选的XML视图模式文档,再结合动态的查询得到XML实例文档,从而实现气象关系数据库的XML发布。
     本文以RDB作为底层数据载体,研究了通过在其上建立XML视图实现数据发布的方法。本文落点于XML视图模式文档结构的设计方案的研究,有机地将静态映射规则与动态查询技术结合起来实现了企业数据库的XML发布。
With the exponential growth of Internet, XML(eXtensible Markup Language) isbecoming a de-facto standard for data publishing and data exchange. Due to its highexpressiveness and nested structure, self-describing characteristic, XML can play amore important role than Relational Database does in connecting Database withInternet. While at the present time most business data are still stored in traditionalrelational database systems, how to transform data from existing relational databaseinto XML representation has become the pivotal problem to be resolved.
     Some discussions have been done about the technology of publishing XMLdocuments from RDB at the viewpoint of both schema and instance, guided by thepopular MDA principle. We analyze the necessity and feasibility of publishing XMLfrom RDB according to the features of XML and RDB in the first part of this thesis.
     The following is one of the main contributions in this thesis: Two strategies areproposed to design XML views schema structure by analyzing the semanticconstraints characteristics of both XML Schema and relational schema andsummarizing the general transformation rules from relational schema to XMLdocument schema.
     In the third part we compare several techniques of XML publishing provided bythe mainstream manufacturers of database. And we choose Oracle as the test-bed byanalyzing the characteristics of XML publishing functions provided by Oracledatabase.
     At last, a publishing model of enterprise database is brought forward.Correspondingly a tool named XViews-Generator which can automatically generateXML views schema is implemented. At the same time a case about the publishing ofweather database is introduced to illustrate the techniques mentioned above: Utilizingthe realization principle of XViews-Generator to get the candidate XML viewsschema according to the main information of weather database and on the basis ofthis dynamic query techniques are used to implement the XML publishing from weather database.
     The publishing technique is studied in which the RDB is taken as the bottomstoring medium and the upper XML views are set up in this thesis. To implement theXML publishing from RDB, the thesis establish two strategies of designing XMLviews schema structure combining the static mapping rules with the dynamic queries.
引文
[1] Overview of SGML Resources, Extensible Markup Language (XML), http://www.w3. org/XML/.1996.
    
    [2] Dongwon Lee, Wesley W. Chu, Constraints-preserving Transformation from XML Document Type Definition to Relational Schema.Proc.19th Int'l Conf. on Conceptual Modeling (ER) ,Salt Lake City,Utah,Oct.2000.
    
    [3] Dongwon Lee, Murali Mani, Wesley W. Chu, Schema Conversions Methods between XML and Relations Models, In Knowledge Transformation for the Semantic Web, IOS Press, Amsterdam,2003
    [4] Dongwon Lee, Murali Mani, Wesley W. Chu, NeT & CoT: Translating Relational Schemas to XML Schemas using Semantic Constraints, In 11th ACM Int'l Conf. on Information and Knowledge Management(CIKM),McLean ,VA ,USA ,November 2002.
    [5] Murali Mani, Dongwon Lee, Richard R. Muntz, Semantic Data Modeling using XML Schemas,Proc.20th Int'l Conf. on Conceptual Modeling (ER),Yokohama, Japan, November 2001.
    [6] Dongwon Lee, Murali Mani, Wesley W. Chu, Effective Schema Conversions between XML and Relational Models, In European Conf. on Artificial Intelligence(ECAI), Knowledge Transformation Workshop(ECAI-OT),Lyon, France, July 2002.
    [7] J.Shanmugasundaram, E.Shekita, R.Barr, et al. Efficiently Publishing Relational Data as XML Documents, VLDB Journal. An earlier version appeared in the VLDB 2000 conference.
    [8] J.Shanmugasundaram, J.Kiernan, E.Shekita,et al. Querying XML Views of Relational Data, In Proceedings of the VLDB Conference, Rome, Italy, September 2001.
    [9] Ronald Bourret. XML Schema Languages. http://www.informatik.tu-darmstadt.de/DVSl/staff/bourret/bourret.htm/.
    [10] Nunn M. An overview of SQL Server "Yukon" for the database developer. http://msdn. microsoft.com/Iibrary/default.asp?url=/library/en-us/dnsq190/html/sql_ovyukondev.asp, 2004-06-08.
    [11] ORACLE CORPORATION. Oracle XML SQL Utility. Oracle Corporation, 2001. http://otn. oracle.com/.
    [12] Andrew Eiseberg, Jim Melton. SQL/XML is Making Good Progress[J]. In: ACM SIGMOD Record, Vol. 31, No. 2, June 2002.
    [13] MALAIKA S. Meet the experts: Susan Malaika on XML capabilities in DB2. http://www7b.boulder.ibm.com/dmdd/library/techarticle/0212malaika/0212malaika.html,2004-06-08.
    [14] 许建军,庞引明,丁宝康等.ER模型向XML模式的自动转换[J].计算机工程,2003,29(11):57~59.
    [15] 高峰,鲁士文.XML Schema对关系型数据源的映射[J].微电子学与计算机,2004,21(2):15~17.
    [16] 潘顺,金远平,欧阳晔.结构化数据到XML数据的语义映射[J].东南大学学报(自然科学版),2002,32(3):331~334.
    [17] 丁峰,沈均毅,赵天海.从关系数据库到扩展置标语言文档的数据映射方法研究[J].西安交通大学学报,2002,36(10):1066~1069.
    [18] 周竞涛,张树生,孙宏伟等.关系模式到XML Schema的约束保留映射[J].西北工业大学学报,2003,21(3):372~376.
    [19] 孙宏伟.XML与RDB的多层次双向数据集成技术研究:[博士学位论文].西安:西北工业大学航空宇航制造工程专业,2003
    [20] OMG. MDA Guide Version 1.0.1 [EB/OL].http://www.omg.org/docs/omg/03-06-01.pdf,2003,6.
    [21] W3C. Extensible Markup Language(XML)1.0. http://www.w3.org/TR/1998/REC-xml-19980210.html,1998.
    [22] Michael Kay. XML databases. Software AG, March 2003.
    [23] D. C. Fallside, P. Walmsley. XML Schema Part 0: Primer Second Edition. W3C Recommendation. http://www.w3.org/TR/xmlschema-0/,2004.10.
    [24] H. S. Thompson, D. Beech, M. Maloney, et al. XML Schema Part 1: Structures Second Edition. W3C Recommendation. http://www.w3.org/TR/xmlschema-1/,2004.10.
    [25] P. V. Biron, K. Permanente, A. Malhotra. XML Schema Part 2: DataTypes Second Edition. W3C Recommendation. http://www.w3.org/TR xmlschema-2/,2004.10.
    [26] [美]Chelsea Valentine, LucindaDykes, EdTittel[著],毛选,魏海萍等[译].XML Schema数据库编程指南.北京:电子工业出版社,2002.5:111~123.
    [27] W3C. Extensible Stylesheet Language (XSL) Version 1.0. http://www.w3.org/TR/xsl,2001.
    [28] W3C. XML Path Language (XPath) Version 1.0. http://www.w3.org/TR/xpath,1999.
    [29] Scott Boag, Don Chamberlin, Mary F. Fernandez et al. XQuery 1.0: An XML Query Language [EB/OL] http://www.w3.org/TR/xquery,2005.11.3.
    [30] 李霞. XQuery查询语文及应用实例分析[EB/OL]http://www-128.ibm.com/developerworks/cn/xml/x-xqueryl,2004.7.
    [31] Eisenberg A, Melton J, Kulkarni K, et al. SQL: 2003 has been published[J]. SIGMOD Record, 2004, 33(1): 119~126.
    [32] Eisenberg A, Melton J. SQL/XML and the SQLX informal group of companies [J]. SIGMOD Record, 2001, 30(3): 105~108.
    [33] ISO/IEC 9075-14: 2003 Information technology-database languages-SQL-part 14: XML-related specifications (SQL/XML)[S].
    [34] V. Turau, Making legacy data accessible for XML applications,1999, Informatik Spektrum 22, Heft 1, 3~12,1999.
    [35] Fernandez M, Suciu D, Tan W. SilkRoute: Trading between Relations and XML [C].In: Proceedings of the www9, 723~746, Amsterdam, 2000.
    [36] Michael Carey, Shanmugasundaram J, et al. XPERANTO: Publishing object- relational data as XML [J] In: Proceedings ofWebDB, 105~110, May, 2000.
    [37] Altova, XMLSPY 2004 Enterprise Edition Online-help [EB/OL]. http://www.altova.com,2004.
    [38] Sybase, PowerDesigner Advanced User Documentation (Version 11.0), Document number: DC38628-01-1100-01. http://download.sybase.com/pdfdocs/pdd1100e/advanced.pdf,2004,11.
    [39] Alotova, Data Integration: Opportunities,challenges,and Altova MapForce [EB/OL]http://www.altova.com/documents/AOT/MapForceWeb-BasedWorkbook,2005
    [40] [美]H.Garcia Molina,J.D.Ullman,J.Widom[著],岳丽华等[译].数据库系统全书.北京:机械工业出版社,2003.8:241~265.
    [41] MCAT. MCAT-A Meta-Information Catalog. http://www.npaci.edu/DICE/SRB/mcat.html,2002.
    [42] 刘洪星,李蓉.XML表达关系模型中m:n联系的方法[J].交通与计算机,2006,3(24):102~105.
    [43] Baru, C. Xviews: XML views of relational schemas. In:Proceedings of DEXA Workshop. 1999, 700~705.
    [44] HongXing Liu, YanShengLu, Qing Yang. XML Conceptual Modeling with XUML. In: Proceeding of the 28th International Conference on Software Engineering (ICSE2006). Shanghai, 2006.
    [45] 刘洪星.基于XUML的XML模式设计方法:[博士学位论文].武汉:华中科技大学计算机学院,2006.
    [46] 许卓明,朱海霞,董逸生.主流RDBMS产品对SQL/XML标准的支持[J].河海大学学报(自然科学版),2005,33(1):111~114.
    [47] Oracle. Oracle Database 10g R1 XML DB Technical Whitepaper. http://otn.oracle.corn/tech/XML/XMLdb,2004.1.
    [48] [美]Mark Scardina, Ben Chang,Jinyu Wang[著],孙杨[译],Oracle Database 10g XML与 SQL开发指南.北京:清华大学出版社,2006.1:335~345.
    [49] Mark Drake. Oracle database 10g Release 2 XML DB Technical White Paper. http://otn.oracle.com/tech/XML/XMLdb,2005.5.
    [50] Tim Quinlan. 走进SQL/XML. http://www.oracle.com/technology/global/cn/pub/articles/quinlan-xml.html?rssid=rss_otn_articles,2006.12.
    [51] [美]Avrom Roy-Faderman,Peter Koletzke,Paul Dorsey[著],高猛,张云[译],Oracle JDeveloper 10g开发手册——构建健壮的J2EE应用程序.北京:清华大学出版社,2006.5:22~35.