geonetwork / geonetwork-microservices

GNU General Public License v2.0
13 stars 18 forks source link

OGC API Records / API improvements #59

Closed fxprunayre closed 1 year ago

fxprunayre commented 1 year ago

/items support DCAT output.

Before that change, DCAT output was only provided per records and not for search results.

Downloading a large catalog in DCAT format

curl -v "http://localhost:9901/collections/main/items?f=dcat&limit=12000" > rdf.xml

Made some changes to DCAT mapper to not fail on invalid dates.

Add DataService mapping for services.

Check DCAT-AP validation using https://www.itb.ec.europa.eu/shacl/dcat-ap/upload

image

/items and /item support GeoJSON output.

/conformance added

fgravin commented 1 year ago

Thanks @fxprunayre Does it replace the old https://www.datagrandest.fr/geonetwork/srv/fre/rdf.search service ? Which means GN could be harvested by data.gouv.fr ?

fxprunayre commented 1 year ago

Does it replace the old

It could probably be considered as an alternative.

BTW data.gouv.fr should probably rather support harvesting GeoNetwork 3 or 4 using CSW and its DCAT output (see https://github.com/etalab/doc.data.gouv.fr/commit/f8a0b32f19f46c22c30add1bfa5cda248861531e#r75959289) which is probably the more standardized way to get the catalogue content as DCAT (that we are providing for years now - see https://github.com/geonetwork/core-geonetwork/pull/1407). rdf.search was more a quite old internal/experimental API (see https://trac.osgeo.org/geonetwork/wiki/proposals/DCATandRDFServices). OGC API Records is still a draft.

fgravin commented 1 year ago

Ok thanks for the precious inputs. I'll take a closer look on that. Cheers

hadfoo commented 1 year ago

Hello,

I have cloned your branch. Thank you for your job. I've noticed that the conversion to dcat is still not developed for large catalogs. I've done this locally. Are you interested in my contributions ?

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 2 Security Hotspots
Code Smell A 21 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

fxprunayre commented 1 year ago

I've noticed that the conversion to dcat is still not developed for large catalogs.

Not sure what you mean by that. This PR provides option to dump a full catalog in DCAT format.

I've done this locally. Are you interested in my contributions ?

Contributions are welcomed.