Implementation

From DGIWG
Jump to: navigation, search

Implementation

The XSD schemas that should be used for the implementation of DMF metadata according to the first generation of ISO standards are described below.
Two different profiles are defined (see Annex Ffor more explanation). In order to implement those profiles, it is necessary to import the related schemas, including generation 1 ISO namespaces and extensions if applicable, by declaring them at the beginning of the XML file using the XML fragment below.


Implementation of the Core profile (see F.1): core.xsd:


File:Image 10.png


<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:core=" http://www.dgiwg.org/xmlns/dmf/iso-g1/ core/1.0" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd" targetNamespace=" http://www.dgiwg.org/xmlns/dmf/iso-g1/core/1.0" elementFormDefault="qualified" version="2013-05-24">

<xs:import namespace="http://www.isotc211.org/2005/gmd" schemaLocation="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd"/>

</xs:schema>



Implementation of the All profile (see F.3): all.xsd:


File:Image 9.png


<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:all=" http://www.dgiwg.org/xmlns/dmf/iso-g1/all/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:egco=" http://www.dgiwg.org/xmlns/dmf/iso-g1/egco/1.0" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:gmi="http://www.isotc211.org/2005/gmi" xmlns:ngmp="urn:int:nato:geometoc:geo:metadata:ngmp:1.0" targetNamespace=" http://www.dgiwg.org/xmlns/dmf/iso-g1/all/1.0" elementFormDefault="qualified" version="2013-05-24">

<xs:import namespace=" http://www.dgiwg.org/xmlns/dmf/iso-g1/egco/1.0" schemaLocation="http://www.dgiwg.org/xmlns/dmf/iso-g1/egco/egco.xsd"/>

<xs:import namespace="http://www.isotc211.org/2005/gmx" schemaLocation="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmx/gmx.xsd"/>

<xs:import namespace="http://www.isotc211.org/2005/srv" schemaLocation="http://www.dgiwg.org/xmlns/isotc211/srv/1.0/srv.xsd"/>

<xs:import namespace="http://www.isotc211.org/2005/gmi" schemaLocation="http://www.dgiwg.org/xmlns/isotc211/gmi/1.0/gmi.xsd"/>

<xs:import namespace="urn:int:nato:geometoc:geo:metadata:ngmp:1.0" schemaLocation=" http://www.dgiwg.org/xmlns/nato/GeoMetOc/metadata/ngmp/1.0/ngmp.xsd"/>

</xs:schema>


For any other profile definition, the mapping between metadata classes and XSD schemas is below:*
DMF/Core: gmd.xsd
  • DMF/Common: gmd.xsd
  • DMF/Services:srv.xsd
  • DMF/Data: gmd.xsd
  • DMF/Data+:gmi.xsd
  • DMF/Defence: ngmp.xsd
  • DMF/Sensor: gmd.xsd, gmi.xsd
  • DMF/Specific: gmx.xsd, egco.xsd