1、INCITS/ISO/IEC 19503:20052009 (ISO/IEC 19503:2005, IDT) Information technology XML Metadata Interchange (XMI)INCITS/ISO/IEC 19503:20052009(ISO/IEC 19503:2005, IDT)INCITS/ISO/IEC 19503:20052009 ii ITIC 2009 All rights reserved PDF disclaimer This PDF file may contain embedded typefaces. In accordance
2、 with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensi
3、ng policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing.
4、Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. Adopted by INCITS (InterNational Committee for Information Technology Standards)
5、 as an American National Standard. Date of ANSI Approval: 3/23/2009 Published by American National Standards Institute, 25 West 43rd Street, New York, New York 10036 Copyright 2009 by Information Technology Industry Council (ITI). All rights reserved. These materials are subject to copyright claims
6、of International Standardization Organization (ISO), International Electrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council (ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic re
7、trieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of America iiiContentsForeword .viiiIntroduction . ix1 Scope 12 Normative references 12.1 Identical
8、 Recommendations | International Standards . 12.2 International Standards 13 Abbreviations .24 XMI Schema Design Principles .34.1 Purpose 34.2 Use of XML Schemas . 34.2.1 XML Validation of XMI documents 44.2.2 Requirements for XMI Schemas . 44.3 Basic Principles 44.3.1 Required XML Declarations 44.3
9、.2 Metamodel Class Representation . 54.3.3 Metamodel Extension Mechanism 54.4 XMI Schema and Document Structure . 54.5 XMI Model 64.5.1 XML Schema for the XMI Model . 64.5.2 XMI Model Classes 64.5.3 XMI 84.5.4 Extension 94.5.5 Documentation. 104.5.6 Add, Replace, and Delete . 104.6 XMI Attributes .
10、124.6.1 Element Identification Attributes 124.6.2 Linking Attributes. 134.6.3 Version Attribute 144.6.4 Type Attribute 144.7 XMI Type 144.8 Metamodel Class Specification 154.8.1 Namespace Qualified XML Element Names 154.8.2 Metamodel Multiplicities 154.8.3 Class Specification 164.8.4 Attribute Speci
11、fication . 164.8.5 Reference Specification 184.8.6 Containment Specification 184.8.7 Inheritance Specification . 184.8.8 Derived Information . 184.9 Transmitting Incomplete Metadata . 184.9.1 Interchange of Model Fragments 194.9.2 XMI Encoding. 194.9.3 Example 19 ITIC 2009 All rights reservedINCITS/
12、ISO/IEC 19503:20052009iv 4.10 Linking 194.10.1 Design Principles 194.10.2 Linking . 204.10.3 Example from UML 224.11 Tailoring Schema Production . 234.11.1 XMI Tag Values. 234.11.2 Tag Value Constraints . 244.11.3 Scope 254.11.4 XML element vs XML attribute 254.11.5 UML profile for XML and XMI 254.1
13、1.6 Effects on Document Production . 264.11.7 Summary of XMI Tag Scope and Affect 274.12 Transmitting Metadata Differences 284.12.1 Definitions . 294.12.2 Differences 294.12.3 XMI Encoding 294.12.4 Example 304.13 Document Exchange with Multiple Tools . 314.13.1 Definitions . 314.13.2 Procedures 324.
14、13.3 Example 324.14 General Datatype Mechanism 335 XML Schema Production355.1 Purpose 355.2 XMI Version 2 Schemas. 355.2.1 EBNF . 355.2.2 Fixed Schema Declarations 435.2.3 Schema Production Rules for Non-Primitive Data 486 XML Document Production 496.1 Purpose . 496.2 Introduction . 496.3 EBNF Rules
15、 Representation 496.3.1 Overall Document Structure 506.3.2 Overall Content Structure 516.3.3 Object Structure 526.3.4 References 556.3.5 Object Contents 576.3.6 Packages 596.3.7 Attributes . 596.3.8 Other Types of Links . 606.4 Additional Examples . 606.4.1 Inheritance . 606.4.2 Nested Packages . 61
16、6.4.3 Derived Types and References . 626.5 Document Production Rules for Non-Primitive Data . 636.5.1 Structure Type . 636.5.2 Enumeration Type. 636.5.3 Alias Type 63 ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009v6.5.4 Collection Type . 637 Production of MOF from XML 657.1 Introduction
17、. 657.2 DTD to MOF. 657.3 XML to MOF . 667.4 XML Schema to MOF . 678 XML Schema Model 718.1 Introduction . 718.2 XML Schema Structures 718.2.1 XSDSchema 838.2.2 XSDAttribute . 838.2.3 XSDElementRef 838.2.4 XSDAttributeGroup . 838.2.5 XSDAttributeGroupRef 838.2.6 XSDType . 838.2.7 XSDBuiltInType . 84
18、8.2.8 XSDComplexType . 848.2.9 XSDComplexTypeContent 848.2.10 XSDSchemaContent . 848.2.11 XSDElement 848.2.12 XSDSimpleBase 858.2.13 XSDPattern . 858.2.14 XSDEnumeration 858.2.15 XSDInclude . 858.2.16 XSDImport . 858.2.17 XSDGroup . 858.2.18 XSDGroupKind 868.2.19 XSDGroupScope . 868.2.20 XSDGroupCon
19、tent 868.2.21 XSDGroupRef . 868.2.22 XSDKey 868.2.23 XSDKeyRef. 868.2.24 XSDUnique . 868.2.25 XSDUniqueContent 878.2.26 XSDSelector 878.2.27 XSDField . 878.2.28 XSDObject 878.2.29 XSDAnnotatedElement . 878.2.30 XSDDocumentation 878.2.31 XSDAppInfo 878.2.32 XSDAnnotation . 878.2.33 XSDSimpleContent .
20、 888.2.34 XSDComplexContent 888.2.35 XSDSimpleComplex 888.2.36 XSDSimpleTypeContent . 888.2.37 XSDSimpleRestrict. 888.2.38 XSDSimpleList 888.2.39 XSDSimpleUnion 88 ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009vi 8.2.40 XSDSimpleType 898.2.41 XSDFacet 898.2.42 XSDLength 898.2.43 XSDMinLe
21、ngth 898.2.44 XSDMaxLength . 898.2.45 XSDMinInclusive . 898.2.46 XSDMaxInclusive 898.2.47 XSDMinExclusive 908.2.48 XSDMaxExclusive . 908.2.49 XSDTotalDigits 908.2.50 XSDFractionDigits . 908.2.51 XSDWhiteSpace . 908.2.52 XSDAny. 908.2.53 XSDAnyAttribute . 908.2.54 XSDAttributeRef 918.2.55 XSDNamedEle
22、ment 918.2.56 XSDOccurs . 918.2.57 XSDTopLevelAttrbute . 918.2.58 XSDTopLevelElement . 918.3 XML Schema Simple Datatypes. 918.3.1 XSDDate . 958.3.2 XSDDecimal 958.3.3 XSDDecimalType 958.3.4 XSDDouble . 968.3.5 XSDCentury 968.3.6 XSDBinary. 968.3.7 XSDBinaryType . 968.3.8 XSDBooleanType 968.3.9 XSDBo
23、olean 968.3.10 XSDByte 968.3.11 XSDDoubleType . 978.3.12 XSDFloat 978.3.13 XSDFloatType 978.3.14 XSDInt .978.3.15 XSDInteger 978.3.16 XSDCDATA . 978.3.17 XSDID . 978.3.18 XSDIDREF 978.3.19 XSDIDREFS 988.3.20 XSDListType . 988.3.21 XSDList . 988.3.22 XSDLong . 988.3.23 XSDMonth . 988.3.24 XSDName . 9
24、88.3.25 XSDNCName 988.3.26 XSDNegativeInteger 988.3.27 XSDNMTOKEN. 998.3.28 XSDNonNegativeInteger 998.3.29 XSDNonPositiveInteger 998.3.30 XSDPositiveInteger . 998.3.31 XSDQName . 99 ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009vii8.3.32 XSDQNameType 998.3.33 XSDRecurringDate 998.3.34 XS
25、DRecurringDay . 1008.3.35 XSDRecurringDuration 1008.3.36 XSDRecurringDurationType 1008.3.37 XSDShort 1008.3.38 XSDToken . 1008.3.39 XSDString . 1008.3.40 XSDStringType . 1008.3.41 XSDTime . 1018.3.42 XSDTimeDuration . 1018.3.43 XSDTimeDurationType . 1018.3.44 XSDTimeInstant 1018.3.45 XSDTimePeriod 1
26、018.3.46 XSDUnionType . 1018.3.47 XSDUnsignedByte 1018.3.48 XSDUnsignedInt 1028.3.49 XSDUnsignedLong 1028.3.50 XSDUnsignedShort . 1028.3.51 XSDURIReference 1028.3.52 XSDURIReferenceType 1028.3.53 XSDValueConstraint . 1028.3.54 XSDYear . 1028.3.55 XSDDecimalRange . 1038.3.56 XSDIntegerRange . 1038.3.
27、57 XSDPatterned . 103Annex A (normative) Conformance Issues 105Annex B (normative) References 107Annex C (informative) Legal Information .109Index.113 ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009viii Foreword ISO (the International Organization for Standardization) and IEC (the Interna
28、tional Electrotechnical Commission) form the specialized system for worldwide 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 fiel
29、ds of technical activity. ISO and IEC technical committees collaborate 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 j
30、oint technical committee, ISO/IEC JTC 1. International Standards are drafted 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 commit
31、tee are circulated to national bodies for voting. Publication as an International 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
32、 not be held responsible for identifying any or all such patent rights. ISO/IEC 19503 was prepared by the Object Mangement 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
33、 and IEC. ISO/IEC 19503 is related to ISO/IEC 19501, Information technology Open Distributed Processing Unified Modeling Language (UML) Version 1.4.2 ISO/IEC 19502, Information technology Meta Object Facility (MOF) ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009ixIntroductionThe main purp
34、ose of this International Standard (XML) is to enable easy interchange of metadata between applicationdevelopment lifecycle tools (such as modeling tools based on the Unified Modeling Language (UML), ISO/IEC 19501, and metadata repositories/frameworks based on the Meta Object Facility (MOF), ISO/IEC
35、 19502) in distributed heterogeneous environments. This International Standard integrates three key industry standards: XML - eXtensible Markup Language, a W3C standard. UML - Unified Modeling Language, an OMG modeling specification, which is now ISO/IEC 19501. MOF - Meta Object Facility (ISO/IEC 19
36、502).The OMG adopted the XMI (version 1.0) in February 1999. It was developed as a response to a request for proposal, issued by the OMG Analysis and Design Task Force, for a model and metadata interchange facility. The purpose of the facility was to support the interchange of metadata (such as ODP
37、UML models). The most recent revision of XMI, 2.0, was submitted by the XMI Revision Task Force in October, 2002, and includes corrections and clarifications to the original specification, and changes to accommodate revisions to the 1.4 version of MOF.The rapid growth of distributed processing has l
38、ed to a need for a coordinating framework for this standardization and ITU-T Recommendations X.901-904 | ISO/IEC 10746, Open Distributed Processing Reference Model (RM-ODP) provides such a framework. It defines an architecture in which support of distribution, interoperability, and portability can b
39、e integrated. RM-ODP Part 2 (ISO/IEC 10746-2) defines the foundational concepts and modeling framework for describing distributed systems. RM-ODP Part 3 (ISO/IEC 10746-3) specifies a generic architecture of open distributed systems, expressed using the foundational concepts and framework defined in
40、Part 2. While not limited to this context, this International Standard is relevant to work on the standardization of OpenDistributed Processing (ODP). ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:20052009AMERICAN NATIONAL STANDARD INCITS/ISO/IEC 19503:200520091Information technology XML Metadat
41、a Interchange (XMI) 2 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. 2.1 Id
42、entical Recommendations | International Standards ITU-T Recommendation X.902 (1996) | ISO/IEC 10746-2:1996, Information technology Open Distributed Processing Reference Model: Foundations ITU-T Recommendation X.903 (1996) | ISO/IEC 10746-3:1996, Information technology Open Distributed Processing Ref
43、erence Model: Architecture 2.2 International Standards ISO/IEC 10646:2003, Information technology Universal Multiple-Octet Coded Character Set (UCS) ISO/IEC 19501, Information technology Open Distributed Processing Unified Modeling Language (UML) Version 1.4.2 ISO/IEC 19502, Information technology M
44、eta Object Facility (MOF) W3C XML 1.0 : http:/www.w3.org/TR/REC-xml February, 2004 W3C XSD 1.0 http:/www.w3.org/TR/xmlschema-0/, xmlschema-1, xmlschema-2 1 ScopeThis International Standard provides specifications for:a. A set of XML Schema Definitions (XSD) production rules for transforming MOF base
45、d metamodels into XML Schemas.b. A set of XML Document production rules for encoding and decoding MOF based metadata.c. Design principles for XMI based Schemas and XML documents. d. A set of production rules for importing XML DTDs to a MOF based metamodel.This International Standard enhances metadat
46、a management and metadata interoperability in distributed object environments in general and in distributed development environments in particular. While this International Standard addresses stream based metadata interoperability in the object analysis and design domain, XMI (in part because it is
47、MOF based) is equally applicable to metadata in many other domains. ITIC 2009 All rights reserved2 3 AbbreviationsDTD Document Type DefinitionMOF Meta Object FacilityUML Unified Modeling LanguageXMI XML Metadata InterchangeXSD XML Schema Definition ITIC 2009 All rights reservedINCITS/ISO/IEC 19503:2
48、005200934 XMI Schema Design Principles4.1 PurposeThis Clause contains a description of the XML Schemas that may be used with the XMI specification to allow some metamodel information to be verified through XML validation. The use of schemas in XMI is described first, followed by a brief description
49、of some basic principles, which includes a short description of each XML attribute and XML element defined by XMI. Those descriptions are followed by more complete descriptions that provide examples illustrating the motivation for the XMI schema design in the areas of metamodel class specification, transmitting incomplete metadata, linking, tailoring schema production, transmitting metadata differences, and exchanging d
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1