-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from opendata-swiss/geocat
Geocat
- Loading branch information
Showing
7 changed files
with
140 additions
and
11 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
source/content/glossar/bibliothek/geocat-examples/dataset-conforms-to.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. code-block:: xml | ||
:caption: Mapping of the che:dataModel to dct:conforms to | ||
:emphasize-lines: 9 | ||
<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> |
42 changes: 42 additions & 0 deletions
42
source/content/glossar/bibliothek/geocat-examples/dataset-documentation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. code-block:: xml | ||
:caption: Mapping of the documentation of all other resources except the first one with protocol ``WWW:LINK`` | ||
:emphasize-lines: 3,19,20,21 | ||
<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> |
11 changes: 11 additions & 0 deletions
11
source/content/glossar/bibliothek/geocat-examples/dataset-qualified-relation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. code-block:: xml | ||
:caption: Geocat Identifiers for ``dcat:qualifiedRelation`` | ||
:emphasize-lines: 4 | ||
<gmd:aggregateDataSetIdentifier> | ||
<gmd:MD_Identifier> | ||
<gmd:code> | ||
<gco:CharacterString>73856ca2:f21d:4cc9:90f6:f3e8375555df</gco:CharacterString> | ||
</gmd:code> | ||
</gmd:MD_Identifier> | ||
</gmd:aggregateDataSetIdentifier> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
source/content/glossar/bibliothek/geocat-mappings/dataset-conforms-to.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:DCAT: :ref:`dct:conformsTo <dcat-dataset-conforms-to>` | ||
:XPATH: ``che:CHEMD_Metadata/gmd:contentInfo/che:CHE_MD_FeatureCatalogueDescription/che:dataModel/`` | ||
:Value: ``.//gmd:contentInfo//che:CHE_MD_FeatureCatalogueDescription//che:dataModel/text()`` | ||
:Usage Notes: | ||
|
||
.. code-block:: xml | ||
:caption: ISO-19139_che XPath for dct:conforms to | ||
.//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() | ||
16 changes: 16 additions & 0 deletions
16
source/content/glossar/bibliothek/geocat-mappings/dataset-documentation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:DCAT: :ref:`foaf:page <dcat-dataset-documentation>` | ||
: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. | ||
|
||
.. code-block:: xml | ||
:caption: ISO-19139_che XPath for foaf:page | ||
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource | ||
.. code-block:: xml | ||
:caption: ISO-19139_che XPath for distribution protocol | ||
//gmd:distributionInfo/gmd:MD_Distribution//gmd:transferOptions//gmd:CI_OnlineResource//gmd:protocol |
4 changes: 2 additions & 2 deletions
4
...thek/geocat-mappings/dataset-see-also.rst → ...t-mappings/dataset-qualified-relation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
:DCAT: :ref:`rdfs:seeAlso <dcat-dataset-see-also>` | ||
:DCAT: :ref:`dcat:qualifiedRelation <dcat-dataset-qualified-relation>` | ||
: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>`` | ||
|
||
.. code-block:: xml | ||
:caption: XPATH for rdfs:seeAlso: all such values are taken | ||
:caption: XPATH for dcat:qualifiedRelation: all such values are taken | ||
//gmd:identificationInfo//gmd:aggregationInfo//gmd:aggregateDataSetIdentifier/gmd:MD_Identifier/gmd:code/gco:CharacterString |