Skip to content

Commit

Permalink
DCAT formatter / Process all resource constraints.
Browse files Browse the repository at this point in the history
Otherwise the template for managing resource constraints in formatter/dcat/dcat-core-access-and-use.xsl did not correctly process the contraints when the first resource constraint had no access or use constraints. For example:

<mri:resourceConstraints>
    <mco:MD_Constraints>
        <mco:useLimitation>
            <gco:CharacterString>Geen gebruiksbeperkingen</gco:CharacterString>
        </mco:useLimitation>
    </mco:MD_Constraints>
</mri:resourceConstraints>
<mri:resourceConstraints>
    <mco:MD_LegalConstraints>
        <mco:accessConstraints>
            <mco:MD_RestrictionCode codeList=http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode codeListValue=otherRestrictions codeSpace=ISOTC211/19115>otherRestrictions</mco:MD_RestrictionCode>
        </mco:accessConstraints>
        <mco:otherConstraints>
            <gco:CharacterString>Open data (publiek)|https://creativecommons.org/publicdomain/mark/1.0/deed.nl\</gco:CharacterString\>
        </mco:otherConstraints>
    </mco:MD_LegalConstraints>
</mri:resourceConstraints>
  • Loading branch information
josegar74 committed Feb 7, 2025
1 parent d39d09f commit 63171aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@

<xsl:if test="$isCopyingDatasetInfoToDistribution">
<!--
[mco:useConstraints]
RDF Property: dcterms:license
Definition: A legal document under which the distribution is made available.
Range: dcterms:LicenseDocument
Expand All @@ -359,17 +360,15 @@
for a Distribution of that Dataset SHOULD be avoided as this can create legal conflicts.
See also guidance at 9. License and rights statements.
-->
<xsl:apply-templates mode="iso19115-3-to-dcat"
select="ancestor::mdb:MD_Metadata/mdb:identificationInfo/*/mri:resourceConstraints/*[mco:useConstraints]"/>

<!--
RDF Property: dcterms:accessRights
Definition: A rights statement that concerns how the distribution is accessed.
Range: dcterms:RightsStatement
Usage note: Information about licenses and rights MAY be provided for the Distribution. See also guidance at 9. License and rights statements.
-->
[mco:accessConstraints]
RDF Property: dcterms:accessRights
Definition: A rights statement that concerns how the distribution is accessed.
Range: dcterms:RightsStatement
Usage note: Information about licenses and rights MAY be provided for the Distribution. See also guidance at 9. License and rights statements.
-->
<xsl:apply-templates mode="iso19115-3-to-dcat"
select="ancestor::mdb:MD_Metadata/mdb:identificationInfo/*/mri:resourceConstraints/*[mco:accessConstraints]"/>
select="ancestor::mdb:MD_Metadata/mdb:identificationInfo/*/mri:resourceConstraints/*"/>

<!--
RDF Property: dcterms:rights
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
|mdb:identificationInfo/*/mri:citation/*/cit:edition
|mdb:identificationInfo/*/mri:defaultLocale
|mdb:identificationInfo/*/mri:otherLocale
|mdb:identificationInfo/*/mri:resourceConstraints/*[mco:useConstraints]
|mdb:identificationInfo/*/mri:resourceConstraints/*[mco:accessConstraints]
|mdb:identificationInfo/*/mri:resourceConstraints/*
|mdb:identificationInfo/*/mri:status
|mdb:identificationInfo/*/mri:descriptiveKeywords
|mdb:identificationInfo/*/mri:pointOfContact
Expand Down

0 comments on commit 63171aa

Please sign in to comment.