ISO-19139_che zu DCAT-AP CH
Transformation des Geometadatenstandards für opendata.swiss
Um Geometadaten auf opendata.swiss publizieren zu können, muss der Geometadatenstandard ISO-19139_che auf den von opendata.swiss genutzten DCAT-AP CH abgebildet werden. Diese Dokumentation beschreibt die Standard-Transformation von ISO-19139_che nach DCAT-AP CH, so wie sie für das Harvesting von Geometadaten auf opendata.swiss benötigt wird. Es geht dabei um die XML-Serialisierung durch XPath .
Diese Dokumentation ist aktuell nur in Englisch verfügbar.
DCAT-AP CH Standard Overview
This documentation describes the mapping from ISO-19139_che to DCAT-AP CH. ISO-19139_che is a standard used by geocat.ch, a data source from which opendata.swiss harvests datasets.
In this documentation we focus on the XML serialization of ISO-19139_che and therefore describe the mapping in form of XPath (if not noted differently).
Example-Catalog
Overview
Geocat Distributions //gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
are mapped either to the dcat:Dataset
class or to the dcat:Distribution class, depending on .//gmd:protocol
The „Mapped from“ column in the table gives just a hint on where the metadata is taken from. Please see the field descriptions for the actual mapping.
Mapping to dcat:Dataset
DCAT property |
Mapped from |
Usage Notes |
---|---|---|
multilingual |
||
multilingual |
||
//gmd:identificationInfo//gmd:pointOfContact or //gmd:contact |
||
depends on gmd:protocol |
||
depends on gmd:protocol |
||
multilingual |
||
mapping not implemented |
||
new property, depends on gmd:protocol |
||
//gmd:contentInfo/che:CHE_MD_FeatureCatalogueDescription/che:dataModel |
new property |
Mapping to dcat:Distribution
DCAT property |
Mapped from |
Usage Notes |
---|---|---|
taken from the Dataset |
||
derived for the dataset |
||
in combination with protocol |
||
mapping not implemented |
||
derived from the protocol |
||
derived from the protocol |
||
depends on localized urls |
||
taken from the Dataset |
||
mapping not implemented |
||
mapping not implemented |
||
download protocols only |
||
mapping not implemented |
Dataset
//gmd:fileIdentifier
to dct:identifier
- DCAT
- XPATH
//gmd:fileIdentifier
- Value
gco:CharacterString/text()
- Usage Notes
the internal id of the dataset is taken from the XPath
//gmd:fileIdentifier
and combined with the slug of the publishing organization to form the value ofdct:identifier
, with the format<id>@<organization-slug>
.
//gmd:fileIdentifier/gco:CharacterString/text()
Example for geocat mapping to dct:identifier
<gmd:fileIdentifier>
<gco:CharacterString>93814e81-2466-4690-b54d-c1d958f1c3b8</gco:CharacterString>
</gmd:fileIdentifier>
/gmd:identificationInfo//gmd:citation//gmd:title
to dct:title
- DCAT
- XPATH
//gmd:identificationInfo//gmd:citation//gmd:title
- Value
.//gmd:textGroup/gmd:LocalisedCharacterString[@locale="<lang code>"]/text()
- Fallback-Value
.//gmd:CharacterString/text()
- Usage Notes
<lang code> is expected as
DE
,EN
,FR
,IT
. In case the localized strings are not there the Fallback will be used for all 4 languages
//gmd:identificationInfo//gmd:citation//gmd:title//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#DE]/text()
//gmd:identificationInfo//gmd:citation//gmd:title//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#EN]/text()
//gmd:identificationInfo//gmd:citation//gmd:title//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#FR]/text()
//gmd:identificationInfo//gmd:citation//gmd:title//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#IT]/text()
//gmd:identificationInfo//gmd:citation//gmd:title//gco:CharacterString/text()
Example for geocat-mapping to dct:title
<gmd:title xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Lärmbelastung durch Eisenbahnverkehr (Lr_Nacht)</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">
Exposition au bruit du trafic ferroviaire (Lr_nuit)
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">
Lärmbelastung durch Eisenbahnverkehr (Lr_Nacht)
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">
Nighttime railway noise exposure
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">
Esposizione al rumore del traffico ferroviario (Lr_notte)
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">
Grevezza da canera tras il traffic da viafier durant la notg
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:title>
/gmd:identificationInfo//gmd:abstract
to dct:description
- DCAT
- XPATH
//gmd:identificationInfo//gmd:abstract
- Value
.//gmd:textGroup/gmd:LocalisedCharacterString[@locale="<lang code>"]/text()
- Fallback-Value
.//gmd:CharacterString/text()
- Usage Notes
<lang code> is expected as
DE
,EN
,FR
,IT
. In case the localized strings are not there the Fallback will be used for all 4 languages
//gmd:identificationInfo//gmd:abstract//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#DE]/text()
//gmd:identificationInfo//gmd:abstract//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#EN]/text()
//gmd:identificationInfo//gmd:abstract//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#FR]/text()
//gmd:identificationInfo//gmd:abstract//gmd:textGroup/gmd:LocalisedCharacterString[@LOCALE=#IT]/text()
//gmd:identificationInfo//gmd:abstract//gmd:CharacterString/text()
Example for geocat-mapping to dct:description
<gmd:abstract xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Dans le cas de travaux de terrain réalisés pour la mensuration officielle, un ajustage local
doit systématiquement être exécuté sauf si la preuve peut être apporté qu’il peut y être renoncé. Un tel
ajustage local est superflu dans les zones où les tensions sont négligeables parce que la précision géométrique
satisfait à des critères de qualité très élevés. Dans la pratique quotidienne, la connaissance des zones où les
tensions sont négligeables facilite l’emploi des méthodes de mesure basées sur des satellites, en particulier le
recours à des services de positionnement.
</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Dans le cas de travaux de terrain réalisés pour la mensuration
officielle, un ajustage local doit systématiquement être exécuté sauf si la preuve peut être apporté
qu’il peut y être renoncé. Un tel ajustage local est superflu dans les zones où les tensions sont
négligeables parce que la précision géométrique satisfait à des critères de qualité très élevés. Dans la
pratique quotidienne, la connaissance des zones où les tensions sont négligeables facilite l’emploi des
méthodes de mesure basées sur des satellites, en particulier le recours à des services de
positionnement.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Bei Feldarbeiten in der amtlichen Vermessung muss jeweils eine
lokale Einpassung durchgeführt werden oder zumindest der Nachweis erbracht werden, dass auf eine solche
verzichtet werden kann. In spannungsarmen Gebieten erübrigt sich eine lokale Einpassung, weil die
geometrische Genauigkeit erhöhten Qualitätskriterien entspricht. In der praktischen Anwendung
erleichtert die Kenntnis solcher spannungsarmen Gebiete die Arbeiten mit satellitengestützten
Messmethoden, insbesondere mit Positionierungsdiensten wie zum Beispiel swipos.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Nel caso di lavori sul campo eseguiti per la misurazione
ufficiale occorre effettuare di volta in volta un aggiustamento locale o quanto meno fornire la prova
che è possibile rinunciare a tale aggiustamento. Nelle zone di tensioni trascurabili un aggiustamento
locale diviene superfluo, perché l'esattezza geometrica soddisfa criteri di qualità superiori.
Nell'applicazione pratica, la conoscenza di queste zone di tensioni trascurabili facilita il lavoro con
i metodi di misurazione satellitari e in particolare con servizi di posizionamento quali ad esempio
swipos.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">During fieldwork in the official cadastral survey, a local
adaptation must be made or proof must be provided that this is not needed. In low distortion areas, a
local adaptation is not necessary, because the geometric accuracy complies with higher quality criteria.
In practical applications, knowledge of low distortion areas makes working with satellite:based
measuring methods easier, in particular with positioning services such as swipos.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">En cas da lavurs champestras che vegnan fatgas per la mesiraziun
uffiziala sto vegnir fatga mintgamai in'adattaziun locala u almain vegnir furnida la cumprova ch'ins po
renunziar ad ina tala. En territoris cun tensiuns negligiblas n'è in'adattaziun locala betg necessaria,
perquai che la precisiun geometrica correspunda a criteris da qualitad fitg auts. En la pratica
quotidiana facilitescha l'enconuschientscha da tals territoris cun tensiuns negligiblas l'applicaziun da
metodas da mesiraziun per satellit, cunzunt tras servetschs da posiziunament sco per exempel swipos.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:abstract>
gmd:pointOfContact
or //gmd:contact
to dct:publisher
- DCAT
- XPATH
//gmd:identificationInfo/gmd:pointOfContact
or//gmd:contact//che:CHE_CI_ResponsibleParty
- Filter
.//gmd:CI_RoleCode/@codeListValue
- Value
.//gmd:organisationName/gco:CharacterString/text()
- Usage Notes
The publisher consists of a name and a uri. Currently only the publisher name is mapped from the geocat dataset: For the uri the url of the organization that the dataset belongs on opendata.swiss is taken: https://opendata.swiss/de/organization
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "publisher"]//gmd:organisationName/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "owner"]//gmd:organisationName/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "pointOfContact"]//gmd:organisationName/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "distributor"]//gmd:organisationName/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "custodian"]//gmd:organisationName/gco:CharacterString
//gmd:contact//che:CHE_CI_ResponsibleParty//gmd:organisationName/gco:CharacterString
Example for geocat mapping to dct:publisher
<gmd:pointOfContact>
<gmd:CI_ResponsibleParty>
<gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Geoinformationszentrum (GIS) Stadt Luzern</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Geoinformationszentrum (GIS) Stadt
Luzern
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:organisationName>
<gmd:role>
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_RoleCode"
codeListValue="publisher"/>
</gmd:role>
</gmd:CI_ResponsibleParty>
</gmd:pointOfContact>
gmd:pointOfContact or //gmd:contact
to dct:contactPoint
- DCAT
- XPATH
//gmd:identificationInfo/gmd:pointOfContact or //gmd:contact
- Value
gmd:electronicMailAddress/gco:CharacterString
- Usage Notes
Only one contact email is taken. A corresponding name is not taken.
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "pointOfContact"]//gmd:address//gmd:electronicMailAddress/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "owner"]//gmd:address//gmd:electronicMailAddress/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "publisher"]//gmd:address//gmd:electronicMailAddress/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "distributor"]//gmd:address//gmd:electronicMailAddress/gco:CharacterString
//gmd:identificationInfo//gmd:pointOfContact[.//gmd:CI_RoleCode/@codeListValue = "custodian"]//gmd:address//gmd:electronicMailAddress/gco:CharacterString
//gmd:contact//che:CHE_CI_ResponsibleParty//gmd:address//gmd:electronicMailAddress/gco:CharacterString
Example for geocat mapping to dcat:contactPoint
<gmd:contact xlink:show="embed">
<che:CHE_CI_ResponsibleParty xmlns:geonet="http://www.fao.org/geonetwork" gco:isoType="gmd:CI_ResponsibleParty">
<gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Bundesamt für Raumentwicklung</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Bundesamt für Raumentwicklung
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Office fédéral du développement territorial
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Ufficio federale dello sviluppo territoriale
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">Federal Office for Spatial Development
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">Bundesamt für Raumentwicklung
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:organisationName>
<gmd:contactInfo>
<gmd:CI_Contact>
<gmd:phone>
<che:CHE_CI_Telephone gco:isoType="gmd:CI_Telephone">
<che:directNumber>
<gco:CharacterString>+41 58 462 01 43</gco:CharacterString>
</che:directNumber>
</che:CHE_CI_Telephone>
</gmd:phone>
<gmd:address>
<che:CHE_CI_Address gco:isoType="gmd:CI_Address">
<gmd:city>
<gco:CharacterString>Ittigen</gco:CharacterString>
</gmd:city>
<gmd:postalCode>
<gco:CharacterString>3063</gco:CharacterString>
</gmd:postalCode>
<gmd:country>
<gco:CharacterString>CH</gco:CharacterString>
</gmd:country>
<gmd:electronicMailAddress>
<gco:CharacterString>rolf.giezendanner@are.admin.ch</gco:CharacterString>
</gmd:electronicMailAddress>
<che:streetName>
<gco:CharacterString>Worblentalstrasse</gco:CharacterString>
</che:streetName>
<che:streetNumber>
<gco:CharacterString>66</gco:CharacterString>
</che:streetNumber>
</che:CHE_CI_Address>
</gmd:address>
<gmd:onlineResource>
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>http://www.are.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">http://www.are.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">http://www.are.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">http://www.are.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">http://www.are.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#RM">http://www.are.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>text/html</gco:CharacterString>
</gmd:protocol>
</gmd:CI_OnlineResource>
</gmd:onlineResource>
</gmd:CI_Contact>
</gmd:contactInfo>
<gmd:role>
<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_RoleCode"
codeListValue="pointOfContact"/>
</gmd:role>
<che:individualFirstName>
<gco:CharacterString>Rolf</gco:CharacterString>
</che:individualFirstName>
<che:individualLastName>
<gco:CharacterString>Giezendanner</gco:CharacterString>
</che:individualLastName>
<che:organisationAcronym xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>ARE</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">ARE</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">ARE</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">ARE</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">ARE</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">ARE</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</che:organisationAcronym>
</che:CHE_CI_ResponsibleParty>
</gmd:contact>
//gmd:distributionInfo/gmd:MD_Distribution
to dcat:distribution
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution[//gmd:transferOptions//gmd:CI_OnlineResource
- protocol
//gmd:distributionInfo/gmd:MD_Distribution[//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
- Mapping
The mapping depends on the protocol. If the Protocol starts in the following way it is mapped to a dcat:Distribution:
WWW:DOWNLOAD
,OGC:WMTS
,OGC:WFS
,OGC:WMS
,LINKED:DATA
,ESRI:REST
,MAP:Preview
- Usage Notes
Only the above geocat Distributions will be mapped to dcat:Distribution. There are other protocols that will be mapped to dcat:landingPage and dct:relation.
//gmd:distributionInfo/gmd:MD_Distribution[//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol/gco:CharacterString/text()
Example of getting the protocols for dcat:distribution
<gmd:protocol>
<gco:CharacterString>ESRI:REST</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>OGC:WMS</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD:INTERLIS</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>MAP:Preview</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD:APP</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>WWW:LINK</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD:URL</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>CHTOPO:specialised:geoportal</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>OGC:WFS</gco:CharacterString>
</gmd:protocol>
<gmd:protocol>
<gco:CharacterString>LINKED:DATA</gco:CharacterString>
</gmd:protocol>
//gmd:identificationInfo//gmd:citation//gmd:CI_Date
to dct:issued
- DCAT
- XPATH
//gmd:identificationInfo//gmd:citation//gmd:CI_Date
- Role
publication
orcreation
orrevision
- Value
.//gco:Date
or.//gco:DateTime
- Usage Notes
This also serves as dct:issued for dcat:Distribution
//gmd:identificationInfo//gmd:citation//gmd:CI_Date[.//gmd:CI_DateTypeCode/@codeListValue = "publication"]//gco:Date or gco:DateTime
//gmd:identificationInfo//gmd:citation//gmd:CI_Date[.//gmd:CI_DateTypeCode/@codeListValue = "creation"]//gco:Date or gco:DateTime
//gmd:identificationInfo//gmd:citation//gmd:CI_Date[.//gmd:CI_DateTypeCode/@codeListValue = "revision"]//gco:Date or gco:DateTime
Example for geocat mapping to dct:issued
<gmd:CI_Date> <gmd:date> <gco:DateTime>2020:10:21T00:00:00</gco:DateTime> </gmd:date> <gmd:dateType> <gmd:CI_DateTypeCode codeListValue="revision" codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"/> </gmd:dateType> </gmd:CI_Date> <gmd:CI_Date> <gmd:date> <gco:DateTime>2011:01:01T00:00:00</gco:DateTime> </gmd:date> <gmd:dateType> <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode" codeListValue="creation"/> </gmd:dateType> </gmd:CI_Date>
//gmd:identificationInfo//gmd:citation//gmd:CI_Date
to dct:modified
- DCAT
- XPATH
//gmd:identificationInfo//gmd:citation//gmd:CI_Date
- Role
revision
- Value
//gco:Date
or//gco:DateTime
- Usage Notes
This also serves as dct:modified for dcat:Distribution
//gmd:identificationInfo//gmd:citation//gmd:CI_Date[.//gmd:CI_DateTypeCode/@codeListValue = "revision"]//gco:Date or gco:DateTime
Example for geocat mapping to dct:modified
<gmd:CI_Date> <gmd:date> <gco:DateTime>2020:10:21T00:00:00</gco:DateTime> </gmd:date> <gmd:dateType> <gmd:CI_DateTypeCode codeListValue="revision" codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"/> </gmd:dateType> </gmd:CI_Date> <gmd:CI_Date> <gmd:date> <gco:DateTime>2011:01:01T00:00:00</gco:DateTime> </gmd:date> <gmd:dateType> <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode" codeListValue="creation"/> </gmd:dateType> </gmd:CI_Date>
//gmd:identificationInfo//gmd:topicCategory/
to dcat:theme
- DCAT
- XPATH
//gmd:identificationInfo//gmd:topicCategory/
- Mapping of values
Geocat topicCategory values are mapped to themes from the DCAT-AP CH themes vocabulary: in rdf/xml in turtle For details of the mapping, see below.
//gmd:identificationInfo//gmd:topicCategory/gmd:MD_TopicCategoryCode
swisstopo_to_ogdch_group_mapping = {
'imageryBaseMapsEarthCover': ['geography', 'territory'],
'imageryBaseMapsEarthCover_BaseMaps': ['geography', 'territory'],
'imageryBaseMapsEarthCover_EarthCover': ['geography', 'territory'],
'imageryBaseMapsEarthCover_Imagery': ['geography', 'territory'],
'location': ['geography', 'territory'],
'elevation': ['geography', 'territory'],
'boundaries': ['geography', 'territory'],
'planningCadastre': ['geography', 'territory'],
'planningCadastre_Planning': ['geography', 'territory'],
'planningCadastre_Cadastre': ['geography', 'territory'],
'geoscientificInformation': ['geography', 'territory'],
'geoscientificInformation_Geology': ['geography', 'territory'],
'geoscientificInformation_Soils': ['geography', 'territory'],
'geoscientificInformation_NaturalHazards': ['geography', 'territory'],
'biota': ['geography', 'territory', 'agriculture'],
'oceans': ['geography', 'territory'],
'inlandWaters': ['geography', 'territory'],
'climatologyMeteorologyAtmosphere': ['geography', 'territory'],
'environment': ['geography', 'territory'],
'environment_EnvironmentalProtection': ['geography', 'territory'],
'environment_NatureProtection': ['geography', 'territory'],
'society': ['geography', 'culture', 'population'],
'health': ['geography', 'health'],
'structure': ['geography', 'construction'],
'transportation': ['geography', 'mobility'],
'utilitiesCommunication': ['geography', 'territory', 'energy', 'culture'],
'utilitiesCommunication_Energy': ['geography', 'energy', 'territory'],
'utilitiesCommunication_Utilities': ['geography', 'territory'],
'utilitiesCommunication_Communication': ['geography', 'culture'],
'intelligenceMilitary': ['geography', 'public-order'],
'farming': ['geography', 'agriculture'],
'economy': ['geography', 'work', 'national-economy'],
}
Example for geocat mapping to dcat:theme
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>planningCadastre</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>planningCadastre_Planning</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
//gmd:identificationInfo//gmd:language
to dct:language
- DCAT
- XPATH
//gmd:identificationInfo//gmd:language
- Value
gmd:LanguageCode
- Usage Notes
only the languages German, French, Italian and English are mapped
//gmd:identificationInfo//gmd:language/gmd:LanguageCode
language_mapping = {
'ger': 'de',
'fra': 'fr',
'fre': 'fr',
'eng': 'en',
'ita': 'it',
}
Example for geocat mapping to dct:language
<gmd:language>
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639:2/" codeListValue="ger"/>
</gmd:language>
<gmd:language>
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639:2/" codeListValue="fre"/>
</gmd:language>
//gmd:distributionInfo/gmd:MD_Distribution
to dct:landing-page
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
- Protocol
WWW:LINK
,WWW:LINK-1.0-http--link
- Value
.//gmd:linkage/gmd:URL/text()
- Fallback-Value
'.//che:LocalisedURL
for any language- Usage Notes
The protocol
WWW:LINK-1.0-http--link
is deprecated, please useWWW:LINK
instead
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
Example for geocat mapping to dcat:landingPage
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://swisstopo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:LINK</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Landing Page</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Landing Page</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
</gmd:description>
<gmd:function>
<gmd:CI_OnLineFunctionCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_OnLineFunctionCode"
codeListValue="information"/>
</gmd:function>
</gmd:CI_OnlineResource>
//gmd:distributionInfo/gmd:MD_Distribution
to dct:relation
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
- Protocol
WWW:LINK
,CHTOPO:specialised-geoportal
,WWW:LINK-1.0-http--link
- Value
For the url:
.//gmd:linkage/gmd:URL/text()
; for the text:.//gmd:description
- Fallback-Value
For the url:
.//che:LocalisedURL
for any language; for the text: the url is used as a fallback- Usage Notes
The protocol
WWW:LINK-1.0-http--link
is deprecated, please useWWW:LINK
instead The firstWWWW:LINK
is taken as dcat:landingPage, all furtherWWW-LINK
Resources are added to dct:relation
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
Example for geocat mapping to dct:relation
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://map.geo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://map.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://map.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://map.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://map.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>CHTOPO:specialised:geoportal</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Geoportal map.geo.admin.ch</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Geoportal map.geo.admin.ch</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
</gmd:description>
</gmd:CI_OnlineResource>
//gmd:identificationInfo//gmd:descriptiveKeywords
to dcat:keyword
- DCAT
- XPATH
//gmd:identificationInfo//gmd:descriptiveKeywords//gmd:keyword
- Value
//gmd:textGroup//gmd:LocalisedCharacterString
- Usage Notes
all keywords with the Locale
#DE
,#FR
,#EN
,#IT
are taken. The keyword opendata.swiss is not taken: it serves to mark which datasets should be imported to opendata.swiss
//gmd:identificationInfo//gmd:descriptiveKeywords//gmd:keyword//gmd:textGroup//gmd:LocalisedCharacterString
Example for geocat mapping to dcat:keyword
<gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Bergwirtschaft</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Bergwirtschaft</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">aménagement de la montagne</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">sfruttamento razionale della montagna
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">mountain management</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:keyword>
<gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>opendata.swiss</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">opendata.swiss</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">opendata.swiss</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">opendata.swiss</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">opendata.swiss</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">opendata.swiss</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:keyword>
<gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Alpwirtschaft</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Alpwirtschaft</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">économie alpestre</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">economia alpestre</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">alpine economy</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:keyword>
<gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Bewirtschaftungsgebiete/Schutzgebiete/geregelte Gebiete und Berichterstattungseinheiten
</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Bewirtschaftungsgebiete/Schutzgebiete/geregelte Gebiete und
Berichterstattungseinheiten
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Zones de gestion, de restriction ou de réglementation et unités de
déclaration
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Zone sottoposte a gestione/limitazioni/regolamentazione e unità con
obbligo di comunicare dati
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">Area management/restriction/regulation zones and reporting units
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:keyword>
<gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Versorgungswirtschaft und staatliche Dienste</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Versorgungswirtschaft und staatliche Dienste
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Services d'utilité publique et services publics
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Servizi di pubblica utilità e servizi amministrativi
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">Utility and governmental services</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:keyword>
//gmd:identificationInfo//gmd:extent//gmd:description
to dct:spatial
- DCAT
- XPATH
//gmd:identificationInfo//gmd:extent//gmd:description
- Value
./gco:CharacterString/text()
//gmd:identificationInfo//gmd:extent//gmd:description/gco:CharacterString/text()
Example for geocat mapping to dct:spatial
<gmd:description xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Schweiz</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Schweiz</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Schweiz</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Schweiz</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">Schweiz</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#RM">Schweiz</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:description>
//gmd:identificationInfo//gmd:extent//gmd:temporalElement
to dct:temporal
- DCAT
- XPATH
//gmd:identificationInfo//gmd:extent//gmd:temporalElement
- Value
//gml:TimePeriod/gml:beginPosition
,//gml:TimePeriod/gml:endPosition
//gmd:identificationInfo//gmd:extent//gmd:temporalElement//gml:TimePeriod/gml:beginPosition
//gmd:identificationInfo//gmd:extent//gmd:temporalElement//gml:TimePeriod/gml:endPosition
Example for geocat mapping to dct:temporal
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod gml:id="timePeriod1">
<gml:beginPosition>2020-02-01T00:00:00</gml:beginPosition>
<gml:endPosition>2021-04-01T23:59:59</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
//gmd:identificationInfo//che:CHE_MD_MaintenanceInformation
to dct:accrualPeriodicity
- DCAT
- XPATH
//gmd:identificationInfo//che:CHE_MD_MaintenanceInformation/gmd:maintenanceAndUpdateFrequency/
- Value
gmd:MD_MaintenanceFrequencyCode/@codeListValue
- Mapping of values
For the mapping of Frequency Codes see below
//gmd:identificationInfo//che:CHE_MD_MaintenanceInformation/gmd:maintenanceAndUpdateFrequency/gmd:MD_MaintenanceFrequencyCode/@codeListValue
frequency_mapping = {
'continual':
'http://publications.europa.eu/resource/authority/frequency/CONT',
'daily':
'http://publications.europa.eu/resource/authority/frequency/DAILY',
'weekly':
'http://publications.europa.eu/resource/authority/frequency/WEEKLY',
'fortnightly':
'http://publications.europa.eu/resource/authority/frequency/BIWEEKLY',
'monthly':
'http://publications.europa.eu/resource/authority/frequency/MONTHLY',
'quarterly':
'http://publications.europa.eu/resource/authority/frequency/QUARTERLY',
'biannually':
'http://publications.europa.eu/resource/authority/frequency/ANNUAL_2',
'annually':
'http://publications.europa.eu/resource/authority/frequency/ANNUAL',
'asNeeded':
'http://publications.europa.eu/resource/authority/frequency/IRREG',
'irregular':
'http://publications.europa.eu/resource/authority/frequency/IRREG',
}
Example for geocat mapping to dct:accrualPeriodicity
<gmd:maintenanceAndUpdateFrequency>
<gmd:MD_MaintenanceFrequencyCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_MaintenanceFrequencyCode"
codeListValue="annually"/>
</gmd:maintenanceAndUpdateFrequency>
//gmd:identificationInfo//gmd:aggregationInfo
to dcat:qualifiedRelation
- DCAT
- XPATH
//gmd:identificationInfo//gmd:aggregationInfo//gmd:aggregateDataSetIdentifier/gmd:MD_Identifier
- Value
/gmd:code/gco:CharacterString
- Mapping of Values
The geocat identifier is mapped to a dct:identifier by attaching
@<organization-slug>
//gmd:identificationInfo//gmd:aggregationInfo//gmd:aggregateDataSetIdentifier/gmd:MD_Identifier/gmd:code/gco:CharacterString
Example for geocat mapping to dcat:qualifiedRelation
<gmd:aggregateDataSetIdentifier>
<gmd:MD_Identifier>
<gmd:code>
<gco:CharacterString>73856ca2:f21d:4cc9:90f6:f3e8375555df</gco:CharacterString>
</gmd:code>
</gmd:MD_Identifier>
</gmd:aggregateDataSetIdentifier>
//gmd:distributionInfo/gmd:MD_Distribution
to foaf:page
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
- Protocol
WWW:LINK
- Value
.//gmd:linkage/gmd:URL/text()
- Fallback-Value
'.//che:LocalisedURL
for any language- Usage Notes
The first resource with WWW:LINK protocol is mapped as dcat:landingPage. All other resources with WWW:LINK protocol are mapped as foaf:page.
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
Example for geocat mapping to foaf:page
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://swisstopo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://swisstopo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:LINK</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Landing Page</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Landing Page</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
</gmd:description>
<gmd:function>
<gmd:CI_OnLineFunctionCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_OnLineFunctionCode"
codeListValue="information"/>
</gmd:function>
</gmd:CI_OnlineResource>
//che:dataModel//che:LocalisedURL
to dct:conformsTo
- DCAT
- XPATH
che:CHEMD_Metadata/gmd:contentInfo/che:CHE_MD_FeatureCatalogueDescription/che:dataModel/
- Value
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel/text()
- Usage Notes
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel//che:PT_FreeURL//che:URLGroup//che:LocalisedURL[@locale="#DE"]/text()
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel//che:PT_FreeURL//che:URLGroup//che:LocalisedURLL[@locale="#FR"]/text()
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel//che:PT_FreeURL//che:URLGroup//che:LocalisedURL[@locale="#EN"]/text()
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel//che:PT_FreeURL//che:URLGroup//che:LocalisedURL[@locale="#IT"]/text()
.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel//che:PT_FreeURL//che:URLGroup//che:LocalisedURL/text()
Example for geocat mapping to dct:conformsTo
<che:dataModel xsi:type="che:PT_FreeURL_PropertyType">
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://models.geo.admin.ch/ASTRA/</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</che:dataModel>
Distribution
Set dcat:accessURL
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
- Mapping
The mapping depends on the protocol. If the protocol starts in the following way it is mapped to a dcat:Distribution:
WWW:DOWNLOAD
,OGC:WMTS
,OGC:WFS
,"OGC:WMS
,LINKED:DATA
,ESRI:REST
,MAP:Preview
,WWW:DOWNLOAD-APP
- Value
.//gmd:linkage/gmd:URL/text()
- Fallback-Value
'.//che:LocalisedURL
for any language- Usage Notes
For the protocol
WWW:DOWNLOAD
the protocol should include the format of the resource: for exampleWWW:DOWNLOAD:INTERLIS
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
Example of a „LINKED:DATA“ Distribution
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://ld.geo.admin.ch/data/swissBOUNDARIES3D</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://ld.geo.admin.ch/data/swissBOUNDARIES3D</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://ld.geo.admin.ch/data/swissBOUNDARIES3D</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://ld.geo.admin.ch/data/swissBOUNDARIES3D</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://ld.geo.admin.ch/data/swissBOUNDARIES3D</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>LINKED:DATA</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>LD</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">LD</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
</gmd:CI_OnlineResource>
Set dcat:downloadURL
- DCAT
- XPATH
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource
- Protocol
.//gmd:protocol/gco:CharacterString
WWW:DOWNLOAD
- Value
.//gmd:linkage/gmd:URL/text()
- Fallback-Value
'.//che:LocalisedURL
for any language- Usage Notes
For the protocol
WWW:DOWNLOAD
the same url is mapped to both dcat:accessURL and dcat:downloadURL
.//gmd:linkage//gmd:URL/text()
Example of a „WWW:DOWNLOAD“ Distribution
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://data.geo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD:INTERLIS</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Datenbezug über data.geo.admin</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Datenbezug über data.geo.admin</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
</gmd:description>
<gmd:function>
<gmd:CI_OnLineFunctionCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_OnLineFunctionCode"
codeListValue="download"/>
</gmd:function>
</gmd:CI_OnlineResource>
Set dct:rights
- DCAT
- XPATH
//gmd:resourceConstraints//gmd:otherConstraints
- Mapping of values
Geocat rights statements are mapped to rights statements from the DCAT-AP CH rights vocabulary:
RIGHTS-RDF
,RIGHTS-Turtle
. For details of the mapping, see below.
//gmd:resourceConstraints//gmd:otherConstraints
rights = {
u'Freie Nutzung': 'NonCommercialAllowed-CommercialAllowed-ReferenceNotRequired',
u'Utilisation libre': 'NonCommercialAllowed-CommercialAllowed-ReferenceNotRequired',
u'Freie Nutzung. Quellenangabe ist Pflicht.': 'NonCommercialAllowed-CommercialAllowed-ReferenceRequired',
u'Utilisation libre. Obligation d’indiquer la source.': 'NonCommercialAllowed-CommercialAllowed-ReferenceRequired',
u'Freie Nutzung. Kommerzielle Nutzung nur mit Bewilligung des Datenlieferanten zulässig.': 'NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired',
u'Utilisation libre. Utilisation à des fins commerciales uniquement avec l’autorisation du fournisseur des données.': 'NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired',
u'Freie Nutzung. Quellenangabe ist Pflicht. Kommerzielle Nutzung nur mit Bewilligung des Datenlieferanten zulässig.': 'NonCommercialAllowed-CommercialWithPermission-ReferenceRequired',
u'Utilisation libre. Obligation d’indiquer la source. Utilisation commerciale uniquement avec l’autorisation du fournisseur des données.': 'NonCommercialAllowed-CommercialWithPermission-ReferenceRequired'
}
Example for geocat mapping to dct:rights
<gmd:resourceConstraints>
<gmd:MD_LegalConstraints>
<gmd:otherConstraints xsi:type="gmd:PT_FreeText_PropertyType">
<gmx:Anchor>Opendata BY: Freie Nutzung. Quellenangabe ist Pflicht.</gmx:Anchor>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Opendata BY: Freie Nutzung. Quellenangabe
ist Pflicht.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Opendata BY: Utilisation libre.
Obligation d’indiquer la source.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Opendata BY: Libero utilizzo. Indicazione
della fonte obbligatoria.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">Opendata BY: Open use. Must provide the
source.
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:otherConstraints>
</gmd:MD_LegalConstraints>
</gmd:resourceConstraints>
Set dcat:mediaType
- DCAT
- Usage-Notes
For protocol „WWW:DOWNLOAD“ the media type is derived by splitting the protocol name: the protocol name is expected as
<download-protocol>:<media-type>
. For protocols „OGC:WMTS“, „OGC:WMS“, „OGC:WFS“, „LINKED:DATA“, „MAP:Preview“, „ESRI:REST“ the dcat:mediaType is „SERVICE“
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
Example of a „WWW:DOWNLOAD“ Distribution with dcat:mediaType
„INTERLIS“
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://data.geo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://data.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD:INTERLIS</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Datenbezug über data.geo.admin</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Datenbezug über data.geo.admin</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
</gmd:description>
<gmd:function>
<gmd:CI_OnLineFunctionCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_OnLineFunctionCode"
codeListValue="download"/>
</gmd:function>
</gmd:CI_OnlineResource>
Set dct:format
- DCAT
- Usage-Notes
For protocol „WWW:DOWNLOAD“ the format is derived in the same way as the media type. For the other protocols the format is derived from the protocol as described in the mapping below.
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol
protocol_to_format_mapping = {
"OGC:WMTS": "WMTS",
"OGC:WMS": "WMS",
"OGC:WFS": "WFS",
"ESRI:REST": "API"
}
Example of a „WWW:WMS“ Distribution with dct:format
„WMS“
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>http://wms.geo.admin.ch/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=fr</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#FR">http://wms.geo.admin.ch/?SERVICE=WMS&VERSION=1.3.0&
REQUEST=GetCapabilities&lang=fr
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#DE">http://wms.geo.admin.ch/?SERVICE=WMS&VERSION=1.3.0&
REQUEST=GetCapabilities&lang=de
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">http://wms.geo.admin.ch/?SERVICE=WMS&VERSION=1.3.0&
REQUEST=GetCapabilities&lang=it
</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>OGC:WMS</gco:CharacterString>
</gmd:protocol>
<gmd:name gco:nilReason="missing" xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString/>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR"/>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">ch.swisstopo-vd.ortschaftenverzeichnis_plz
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Service WMS de geo.admin.ch</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#FR">Service WMS de geo.admin.ch
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">WMS Dienst von geo.admin.ch
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#IT">Servizio WMS di geo.admin.ch
</gmd:LocalisedCharacterString>
</gmd:textGroup>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#EN">WMS Service from geo.admin.ch
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:description>
</gmd:CI_OnlineResource>
Set dct:title
- DCAT
- XPATH
Mapping depends on the type of distribution that is derived from the protocol
- Protocol
//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol/gco:CharacterString
- Name
.//gmd:distributionInfo//gmd:transferOptions//gmd:name
- Usage Notes
The title of the distribution is derived by mapping the normed protocol name to a derived protocol name and then adding the name of the Distribution.
.//gmd:distributionInfo//gmd:transferOptions//gmd:protocol/gco:CharacterString
.//gmd:distributionInfo//gmd:transferOptions/gmd:name
protocol_to_name_mapping = {
"OGC:WMTS": "WMTS",
"OGC:WMS": "WMS",
"OGC:WFS": "WFS",
"WWW:DOWNLOAD": "Download",
"LINKED:DATA": "Linked Data (Dienst)",
"MAP:Preview": "Map (Preview)",
"ESRI:REST": "ESRI (Rest)"
}
Example for geocat mapping to dct:title
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>http://wfs.geo.admin.ch</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">http://wfs.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">http://wfs.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">http://wfs.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">http://wfs.geo.admin.ch</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>OGC:WFS</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>DE#WFS</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">DE#WFS</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
</gmd:CI_OnlineResource>
Set dct:description
- DCAT
- XPATH
//gmd:distributionInfo//gmd:transferOptions//gmd:description
.//gmd:description//gmd:LocalisedCharacterString
Example for geocat mapping to dct:description
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>https://map.geo.admin.ch/?layers=ch.bfe.energiestaedte
</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>MAP:Preview</gco:CharacterString>
</gmd:protocol>
<gmd:name xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>Map Preview</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">Map Preview
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:name>
<gmd:description xsi:type="gmd:PT_FreeText_PropertyType">
<gco:CharacterString>map preview</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#DE">map preview
</gmd:LocalisedCharacterString>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:description>
</gmd:CI_OnlineResource>
Set dct:language
- DCAT
- Usage-Notes
The language is derived from the languages that a localized url is offered for.
Example for geocat mapping to dct:language
<gmd:CI_OnlineResource>
<gmd:linkage xsi:type="che:PT_FreeURL_PropertyType">
<gmd:URL>https://data.geo.admin.ch/ch.meteoschweiz.klima/phaenologie/data.zip</gmd:URL>
<che:PT_FreeURL>
<che:URLGroup>
<che:LocalisedURL locale="#DE">https://www.meteoschweiz.admin.ch/home/mess-und-prognosesysteme/bodenstationen/data.zip
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#FR">https://www.meteosuisse.admin.ch/home/systemes-de-mesure-et-de-prevision/stations-au-sol/data.zip
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#IT">https://www.meteosvizzera.admin.ch/home/sistemi-di-rilevamento-e-previsione/stazioni-al-suolo/data.zip
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#EN">https://www.meteoswiss.admin.ch/home/measurement-and-forecasting-systems/land-based-stations/data.zip
</che:LocalisedURL>
</che:URLGroup>
<che:URLGroup>
<che:LocalisedURL locale="#RM">https://www.meteoschweiz.admin.ch/home/mess-und-prognosesysteme/bodenstationen/data.zip
</che:LocalisedURL>
</che:URLGroup>
</che:PT_FreeURL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD</gco:CharacterString>
</gmd:protocol>
</gmd:CI_OnlineResource>