ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf

上传人:brainfellow396 文档编号:1256997 上传时间:2019-09-02 格式:PDF 页数:114 大小:2MB
下载 相关 举报
ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf_第1页
第1页 / 共114页
ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf_第2页
第2页 / 共114页
ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf_第3页
第3页 / 共114页
ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf_第4页
第4页 / 共114页
ISO IEC 19509-2014 Information technology - Object Management Group XML Metadata Interchange (XMI)《信息技术 对象管理组XML元数据交换(XMI)》.pdf_第5页
第5页 / 共114页
点击查看更多>>
资源描述

1、 Reference number ISO/IEC 19509:2014(E) ISO/IEC 2014INTERNATIONAL STANDARD ISO/IEC 19509 First edition 2014-04-15 Information technology Object Management Group XML Metadata Interchange (XMI) ISO/IEC 19509:2014(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2014 All rights reserved. Unless otherwise specif

2、ied, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISO

3、s member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2014 All rights reserved ISO/IEC 19509:2014(E) ISO/IEC 2014 - All rights rese

4、rved iii Table of Contents 1 Scope . 1 2 Conformance 1 2.1 General 1 2.2 Required Compliance .12.2.1 XMI Schema Compliance . 12.2.2 XMI Document Compliance 12.2.3 Software Compliance . 2 2.3 Optional Compliance Points .22.3.1 XMI Extension and Differences Compliance 2 3 Normative References 2 4 Term

5、s and Definitions . 3 5 Symbols 3 6 Additional Information . 3 6.1 Relationship to existing standards for MOF and XMI .3 6.2 Acknowledgments 4 7 XMI Document and Schema Design Principles 5 7.1 Purpose .5 7.2 Use of XML Schemas .57.2.1 XML Validation of XMI documents . 67.2.2 Requirements for XMI Sch

6、emas . 6 7.3 Basic Principles 67.3.1 Required XML Declarations 67.3.2 Model Class Representation 77.3.3 Model Extension Mechanism 7 7.4 XMI Schema and Document Structure 7 7.5 XMI Model .87.5.1 XML Schema for the XMI Model . 87.5.2 XMI Model classes . 87.5.3 XMI . 107.5.4 Extension 117.5.5 Documenta

7、tion . 117.5.6 Add, Replace, and Delete . 12 7.6 XMI Attributes 137.6.1 Element Identification Attributes . 137.6.2 Linking Attributes 147.6.3 Type Attribute . 15 7.7 XMI Types .16 7.8 Model Representation .167.8.1 Namespace Qualified XML Element Names 16ISO/IEC 19509:2014(E) iv ISO/IEC 2014 - All r

8、ights reserved7.8.2 Multiplicities 177.8.3 Class Representation . 177.8.4 DataType-typed Property Representation 187.8.5 Class-typed Property Representation . 197.8.6 Composite Representation . 197.8.7 Datatype representation . 207.8.8 Inheritance representation 217.8.9 Association Representation 22

9、7.8.10 Derived Information 22 7.9 Transmitting Incomplete Metadata .227.9.1 Interchange of model fragments . 227.9.2 XMI encoding 227.9.3 Example 22 7.10 Linking .237.10.1 Design principles 237.10.2 Linking 237.10.3 Example for UML 25 7.11 Tailoring Schema Production .277.11.1 XMI Tag Values 277.11.

10、2 Tag Value Constraints 287.11.3 XML element vs XML attribute 297.11.4 Summary of XMI Tag Scope and Affect . 307.11.5 Effects on Document Production 317.11.6 Example: Customize the XML Schema for a GIS Model 32 7.12 Transmitting Metadata Differences 377.12.1 Motivation . 377.12.2 Definitions . 387.1

11、2.3 Differences 387.12.4 XMI encoding 397.12.5 Example of Differences . 39 7.13 Document Exchange with Multiple Tools 407.13.1 Definitions. 417.13.2 Procedures . 417.13.3 Example 42 7.14 General Datatype Mechanism .43 7.15 Import Reconciliation .43 8 XML Schema Production 45 8.1 Purpose 458.1.1 Nota

12、tion for EBNF . 45 8.2 XMI Version 2 Schemas .458.2.1 EBNF 458.2.2 Fixed Schema Declarations 53 9 XML Document Production .55 9.1 Purpose 55 9.2 General .55 9.3 Serialization Model .55 9.4 XMI Representation of the Core Packages 56 ISO/IEC 19509:2014(E) ISO/IEC 2014 - All rights reserved v9.4.1 EMOF

13、 Package 569.4.2 CMOF Package 58 9.5 EBNF Rules Representation 599.5.1 Overall Document Structure . 609.5.2 Object Structure 619.5.3 Extension 64 10 XML Schema Infoset Model . 65 10.1 General 65 10.2 XML Schema Structures 6510.2.1 XSDAnnotation 7310.2.2 XSDAttributeDeclaration 7410.2.3 XSDAttributeG

14、roupDefinition . 7410.2.4 XSDAttributeUse . 7510.2.5 XSDComplexTypeContent 7510.2.6 XSDComplexTypeDefinition 7510.2.7 XSDComponent . 7710.2.8 XSDFeature . 7710.2.9 XSDIdentityConstraintDefinition 7810.2.10 XSDModelGroup . 7810.2.11 XSDNamedComponent . 7910.2.12 XSDSchema 7910.2.13 XSDScope . 8110.2.

15、14 XSDSimpleTypeDefinition . 8110.2.15 XSDTerm . 8410.2.16 XSDTypeDefinition 8410.2.17 XSDWildcard . 8510.2.18 XSDXPathDefinition 86 10.3 XML Schema Datatypes 8610.3.1 XSDBoundedFacet 8910.3.2 XSDCardinalityFacet . 8910.3.3 XSDConstrainingFacet 8910.3.4 XSDEnumerationFacet 8910.3.5 XSDFixedFacet . 8

16、910.3.6 XSDFundamentalFacet 8910.3.7 XSDFacet 8910.3.8 XSDFractionDigitsFacet 9010.3.9 XSDLengthFacet . 9010.3.10 XSDMaxExclusiveFacet . 9010.3.11 XSDMaxFacet . 9010.3.12 XSDMaxInclusiveFacet . 9110.3.13 XSDMaxLengthFacet 9110.3.14 XSDMinFacet 9110.3.15 XSDMinExclusiveFacet . 9110.3.16 XSDMinInclusi

17、veFacet 9110.3.17 XSDMinLengthFacet . 9110.3.18 XSDNumericFacet . 9110.3.19 XSDOrderedFacet . 9210.3.20 XSDPatternFacet . 9210.3.21 XSDRepeatableFacet 92ISO/IEC 19509:2014(E) vi ISO/IEC 2014 - All rights reserved10.3.22 XSDTotalDigitsFacet . 9210.3.23 XSDWhiteSpaceFacet . 92 10.4 Example .93 Annex A

18、 - Bibliography.99 Annex B - Legal Information.101 Annex C - Acknowledgments .105 ISO/IEC 19509:2014(E) ISO/IEC 2014 - All rights reserved vii Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for wor

19、ldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate

20、in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are dr

21、afted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an Int

22、ernational Standard requires approval by at least 75% of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.

23、ISO/IEC 19509 was prepared by the Object Management Group (OMG) and was adopted, under the PAS procedure, by Joint Technical Committee ISO/IEC JTC 1, Information technology, in parallel with its approval by national bodies of ISO and IEC. ISO/IEC 19509 is related to: ISO/IEC 19505-2:2011, Informatio

24、n technology - Object Management Group - Unified Modeling Language (OMG UML) - Part 2: Superstructure ISO/IEC 19508: 2014, Information technology - Object Management Group - Meta Object Facility (MOF) Core ISO/IEC 19509, under the general title Information technology - Open distributed processing -

25、MOF 2 XMI Mapping specification (XMI), apart from this introductory material is identical with that for the OMG specification for MOF 2 XMI Mapping, version 2.4.2.ISO/IEC 19509:2014(E) viii ISO/IEC 2014 - All rights reserved Introduction The main purpose of XMI is to enable easy interchange of metad

26、ata between application development lifecycle tools (such as modeling tools based on the Unified Modeling Language (UML), ISO/IEC 19505, and metadata repositories/ frameworks based on the Meta Object Facility (MOF), ISO/IEC 19508) in distributed heterogeneous environments. XMI integrates three key i

27、ndustry standards: XML - eXtensible Markup Language, a W3C standard UML - Unified Modeling Language (ISO/IEC 19505) MOF - Meta Object Facility (ISO/IEC 19508) This International Standard does not deprecate or replace ISO/IEC 19503:2005, Information technology - XML Metadata Interchange (XMI). The sp

28、ecification provided by this International Standard is identical to the OMG specification XMI 2.4.2 that is aligned with MOF 2.4.1 (ISO/IEC 19508) and UML 2.4.1 (ISO/IEC 19505). It is not backward compatible with XMI 1.4, as specified in ISO/IEC 19503:2005, which is aligned with MOF 1.4, as specifie

29、d in ISO/IEC 19502:2005, and UML 1.4.2, as specified in ISO/IEC 19501:2005. INTERNATIONAL STANDARD ISO/IEC 19509:2014(E) ISO/IEC 2014 - All rights reserved 1 Information technology - Object Management Group XML Metadata Interchange (XMI) 1S c o p e This International Standard supports the Meta Objec

30、t Facility (MOF) Core defined in ISO/IEC 19508. MOF is the foundation technology for describing metamodels. It covers a wide range of domains, and is based on a constrained subset of UML. XMI is widely used XML interchange format. It defines the following aspects involved in describing objects in XM

31、L: The representation of objects in terms of XML elements and attributes. The standard mechanisms to link objects within the same file or across files. The validation of XMI documents using XML Schemas. Object identity, which allows objects to be referenced from other objects in terms of IDs and UUI

32、Ds. XMI describes solutions to the above issues by specifying EBNF production rules to create XML documents and Schemas that share objects consistently. 2 Conformance 2.1 General This sub clause describes the required and optional points of compliance with the XMI specification. The terms “XMI Docum

33、ent” and “XMI Schema” are defined in Clause 4. 2.2 Required Compliance 2.2.1 XMI Schema Compliance XMI Schemas must be equivalent to those generated by the XMI Schema production rules specified in this document. Equivalence means that XMI documents that are valid under a schema produced by the XMI S

34、chema production rules would be valid in a conforming XMI Schema and that those XMI documents that are not valid under a schema produced by the XMI Schema production rules are not valid in a conforming XMI Schema. 2.2.2 XMI Document Compliance XMI Documents are required to conform to the following p

35、oints:ISO/IEC 19509:2014(E) 2 ISO/IEC 2014 - All rights reserved The XMI document must be “valid” and “well formed” as defined by the XML recommendation, whether used with or without the documents corresponding XMI Schema(s). Although it is optional not to transmit and/or validate a document with it

36、s XMI Schema(s), the document must still conform as if the check had been made. The XMI document must be equivalent to those generated by the XMI Document production rules specified in this document. Equivalence for two documents requires a one to one correspondence between the elements in each docu

37、ment, each correspondence identical in terms of element name, element attributes (name and value), and contained elements. Elements declared within the XMI documentation and extension elements are excepted. 2.2.3 Software Compliance Software is XMI schema compliant when it produces XML schemas that

38、are XMI schema compliant. Software is XMI document compliant when it produces or consumes XML documents that are XMI document compliant. 2.3 Optional Compliance Points 2.3.1 XMI Extension and Differences Compliance XMI Documents optionally conform to the following points: The guidelines for using th

39、e extension elements suggested in “XMI Model” on page 8 are found there and in “Tailoring Schema Production” on page 27. Tools should place their extended information within elements that are not in the XMI namespace or within elements that have the XMI namespace and a tag name of “Extension.” They

40、should also declare the nature of the extension using the standard XMI elements where applicable, and preserve the extensions of other tools that fall within the XMI namespace. Processing of XMI differencing elements (in sub clause 7.11.5, Effects on Document Production) is an optional compliance po

41、int. 3 Normative References The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. MOF “ISO/IEC 19508:20

42、14 Information technology - Object Management Group - Meta Object Facility Core.” (OMG Specification Meta Object Facility (MOF) Core Specification, Version 2.4.2 - http:/www.omg.org/spec/MOF/ 2.4.2) UMLInfra “ISO/IEC 19505-1:2012 Information technology - Object Management Group - Unified Modeling La

43、nguage (OMF UML) - Part 1: Infrastructure.” (OMG Specification Unified Modeling Language (OMG UML) Version 2.4.1 - Part 1: Infrastructure - http:/www.omg.org/spec/UML/2.4.1/Infrastructure) UMLSuper “ISO/IEC 19505-2:2012 Information technology - Object Management Group - Unified Modeling Language (OM

44、F UML) - Part 2: Superstructure.” (OMG Specification Unified Modeling Language (OMG UML) Version 2.4.1 - Part 2: Superstructure - http:/www.omg.org/spec/UML/2.4.1/Superstructure) XML “Extensible Markup Language (XML) 1.0 (Fifth Edition) W3C Recommendation 26 November 2008 http:/www.w3.org/TR/2008/RE

45、C-xml-20081126/ ISO/IEC 19509:2014(E) ISO/IEC 2014 - All rights reserved 3 XMLSchema “XML Schema Part 1: Structures Second Edition” W3C Recommendation 28 October 2004 http:/www.w3.org/TR/2004/REC-xmlschema-1-20041028/ XMLSchema2 “XML Schema Part 2: Datatypes Second Edition” W3C Recommendation 28 Oct

46、ober 2004 http:/www.w3.org/TR/2004/REC-xmlschema-2-20041028/ XLink “XML Linking Language (XLink) Version 1.1” W3C Recommendation 26 May2010 http:/www.w3.org/TR/2010/REC-xlink11-20100506/ XPointerFramework “XPointer Framework” W3C Recommendation 25 March 2003 http:/www.w3.org/TR/2003/REC-xptr-framewo

47、rk-20030325/ XPointerElement “XPointer element() Scheme” W3C Recommendation 25 March 2003 http:/www.w3.org/TR/2003/REC-xptr-element-20030325/ XPointerXmls “XPointer xmlns() Scheme” W3C Recommendation 25 March 2003 http:/www.w3.org/TR/2003/REC-xptr-xmlns-20030325/ NAMESP “Namespaces in XML 1.0 (Third

48、 Edition)” W3C Recommendation 8 December 2009 http:/www.w3.org/TR/2009/REC-xml-names-20091208/ INFOSET “XML Information Set (Second Edition)” W3C Recommendation 4 February 2004 http:/www.w3.org/TR/2004/REC-xml-infoset-20040204/ 4 Terms and Definitions The following are the only terms defined in this

49、 International Standard. There are no other terms used in this standard with meanings that cannot be found in other standards. XMIDocument A document produced by the XMI production rules defined in this International Standard. XMISchema A schema produced by the XMI production rules defined in this International Standard. 5 Symbols There are

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1