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

Expose OGC services distributions as dataservice #3203

Conversation

maudetes
Copy link
Contributor

@maudetes maudetes commented Nov 20, 2024

Close datagouv/data.gouv.fr#1538

Inspired from the conversion in the SEMIC XSLT: https://github.com/SEMICeu/iso-19139-to-dcat-ap/blob/f61b2921dd398b90b2dd2db14085e75687f7616b/iso-19139-to-dcat-ap.xsl#L1419

If the resource is an OGC Service, we add a DCAT.accessService property on the distribution and describe the DataService accordingly.

We support resources that have a format of (ogc:)wms or (ogc:)wfs.
We don't base our decision on request=GetCapabilities as in the XSLT for now.

We may update the logic later, either by detecting the format or basing our decision on the request=GetCapabilities.
It must be aligned with the frontend.

Copy link
Contributor

@magopian magopian left a comment

Choose a reason for hiding this comment

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

This is excellent work, well done!

service.set(DCAT.endpointDescription, URIRef(resource.url))
service.set(
DCT.conformsTo,
URIRef("http://www.opengeospatial.org/standards/" + resource.format.split(":")[-1]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Clever, let's hope we'll never add a new format like ogc:wfs:foobar 🤣

@maudetes maudetes merged commit 7a6aaa8 into opendatateam:master Nov 27, 2024
1 check passed
@maudetes maudetes deleted the feat/expose-ogc-services-distribution-as-dataservice branch November 27, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants