WMO Core Metadata Profile version 1.3

 

TEST TYPE: Abstract tests for XML encoding
TEST GROUP: ISO/TS 19139:2007 compliance
TEST ID: http://wis.wmo.int/2012/metadata/conf/ISO-TS-19139-2007-xml-schema-validation
TEST PURPOSE:
Requirement 6.1.1: Each WIS Discovery Metadata record shall validate without error against the XML schemas defined in ISO/TS 19139:2007
TEST METHOD:
Using a tool with strict interpretation of XML Schema and full support for the W3C XML Schema, validate the instance document under test against the XML schemas created from the UML model of ISO 19115:2003/Cor. 1:2006 using the encoding rules defined in ISO/TS 19139:2007 ‘Geographic information – Metadata – XML schema implementation’ Clause 9. The normative location for these XML schemata are hosted by ISO at: http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/.

A reference copy of these XML schemas is hosted by WMO at: http://wis.wmo.int/2011/schemata/iso19139_2007/schema/

 

TEST TYPE: Abstract tests for XML encoding
TEST GROUP: ISO/TS 19139:2007 compliance
TEST ID: http://wis.wmo.int/2012/metadata/conf/ISO-TS-19139-2007-rule-based-validation
TEST PURPOSE: Requirement 6.1.2: Each WIS Discovery Metadata record shall validate without error against the rule-based constraints listed in ISO/TS 19139:2007 Annex A (Table A.1)
TEST METHOD:
Using a tool that supports Schematron (ISO/IEC 19757-3:2006 ‘Information technology – Document Schema Definition Language (DSDL) – Part 3: Rule-based validation – Schematron’), validate the instance document under test against the rule-based constraints listed in ISO/TS 19139:2007 Annex A (Table A.1). A reference set of Schematron rules for this purpose are hosted by WMO at: http://wis.wmo.int/2012/metadata/validationTestSuite/

 

TEST TYPE: Abstract tests for XML encoding
TEST GROUP: Explicit identification of namespaces in XML
TEST ID: http://wis.wmo.int/2012/metadata/conf/explicit-xml-namespace-identification
TEST PURPOSE: Requirement 6.2.1: Each WIS Discovery Metadata record shall explicitly name all namespaces used within the record; use of default namespaces is prohibited.
TEST METHOD: In the instance document under test inspect all ‘xmlns’ declarations to ensure that an XML namespace is provided; e.g.
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" … >

The following ‘xmlns’ declaration is not permitted:
<MD_Metadata xmlns:="http://www.isotc211.org/2005/gmd" … >

 

TEST TYPE: Abstract tests for XML encoding
TEST GROUP: Specification of GML namespace
TEST ID: http://wis.wmo.int/2012/metadata/conf/gml-namespace-specification
TEST PURPOSE: Requirement 6.3.1: Each WIS Discovery Metadata record shall declare the following XML namespace for GML: http://www.opengis.net/gml/3.2
TEST METHOD: In the instance document under test inspect all ‘xmlns’ declarations to ensure that the GML namespace is specified as http://www.opengis.net/gml/3.2; e.g.

xmlns:gml="http://www.opengis.net/gmd/3.2”

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: Unique gmd:fileIdentifier attribute
TEST ID: http://wis.wmo.int/2012/metadata/conf/fileIdentifier-cardinality
TEST PURPOSE: Requirement 8.1.1: Each WIS Discovery Metadata record shall include one gmd:MD_Metadata/gmd:fileIdentifier attribute
TEST METHOD: In the instance document under test, validate that there is one and only one instance of the element identified by the following XPath:
/gmd:MD_Metadata/gmd:fileIdentifier

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: ISO/TS 19139:2007 compliance
TEST ID: --
TEST PURPOSE: Requirement 8.1.2: there is no abstract test - The gmd:MD_Metadata/gmd:fileIdentifier attribute for each WIS Discovery Metadata record shall be unique within the WIS.
TEST METHOD: --

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: Mandatory WMO_CategoryCode keyword
TEST ID: http://wis.wmo.int/2012/metadata/conf/WMO_CategoryCode-keyword-cardinality
TEST PURPOSE: Requirement 8.2.1: Each WIS Discovery Metadata record shall include at least one keyword from the WMO_CategoryCode code list
TEST METHOD:
(i) Inspect the instance document under test to assess whether the WMO_CategoryCode code list is specified as a keyword thesaurus within an instance of gmd:MD_Keywords using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
 
↘gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title// = “WMO_CategoryCode”

A gmx:Anchor element may be used to specify the location of the Code List; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
 

↘gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title/
↘gmx:Anchor/@xlink:href = “http://wis.wmo.int/2012/codelists/WMOCodeLists.xml#WMO_CategoryCode”

(ii) Inspect the associated gmd:MD_Keywords element to ensure that at least one instance of a keyword from the WMO_CategoryCode code list is present. A normative version of the WMO_CategoryCode code list is published by WMO at: http://wis.wmo.int/2012/codelists/WMOCodeLists.xml. Instances of keyword are identified by the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
  ↘gmd:MD_Keywords/gmd:keyword

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: Mandatory WMO_CategoryCode keyword
TEST ID: http://wis.wmo.int/2012/metadata/conf/keyword-grouping
TEST PURPOSE: Requirement 8.2.3: All keywords sourced from a particular keyword thesaurus shall be grouped into a single instance of the MD_Keywords class
TEST METHOD: Inspect the instance document under test to assess whether each keyword thesaurus is specified once and once only. Keyword thesaurus title is specified using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
  ↘gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title//

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: Geographic data extent specification with bounding box
TEST ID: http://wis.wmo.int/2012/metadata/conf/geographic-bounding-box
TEST PURPOSE: Requirement 8.2.4: Each WIS Discovery Metadata record describing geographic data shall include the description of at least one geographic bounding box defining the spatial extent of the data
TEST METHOD:
(i)

Inspect the instance document under test to assess whether the metadata record is describing geographic data; e.g.

/gmd:MD_Metadata/gmd:hierarchyLevel/gmd:MD_ScopeCode != “nonGeographicDataset”

Inspect the instance document under test to assess whether the geographic extent is specified using a bounding box. Abstract test http://wis.wmo.int/2012/metadata/conf/ISO-TS-19139-2007-rule-based-validation shall ensure that the bounding box is correctly specified. Geographic extent bounding box is specified using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
  ↘gmd:extent/gmd:EX_Extent/gmd:geographicExtent/gmd:EX_GeographicBoundingBox
(ii)

Inspect the associated gmd:MD_Keywords element to ensure that at least one instance of a keyword from the WMO_CategoryCode code list is present. A normative version of the WMO_CategoryCode code list is published by WMO at: http://wis.wmo.int/2012/codelists/WMOCodeLists.xml. Instances of keyword are identified by the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
  ↘gmd:extent/gmd:EX_Extent/gmd:geographicExtent/gmd:EX_GeographicBoundingBox

 

TEST TYPE: Abstract tests for metadata uniqueness and discovery within WIS DAR Catalogue

TEST GROUP: Geographic data extent specification with bounding box
TEST ID: No abstract test
TEST PURPOSE: Requirement 8.2.5: All information within a metadata record shall, as a minimum, be provided in English within the metadata record.
TEST METHOD:
--

 

TEST TYPE: Description of data for global exchange via WIS
TEST GROUP: Identification of data for global exchange via WIS
TEST ID: http://wis.wmo.int/2012/metadata/conf/identification-of-globally-exchanged-data
TEST PURPOSE: Requirement 9.1.1: A WIS Discovery Metadata record describing data for global exchange via the WIS shall indicate the scope of distribution using the keyword “GlobalExchange” of type “dataCenterdataCentre” from thesaurus WMO_DistributionScopeCode
TEST METHOD:
(i)

Inspect the instance document under test to assess whether the WMO_DistributionScopeCode code list is specified as a keyword thesaurus within an instance of gmd:MD_Keywords using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
 
↘gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title// = “WMO_DistributionScopeCode”

A gmx:Anchor element may be used to specify the location of the Code List; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
 

↘gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title/
↘gmx:Anchor/@xlink:href = “http://wis.wmo.int/2012/codelists/WMOCodeLists.xml#WMO_DistributionScopeCode”

(ii)

