CSW / Improve DCAT support #6635
Merged
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.
Mapping DCAT
Cleanup
Combine all XSLT producing RDF in order to have same output as former
rdf.searchservice and CSW responses - trying to get last changes mainly made by @pvgenuchten.CSW response was not containing referenced elements in response eg. Distribution, Concept, Org (maybe done on purpose?). Cf. #1407
eg.
v3 / rdf.search
https://vanilla.geocat.net/geonetwork/srv/eng/rdf.search?uuid=da165110-88fd-11da-a88f-000d939bc5d8
v3-v4 / CSW
https://vanilla.geocat.net/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.w3.org/ns/dcat%23&ID=da165110-88fd-11da-a88f-000d939bc5d8
Use Anchor for thesaurus and keywords
As we have Anchor support, use
xlink:hrefwhen set on thesaurus and keywords. URI will point to registry applications (eg. Vocprez, R3gistry, LD-Registry) when defined and makes more sense than building custom internal URI.ISO 19115-3 / CSW / Add support for DCAT output
Rely on the old 2012 ISO19139 mapping.
Test: Load an ISO19115-3 record eg. https://metawal.wallonie.be/geonetwork/srv/api/records/ea5f844f-2d61-4472-a75c-5fe7f322c123/formatters/xml then query using CSW http://localhost:8080/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ID=ea5f844f-2d61-4472-a75c-5fe7f322c123&outputSchema=http%3A%2F%2Fwww.w3.org%2Fns%2Fdcat%23&elementSetName=full
Using OGC API Records https://github.com/geonetwork/geonetwork-microservices/tree/main/modules/services/ogc-api-records is preferred. eg https://sextant.ifremer.fr/geonetwork/api/collections/main/items/e522f0b5-f090-40ea-8189-188be4e9849c?f=dcat
Main idea here is to avoid CSW errors in case of GetRecords query on catalogue mixing ISO19139 and 19115-3. BTW dublin core or ISO19110 have no mapping so may trigger exception. Filtering by
documentStandardmay still be requiredFuture work