节点文献

XML模式到概念模型的转换方法与工具研究

Method and Tool for Transforming XML Schema to Conceptual Model

【作者】 王行哲

【导师】 刘洪星;

【作者基本信息】 武汉理工大学 , 计算机应用技术, 2008, 硕士

【摘要】 XML(eXtensible Markup Language)是一种进行数据表示和交换的通用格式,它已在Internet上和企业内部得到了广泛应用。XML模式是XML应用的基础,为了描述XML文档的语法和结构,当前普遍采用W3C XML模式定义语言。然而,这样的XML模式表示的是文档的逻辑结构,其格式复杂、难以表示语义,因此不便于人们的理解和交流。图形化的概念模型是便于理解和交流的有效表达方式,所以,将逻辑层的XML模式转换成概念层的图形化模型,这是一个值得深入研究的课题。本文主要研究从XML逻辑模式到XML概念模型的转换方法以及相关的转换工具。XML逻辑模式采用XMLSchema,而概念模型则采用了一种新型的XML概念模型—XUML。论文介绍并分析了XUML的主要特点;在此基础上,对XUML进行了扩展,扩展是通过定义Profile实现的。Profile针对XML Schema主要特性,定义了相关的构造型、标记值和约束,强化了语义。为了进行两种模式(型)之间的转换,映射规则是基础。论文从元素、属性、数据类型、约束等方面,定义了XMLSchema到扩展XUML模型的映射规则。在此基础上,论文提出了一个模型转换算法XSD2XUML,并分析了该算法的时间复杂度。为了让XSD2XUML实用化,需要有工具的支持。本文分析了与工具实现相关的一系列关键技术问题,提出了实现该工具的完整技术方案。该方案以PowerDesigner为基础,采用其中的XML Model作为XML编辑器;采用XMI作为XUML的内部表示格式;采用XSD Infoset作为XMLSchema处理的接口;采用Eclipse作为工具集成平台。通过扩展PowerDesigner中的类图模型,初步实现了XUML编辑器。本文得到了湖北省自然科学基金项目(编号:2004ABA040)的资助。

【Abstract】 XML(eXtensible Markup Language)is a universal format to represent and exchange data.It is widely used on Internet and in enterprise.XML schema is the base of XML application.W3C XML Schema Definition Language is all-pervading used to describe the syntax and structure of XML document.XML schema can denote the logistic structure,but it is diffcult to denote the semantics,and it’s format is complicated too.The reasons above result in the inconvenience for people to understanding and communicate.While the graphical conceptual model is an effective way of expression for understanding and communication.So it is a deserving study to convert the XML schema of logical layer into graphical model of conceptual layer.This thesis researches the transformation from XML logical model to XML conceptual model,and some tools that concerned.XML logical model adopts XML Schema while XML conceptual model adopts XUML,which is a new XML conceptual model.The thesis introduces and analyses the characteristics of XUML, and XUML model is extended based on these works.Mapping rules is the foundation of the transformation between two models.This thesis defines some mapping rules from XML Schema to extended XUML based on the aspects of element,attribute,data type and restriction.And then a conversion algorithm XSD2XUML is bring forward based on the mapping rules.The thesis also analysed the Time Complexity of algorithm.In order to make XSD2XUML more practical,some tools are needed.The thesis analyses a series of key technological problems about the implement used by tools.A blue print is put forward too.This blue print is based on PowerDesigner,we uses it’s XML Model as XML editor;XMI is used as the inner format of XUML.The dispose interface of XML Schema is XSD Infoset;And Eclipse is used as the integration platform.The thesis implements a simple XUML editor by extending the Class Graph model of PowerDesigner. This thesis is supported by the Natural Science Foundation of Hubei Province of China(NO.2004ABA040).

【关键词】 XMLXML Schema模型转换XUML算法
【Key words】 XMLXML SchemaModel TransformationXUMLAlgorithm
  • 【分类号】TP312.2
  • 【被引频次】2
  • 【下载频次】178
节点文献中: