Skip to content

Commit

Permalink
Standard / ISO / DCAT formatters / HVD / Add applicable legislation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Apr 4, 2024
1 parent 2fee020 commit 6bf9b39
Show file tree
Hide file tree
Showing 7 changed files with 654 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@
<xsl:variable name="hvdCategoryThesaurusKey"
select="'http://data.europa.eu/bna/asd487ae75'"/>

<xsl:variable name="hvdApplicableLegislationThesaurusKey"
select="'http://data.europa.eu/r5r/applicableLegislation'"/>

<xsl:variable name="euHvdDataCategories"
select="document('vocabularies/high-value-dataset-category.rdf')"/>

<xsl:variable name="euHvdApplicableLegislation"
select="document('vocabularies/high-value-dataset-applicable-legislation.rdf')"/>


<xsl:template mode="iso19115-3-to-dcat-resource"
match="mdb:MD_Metadata">
Expand Down Expand Up @@ -87,6 +93,31 @@
applicable legislation Legal Resource 1..* The legislation that mandates the creation or management of the Data Service. For HVD the value MUST include the ELI http://data.europa.eu/eli/reg_impl/2023/138/oj.
As multiple legislations may apply to the resource the maximum cardinality is not limited. P
-->
<xsl:template mode="iso19115-3-to-dcat"
match="mri:descriptiveKeywords[*/mri:thesaurusName/*/cit:title/*/@xlink:href = $hvdApplicableLegislationThesaurusKey]">
<xsl:for-each select="*/mri:keyword[*/text() != '']">

<xsl:variable name="applicableLegislation"
select="$euHvdApplicableLegislation/rdf:RDF/*[skos:prefLabel/text() = current()/*/text()]"/>
<xsl:if test="$applicableLegislation">
<dcatap:applicableLegislation rdf:resource="{$applicableLegislation/@rdf:about}">
<!--<eli:LegalResource>
<xsl:for-each select="$applicableLegislation/skos:prefLabel[@xml:lang = $languages/@iso2code]">
<dct:title xml:lang="{@xml:lang}">
<xsl:value-of select="."/>
</dct:title>
</xsl:for-each>
<xsl:for-each select="$applicableLegislation/skos:scopeNote[@xml:lang = $languages/@iso2code]">
<dct:description xml:lang="{@xml:lang}">
<xsl:value-of select="."/>
</dct:description>
</xsl:for-each>
</eli:LegalResource>-->
</dcatap:applicableLegislation>
</xsl:if>
</xsl:for-each>
</xsl:template>

<xsl:template mode="iso19115-3-to-dcat"
match="mri:resourceConstraints/mco:MD_LegalConstraints/mco:reference">
<xsl:variable name="href"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
<dcat:keyword xml:lang="fre">Ressources minérales</dcat:keyword>
<dcat:keyword xml:lang="fre">Santé et sécurité des personnes</dcat:keyword>
<dcat:keyword xml:lang="fre">Mobilité</dcat:keyword>
<dcat:keyword xml:lang="fre">1143/2014</dcat:keyword>
<dct:accessRights>
<dct:RightsStatement
rdf:about="http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,53 @@
</mri:thesaurusName>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gcx:Anchor xlink:href="http://data.europa.eu/eli/reg/2014/1143/oj">1143/2014</gcx:Anchor>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_KeywordTypeCode"
codeListValue="theme"/>
</mri:type>
<mri:thesaurusName>
<cit:CI_Citation>
<cit:title>
<gcx:Anchor xlink:href="http://data.europa.eu/r5r/applicableLegislation">High-value dataset applicable legislations</gcx:Anchor>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:Date>2024-04-04</gco:Date>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode"
codeListValue="publication"/>
</cit:dateType>
</cit:CI_Date>
</cit:date>
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:Date>2024-04-04</gco:Date>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode"
codeListValue="publication"/>
</cit:dateType>
</cit:CI_Date>
</cit:date>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gcx:Anchor xlink:href="https://apps.titellus.net/geonetwork/srv/api/registries/vocabularies/external.theme.high-value-dataset-applicable-legislation">geonetwork.thesaurus.external.theme.high-value-dataset-applicable-legislation</gcx:Anchor>
</mcc:code>
</mcc:MD_Identifier>
</cit:identifier>
</cit:CI_Citation>
</mri:thesaurusName>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:resourceConstraints>
<mco:MD_LegalConstraints>
<mco:accessConstraints>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
<dcat:keyword xml:lang="fre">Ressources minérales</dcat:keyword>
<dcat:keyword xml:lang="fre">Santé et sécurité des personnes</dcat:keyword>
<dcat:keyword xml:lang="fre">Mobilité</dcat:keyword>
<dcat:keyword xml:lang="fre">1143/2014</dcat:keyword>
<dct:accessRights>
<dct:RightsStatement
rdf:about="http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
<prefLabel xmlns="http://www.w3.org/2004/02/skos/core#" xml:lang="fr">Mobilité</prefLabel>
</skos:Concept>
</dcatap:hvdCategory>
<dcatap:applicableLegislation rdf:resource="http://data.europa.eu/eli/reg/2014/1143/oj"/>
<dct:accessRights>
<dct:RightsStatement
rdf:about="http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
<dcat:keyword xml:lang="fre">Ressources minérales</dcat:keyword>
<dcat:keyword xml:lang="fre">Santé et sécurité des personnes</dcat:keyword>
<dcat:keyword xml:lang="fre">Mobilité</dcat:keyword>
<dcat:keyword xml:lang="fre">1143/2014</dcat:keyword>
<dct:accessRights>
<dct:RightsStatement
rdf:about="http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations"/>
Expand Down

0 comments on commit 6bf9b39

Please sign in to comment.