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

`safedata_zenodo` commands require full validation configuration. #25

Closed davidorme closed 1 year ago

davidorme commented 1 year ago

The safedata_zenodo script and zenodo.py has no need of the taxon databases or locations file, but the config file must include them. That means a user who is only ever going to be handling data upload and publication still has to configure the local validation resources. That is really only the locations file, because of the online taxon validation fallback, but still...

This is an extremely niche use case issue, but jotting it down because it just happened to me.

davidorme commented 1 year ago

With the deletion of the online taxon fallback option (#31) , this is now a bit more of an issue. Still a niche use case.

davidorme commented 1 year ago

I'm going to close this - it is extremely niche.

The fix would be to allow resources to load without any of the four 'top' resources (taxon db and location data), just to allow use by someone who only needs the zenodo and safedata_server configuration items and never does any actual validation. That would then require a huge amount of resource checking for the core validation rather than just being able to assume resources are complete.

If this ever became an issue, the simplest way is probably to simply split into two Resources: ValidationResources and MetadataResources.