Skip to content
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

CSW output configuration for DCAT #27

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

fxprunayre
Copy link
Contributor

With the previous configuration there was no option to retrieve the DCAT-AP record in their own format.
Update own outputSchema to return the XML as it is in the database. It is not defined in the CSW spec and is a GeoNetwork specific outputSchema. There is no need to define brief, full and summary conversions when they are all the same.

When a CSW request is made (GetRecords or GetRecordById) in one of the DCAT related output schema (added in geonetwork/core-geonetwork#7600) return the DCAT record as it is.

eg. http://localhost:8080/geonetwork/srv/fre/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ID=f7106a8f-7a63-4521-bfb7-8125c8601c9b&outputSchema=http://www.w3.org/ns/dcat%23 return the same as http://localhost:8080/geonetwork/srv/fre/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ID=f7106a8f-7a63-4521-bfb7-8125c8601c9b&outputSchema=own

This will allow harvesting of DCAT-AP records using CSW protocol.

`own` outputSchema return the XML as it is in the database. It is not
defined in the CSW spec and is a GeoNetwork specific `outputSchema`.

When a CSW request is made in one of the DCAT related output schema
(added in geonetwork/core-geonetwork#7600)
return the DCAT record as it is.

There is no need to define brief, full and summary conversion when they
are all the same.
Copy link
Collaborator

@joachimnielandt joachimnielandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works correctly on the VL fork, tested locally. I had to encode the final # of the dcat namespace to get it to work though (as does your example show, I see now).

@fxprunayre fxprunayre merged commit eb68935 into main Dec 9, 2024
@fxprunayre fxprunayre deleted the feature/csw-output-config branch December 9, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants