NCEAS / metadig-checks

MetaDIG suites and checks for data and metadata improvement and guidance.
Apache License 2.0
9 stars 9 forks source link

FAIR check - resource distribution #11

Closed gothub closed 5 years ago

gothub commented 5 years ago

For the check ResourceDistribution, the EML XPath used is

/eml/dataset/*/physical/distribution/online/url[@function="download"]

I'm not aware of any problem with the XPath, however, it is common practice for the value used to include the DataONE resolve service URL, for example:

...
 <online>
    <url function="download">https://cn.dataone.org/cn/v2/resolve/urn:uuid:7098ba54-ca6f-4e35-beb3-718bd0fe58a8</url>
 </online>
...

The check currently performs an HTTP HEAD request on the URL, to see if it is resolvable. The DataONE resolve service returns an HTTP 500 (Server Error) status for any HEAD request, even if the URL is valid. This means that many DataONE documents will fail this check, even if the URL is valid.

A DataONE Redmine issue has been logged for this problem.

gothub commented 5 years ago

This issue superceded by https://github.com/NCEAS/metadig-checks/issues/104