-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatters / DCAT-AP / Allow PO URI to be used for constraints. #8507
Conversation
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"/> ```
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good !
|
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:Adding also
rdf:about
to allow PO URI to be used in ISO record.Eg. if
DCAT (preserve all URI)
DCAT-AP (only allow PO URI)
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentationFunded by Service Public de Wallonie