ImperialCollegeLondon / safedata_validator

Python tools to validate and publish datasets using the safedata metadata format.
https://safedata-validator.readthedocs.io/
MIT License
2 stars 4 forks source link

Fix XML distribution flow #112

Closed davidorme closed 4 months ago

davidorme commented 6 months ago

How does the XML distribution work in version 3+?

The previous setup generated Gemini 2 XML on the metadata server and inserted a link to that API call into the Zenodo description. That means that the Zenodo publication step requires a metadata server to be active to generate the Zenodo description.

I'm regretting that, because it is cleaner if sdv can be used with the hierarchy: validate, publish, discovery. Users should only have to spin up a metadata server if they want the discovery and safedata in R and having validate and publish as stand alone things is really useful.

So - we'd like backwards compatibility with those links (and the metadata server can generate Gemini XML easily enough) but I think what we really want is for sdv 3.0.0 to recommend adding the Gemini XML as part of the Zenodo record. However we do want the Zenodo description to point to the metadata server if one is available.

See also comments: https://github.com/ImperialCollegeLondon/safedata_validator/pull/111#discussion_r1485700989