Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatters / DCAT-AP / Allow PO URI to be used for constraints.
In DCAT-AP, the Publication Office vocabulary is used for license and the mapping was expecting ISO to encode original URI (eg. http://creativecommons.org/licenses/by/4.0/) and not PO ones (eg. http://publications.europa.eu/resource/authority/licence/CC_BY_4_0). So ISO record using PO URI was not returning the licence in DCAT-AP (and was in DCAT - because all licence URI are allowed). The vocabulary is encoded with the following and `skos:exactMatch` was used for the mapping: ```xml <skos:Concept rdf:about="http://publications.europa.eu/resource/authority/licence/CC_BY_4_0" at:deprecated="false"> ... <skos:exactMatch rdf:resource="http://creativecommons.org/licenses/by/4.0/"/> ``` Adding also `rdf:about` to allow PO URI to be used in ISO record. Eg. if ```xml <mri:resourceConstraints> <mco:MD_LegalConstraints> <mco:useConstraints> <mco:MD_RestrictionCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/> </mco:useConstraints> <mco:otherConstraints> <gcx:Anchor xlink:href="http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply">No conditions apply to access and use.</gcx:Anchor> </mco:otherConstraints> </mco:MD_LegalConstraints> </mri:resourceConstraints> <mri:resourceConstraints> <mco:MD_LegalConstraints> <mco:useConstraints> <mco:MD_RestrictionCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_RestrictionCode" codeListValue="license"/> </mco:useConstraints> <mco:otherConstraints> <gcx:Anchor xlink:href="http://publications.europa.eu/resource/authority/licence/BSL_1_0">BSL</gcx:Anchor> </mco:otherConstraints> <mco:otherConstraints> <gcx:Anchor xlink:href="http://creativecommons.org/licenses/by/4.0/">Ces données sont disponibles sous licence CC-BY 4.0 (original).</gcx:Anchor> </mco:otherConstraints> </mco:MD_LegalConstraints> </mri:resourceConstraints> ``` DCAT (preserve all URI) ```xml <dct:license> <dct:LicenseDocument rdf:about="http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"/> </dct:license> <dct:license> <dct:LicenseDocument rdf:about="http://publications.europa.eu/resource/authority/licence/BSL_1_0"/> </dct:license> <dct:license> <dct:LicenseDocument rdf:about="http://creativecommons.org/licenses/by/4.0/"/> ``` DCAT-AP (only allow PO URI) ```xml <dct:accessRights> <dct:RightsStatement rdf:about="http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations"/> </dct:accessRights> <dct:license> <dct:LicenseDocument rdf:about="http://publications.europa.eu/resource/authority/licence/BSL_1_0"/> </dct:license> <dct:license> <dct:LicenseDocument rdf:about="http://publications.europa.eu/resource/authority/licence/CC_BY_4_0"/> ```
- Loading branch information