-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
DCAT formatter improvements #8642
Draft
josegar74
wants to merge
31
commits into
geonetwork:main
Choose a base branch
from
GeoCat:44-dcat-formatter-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
…Is to produce full URIs. Previously rdf:about elements contained not a full URI, like rdf:about='353108a0-f0f8-4f8e-9d0e-60f18dfda169' that was causing validation issues in DCAT-AP validator
|
Previously language codes were inconsistent, these type of elements got the language iso3 codes (<dct:title xml:lang='dut'...) and elements from vocabularies, where the language is defined with the iso2 code, got the iso2 code: (<skos:prefLabel xml:lang='nl'...)
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>
* Based on license URL add corresponding ADMS type * Based on accessConstraint type add EU access type ```xml <dct:LicenseDocument rdf:about="https://creativecommons.org/licenses/by-sa/2.0"> <dct:type> <skos:Concept rdf:about="http://purl.org/adms/licencetype/ViralEffect-ShareAlike"> <skos:prefLabel xml:lang="en">Viral effect (a.k.a. Share-alike)</skos:prefLabel> <skos:notation>ViralEffect-ShareAlike</skos:notation> <skos:inScheme rdf:resource="http://purl.org/adms/licencetype/1.0"/> </skos:Concept> </dct:type> <dct:type> <skos:Concept rdf:about="http://purl.org/adms/licencetype/Attribution"> <skos:notation>Attribution</skos:notation> <skos:prefLabel xml:lang="en">Attribution</skos:prefLabel> <skos:inScheme rdf:resource="http://purl.org/adms/licencetype/1.0"/> </skos:Concept> </dct:type> </dct:LicenseDocument> </dct:license> <dct:accessRights> <dct:RightsStatement rdf:about="http://publications.europa.eu/resource/authority/access-right/PUBLIC"/> </dct:accessRights> ```
…ds are encoded using dct:subject if with Anchor and dcat:keyword for label.
…. Also add additional iana types.
…h will be RDF invalid). Add missing match on online resource name and DQ citation link.
* Add support for DQ spec and report reference as foaf:page * Fix when function is not defined or empty * Add modified date based on resource revision * Add dcat:mediaType * Copy resource language * Case insensitive matching of format
…with function information.
Adds: * dcat:inSeries * dcat:seriesMember * dct:relation * dct:source * dct:references * dct:servcesDataset
8cf7aa3
to
63171aa
Compare
679140c
to
7c44f46
Compare
If no match, data.europa.eu display UNKNOWN.
Formatter / DCAT / Add some more media type mapping to EU vocabuary
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve the functions to obtain record / resource URIs to produce full URIs.
The original metadata can be ISO19115.3-2008 or ISO19139. For ISO19139, the extraction of languages was not defined.
Use iso2 language code for rdf localised elements and
adms:status
Process all resource constraints.
Formatter / DCAT / EU / Fix conformsTo URI for DCAT-AP and add legislations.
Formatter / DCAT / Use relation API to populates link. Adds:
Formatter / DCAT / Service / Endpoint description can also be a link with function information.
Formatter / DCAT / Distribution
Formatter / DCAT / Avoid to generate URI not starting with http (which will be RDF invalid). Add missing match on online resource name and DQ citation link.
Formatter / DCAT / EU publication file type expect http URI not https. Also add additional iana types.
Formatter / DCAT / Limit dcat:theme element to EU data themes. Keywords are encoded using dct:subject if with Anchor and dcat:keyword for label.
Formatter / DCAT / EU validator complains about this.
Formatter / DCAT / Add ADMS license type and EU access rights.
Based on license URL add corresponding ADMS type
Based on accessConstraint type add EU access type
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentation