1、PD ISO/TS 19157-2:2016 Geographic information Data quality Part 2: XML schema implementation BSI Standards Publication WB11885_BSI_StandardCovs_2013_AW.indd 1 15/05/2013 15:06PD ISO/TS 19157-2:2016 PUBLISHED DOCUMENT National foreword This Published Document is the UK implementation of ISO/TS 19157-
2、2:2016. The UK participation in its preparation was entrusted to Technical Committee IST/36, Geographic information. A list of organizations represented on this committee can be obtained on request to its secretary. This publication does not purport to include all the necessary provisions of a contr
3、act. Users are responsible for its correct application. The British Standards Institution 2016. Published by BSI Standards Limited 2016 ISBN 978 0 580 87056 9 ICS 35.240.70 Compliance with a British Standard cannot confer immunity from legal obligations. This Published Document was published under t
4、he authority of the Standards Policy and Strategy Committee on 31 December 2016. Amendments/corrigenda issued since publication Date Text affectedPD ISO/TS 19157-2:2016 ISO 2016 Geographic information Data quality Part 2: XML schema implementation Information geographique Qualite des donnees Partie
5、2: Implmentation de schmas XML TECHNICAL SPECIFICATION ISO/TS 19157-2 Reference number ISO/TS 19157-2:2016(E) First edition 2016-12-01PD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E)ii ISO 2016 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO 2016, Published in Switzerland All rights reserved. Unles
6、s otherwise specified, 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 ad
7、dress below or ISOs member body in the country of the requester. ISO copyright office Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22 749 09 47 copyrightiso.org www.iso.orgPD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E)Foreword iv Introduction v 1 Scope
8、. 1 2 Normative references 1 3 T erms and definitions . 1 4 Conformance . 2 4.1 General . 2 4.2 Metadata for data quality . 2 4.3 Data quality measures 2 5 Abbreviated terms 2 5.1 Abbreviated terms . 2 5.2 Namespaces . 2 6 XML schema and document requirements 3 6.1 General . 3 6.2 Core requirements
9、. 3 6.3 XML namespaces and requirements 4 Annex A (normative) Abstract test suite 8 Annex B (informative) XML resources related to data quality .11 Annex C (informative) How ISO 19115-2:2009 is included in this document 12 Annex D (informative) Implementation examples .14 Bibliography .20 ISO 2016 A
10、ll rights reserved iii Contents PagePD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Foreword ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through
11、 ISO technical committees. Each member body interested in a subject for which a technical committee has been established has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. ISO collaborate
12、s closely with the International Electrotechnical Commission (IEC) on all matters of electrotechnical standardization. The procedures used to develop this document and those intended for its further maintenance are described in the ISO/IEC Directives, Part 1. In particular the different approval cri
13、teria needed for the different types of ISO documents should be noted. This document was drafted in accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives). Attention is drawn to the possibility that some of the elements of this document may be the subject
14、of patent rights. ISO shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during the development of the document will be in the Introduction and/or on the ISO list of patent declarations received (see www.iso.org/patents). Any trade na
15、me used in this document is information given for the convenience of users and does not constitute an endorsement. For an explanation on the meaning of ISO specific terms and expressions related to conformit y assessment, as well as information about ISOs adherence to the World Trade Organization (W
16、TO) principles in the Technical Barriers to Trade (TBT) see the following URL: www.iso.org/iso/foreword.html. The committee responsible for this document is ISO/TC 211, Geographic information/Geomatics. A list of all parts in the ISO 19157 series can be found on the ISO website.iv ISO 2016 All right
17、s reservedPD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Introduction This document utilizes encoding rules from ISO 19118 and ISO/TS 19139, and the implementation approach from ISO/TS 19115-3 to define an XML schema implementation of ISO 19157:2013, and the data quality related concepts from ISO 1911
18、5-2. This schema can be used to validate conformance of XML instance documents with these conceptual models. ISO 2016 All rights reserved vPD ISO/TS 19157-2:2016PD ISO/TS 19157-2:2016Geographic information Data quality Part 2: XML schema implementation 1 Scope This document defines data quality enco
19、ding in XML. It is an XML schema implementation derived from ISO 19157:2013 and the data quality related concepts from ISO 19115-2. 2 Normative references The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. Fo
20、r dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ISO 19103:2015, Geographic information Conceptual schema language ISO 19105:2000, Geographic information Conformance and testing 3 T erms a nd
21、 definiti ons For the purposes of this document, the following terms and definitions apply. ISO and IEC maintain terminological databases for use in standardization at the following addresses: IEC Electropedia: available at http:/ /www.electropedia.org/ ISO Online browsing platform: available at htt
22、p:/ /www.iso.org/obp/ui/ 3.1 documentwell-formed data object SOURCE: W3C XML 3.2 schema documentXML document containing schema component definitions and declarations Note 1 to entry: The W3C XML Schema provides an XML interchange format for schema information. A single schema document provides descr
23、iptions of components associated with a single XML namespace, but several documents may describe components in the same schema, i.e. the same target namespace (3.3). SOURCE: ISO 19136:2007, 4.1.55 3.3 namespace collection of names, identified by a URI reference, which are used in XML documents (3.1)
24、 as element names and attribute names SOURCE: W3C XML TECHNICAL SPECIFICATION ISO/TS 19157-2:2016(E) ISO 2016 All rights reserved 1PD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) 3.4 package general purpose mechanism for organizing elements into groups EXAMPLE Identification information, metadata entit
25、y set information, constraint information. SOURCE: ISO 19103:2015, 4.27, modified Example has been added. 4 Conformance 4.1 General The framework, concepts, and methodology for testing, and the criteria to be achieved to claim conformance, are specified in ISO 19105. See also Annex A. 4.2 Metadata f
26、or data quality XML documents containing XML fragments with elements related to data quality and metaquality reports described in ISO 19157 or XML fragments related to data quality elements described in ISO 19115-2 shall pass the test modules defined in A.2. 4.3 Data quality measures XML documents c
27、ontaining XML fragments with elements related to data quality measures described in ISO 19157 shall pass the test modules defined in A.3. 5 Abbreviated terms 5.1 Abbreviated terms UML Unified Modeling Language URI Unique Resource Identifier URL Uniform Resource Locator XML eXtensible Markup Language
28、 XSD XML Schema Definition 5.2 Namespaces XML namespaces defined in this document have URIs that follow the pattern: http:/ /standards.iso. org/iso/19157/-2/xxx/N.M, where xxx is the namespace abbreviation, N is the major version number, and M is the minor version number. The namespace directories i
29、nclude descriptions of the content of the namespace, and links to the base specification it implements and to the normative XML schema location. The following conventions are used to abbreviate the namespaces used to group XML elements. Definition of namespaces specific to the implementation of ISO
30、19157 and their rationale are discussed in 6.3. Table 1 includes namespaces that are from schema defined in other specifications and are imported by this implementation. The short string in the left column of Table 1 is used as a prefix to associate an XML element with the namespace. The second colu
31、mn contains an English-language description of the namespace, and the string in the third column is the URI that identifies the namespace. The final column lists the standard from which this namespace is imported. Table 2 lists abbreviations and other information for namespaces used for UML packages
32、 defined in ISO 19157:2013 and ISO 19115-2:2009.2 ISO 2016 All rights reservedPD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Table 1 External namespace URIs and namespace abbreviation conventions used in this document Namespace abbreviation convention Namespace name Namespace URI Source gco Geographic
33、 Common http:/ /standards.iso.org/iso/19139/gco/1.0 ISO/TS 19115-3 gml Geography Markup Language http:/ / ISO 19136 xlink XML linking language http:/ /www.w3.org/1999/xlink XML Linking Language (XLink) Version 1.1 xs W3C XML Schema definition schema http:/ /www.w3.org/2001/XMLSchema W3C XML Schema D
34、efinition Language (XSD) 1.1 Part 1: Structures W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes T a b l e 2 N a m e s p a c e U R I s a n d n a m e s p a c e a b b r e v i a t i o n c o n v e n t i o n s d e f i n e d a n d u s e d i n t h i s d o c u m e n t f o r p a c k a g e s d e
35、 f i n e d i n I S O 1 9 1 5 7 Namespace abbreviation convention Namespace name Scope Namespace URI ISO UML Package mdq Metadata for Data Quality elements for data quality and metaquality reports http:/ /standards.iso.org/iso/19157 /- 2/mdq/1.0 ISO 19157 DQ_DataQuality and ISO 19115-2 QE_CoverageRes
36、ult dqm Data Quality Measures elements for data quality measures http:/ /standards.iso.org/iso/19157 /- 2/dqm/1.0 DQM_Measure dqc Data Quality Common abstract classes required for modular implementation http:/ /standards.iso.org/iso/19157 /- 2/dqc/1.0 Implementation Model 6 XML schema and document r
37、equirements 6.1 General This XML schema implementation of ISO 19157:2013 and the data quality concepts from ISO 19115-2:2009 follows the encoding rules stated in ISO 19118, ISO/TS 19139:2007, and the implementation approach from ISO/TS 19115-3:2016, Clause 8. 6.2 Core requirements The requirements c
38、lass described in Table 3 defines requirements that shall be met by any XML instance document based on this document. ISO 2016 All rights reserved 3PD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Table 3 Core requirements for data quality instance Requirements class http:/ /standards.iso.org/iso/19157
39、/-2/1.0/req/data-quality-core-instance Target Type XML instance document Name Core requirements for data quality instance Dependency http:/ /standards.iso.org/iso/19157 /-2/1.0/req/data-quality-core-encoding Requirement /req/data-quality-external-instance/property-type-content A property element ins
40、tance SHALL have exactly one of 1) inline content (by-value) that is a schema-valid XML class instance, or 2) an xlink:href attribute (by-reference value), or 3) a gco:nilReason attribute (nil value). Requirement /req/data-quality-external-instance/xml-well-formed An XML instance document SHALL be w
41、ell-formed and valid with respect to the schema de- fined in this document. 6.3 XML namespaces and requirements Table 4 defines the requirements classes for each namespace module.4 ISO 2016 All rights reservedPD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Table 4 Requirements classes for XML instance
42、documents for each namespace module Requirement class URI a Namespace b Dependencies a Requirements a /req/data-quality-instance /mdq/1.0 /req/data-quality- core-instance /req/common -classes-instance /req/data-quality-instance/scope Any instance of DQ _DataQuality SHALL have a scope property value
43、/req/data-quality-instance/report Any instance of DQ_DataQuality SHALL have a report property value /req/data-quality-instance/result Any concrete instance of DQ_Element SHALL have a result property value /req/data-quality-instance/relatedElement Any concrete instance of DQ_Metaquality SHALL have a
44、relatedElement property value /req/data-quality-instance/quantitative-value Any instance of DQ _QuantitativeResult SHALL have a value property value /req/data-quality-instance/conformance-pass Any instance of DQ_ConformanceResult SHALL have a pass property value /req/data-quality-instance/conformanc
45、e- specification Any instance of DQ_ConformanceResult SHALL have a specification property value /req/data-quality-instance/descriptive-statement Any instance of DQ_DescriptiveResult SHALL have a statement property value aThe complete URI begins with http:/ /standards.iso.org/iso/19157/-2/1.0/. bThe
46、complete URL begins with http:/ /standards.iso.org/iso/19157/-2/1.0/. ISO 2016 All rights reserved 5PD ISO/TS 19157-2:2016ISO/TS 19157-2:2016(E) Requirement class URI a Namespace b Dependencies a Requirements a /req/data-quality-instance/coverage-spatial- representation-type Any instance of QE_Cover
47、ageResult SHALL have a spatialRepresentationType /req/data-quality-instance/coverage-spatial- representation-information Any instance of QE _CoverageResult SHALL have one and only one resultSpatialRepresentation property value /req/data-quality-instance/coverage-spatial- representation-information A
48、ny instance of QE_CoverageResult SHALL have one and only one resultContentDescription property value /req/data-quality-instance/coverage-content- description Any instance of QE_CoverageResult SHALL have one and only one resultContentDescription property value /req/data-quality-instance/coverage-resu
49、lt-format Any instance of QE_CoverageResult SHALL have one and only one resultFormat property value /req/data-quality-instance/coverage-result-format Any instance of QE_CoverageResult SHALL have one and only one resultFile property value /req/quality-measure-instance /dqm/1.0 /req/data-quality- core-instance /req/common- classes-instance /req/citation-instance /req/quality-measure-instance/measureIdentifier Any instance of DQM_Measure SHALL have a measureIdentifier propert