Inspect the associated gmd:MD_Keywords element to ensure that the keyword type is specified as “dataCentre” from the (amended) MD_KeywordTypeCode code list; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
  ↘gmd:MD_Keywords/gmd:type/gmd:MD_KeywordTypeCode = “dataCentre”
(iii)

Inspect the associated gmd:MD_Keywords element to assess whether the keyword “GlobalExchange” from the WMO_DistributionScopeCode code list is present; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords/
  ↘gmd:MD_Keywords/gmd:keyword = “GlobalExchange”

 

TEST TYPE: Description of data for global exchange via WIS
TEST GROUP: Geographic data extent specification with bounding box
TEST ID: http://wis.wmo.int/2012/metadata/conf/fileIdentifier-for-globally-exchanged-data
TEST PURPOSE: Requirement 9.2.1: A WIS Discovery Metadata record describing data for global exchange via the WIS shall have a gmd:MD_Metadata/gmd:fileIdentifier attribute formatted as follows (where {uid} is a unique identifier derived from the GTS bulletin or file name): urn:x-wmo:md:int.wmo.wis::{uid}
TEST METHOD:

In the instance document under test, validate that the gmd:fileIdentifier element conforms to the following regular expression:

/gmd:MD_Metadata/gmd:fileIdentifier// = “^urn:x-wmo:md:int.wmo.wis::”

 

TEST TYPE: Description of data for global exchange via WIS
TEST GROUP: Specification of WMO Data Policy for globally exchanged data
TEST ID: http://wis.wmo.int/2012/metadata/conf/WMO-data-policy-for-globally-exchanged-data
TEST PURPOSE: Requirement 9.3.1: A WIS Discovery Metadata record describing data for global exchange via the WIS shall indicate the WMO Data License as Legal Constraint (type: “otherConstraints”) using one and only one term from the WMO_DataLicenseCode code list
TEST METHOD:

Inspect the instance document under test to assess whether one and only one instance of a term from the WMO_DataLicenseCode code list is specified using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:resourceConstraints/
  ↘gmd:MD_LegalConstaints/gmd:otherConstraints//

A normative version of the WMO_DataLicenseCode code list is published by WMO at: http://wis.wmo.int/2012/codelists/WMOCodeLists.xml

A gmx:Anchor element may be used to specify the location of the Code List; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:resourceConstraints/
 
↘gmd:MD_LegalConstaints/gmd:otherConstraints/gmx:Anchor/@xlink:href = “http://wis.wmo.int/2012/codelists/WMOCodeLists.xml#WMO_DataLicenseCode”

 

TEST TYPE: Description of data for global exchange via WIS
TEST GROUP: Specification of GTS Product Category (GTS Priority) for globally exchanged data
TEST ID: http://wis.wmo.int/2012/metadata/conf/GTS-priority-for-globally-exchanged-data
TEST PURPOSE: Requirement 9.3.2: A WIS Discovery Metadata record describing data for global exchange via the WIS shall indicate the GTS Priority as Legal Constraint (type: “otherConstraints”) using one and only one term from the WMO_GTSProductCategoryCode code list.
TEST METHOD:

Inspect the instance document under test to assess whether one and only one instance of a term from the WMO_GTSProductCategoryCode code list is specified using the following XPath:

/gmd:MD_Metadata/gmd:identificationInfo//gmd:resourceConstraints/
  ↘gmd:MD_LegalConstaints/gmd:otherConstraints//

A normative version of the WMO_GTSProductCategoryCode code list is published by WMO at: http://wis.wmo.int/2012/codelists/WMOCodeLists.xml

A gmx:Anchor element may be used to specify the location of the Code List; e.g.

/gmd:MD_Metadata/gmd:identificationInfo//gmd:resourceConstraints/
 
↘gmd:MD_LegalConstaints/gmd:otherConstraints/gmx:Anchor/@xlink:href = “http://wis.wmo.int/2012/codelists/WMOCodeLists.xml#WMO_GTSProductCategoryCode”

 

top
Top

line

© World Meteorological Organization, 7bis, avenue de la Paix, Case postale No. 2300, CH-1211 Geneva 2, Switzerland - Tel.: +41(0)22 730 81 11 - Fax: +41(0)22 730 81 81 Contact us Copyright | Privacy | Scams | Disclaimer |  Guidelines | Procurement | UN System | Accessibility