Dear all,
I was wondering if there are any examples of the DataCite Metadata Schema 4.3 in JSON, similar to the ones here for XML https://github.com/datacite/schema/tree/master/source/meta/kernel-4.3/example
One of our members would like to have this type of example to perform some API calls.
Thank you in advance!
Best regards,
Paloma
Hi Paloma,
You will find a JSON Schema (http://json-schema.org) for the DataCite metadata in this project: (https://github.com/datacite/schema/blob/master/source/json/kernel-4.3/datacite_4.3_schema.json). This is a work in progress, and when complete, it will allow users to validate the DataCite JSON schema in the same way as the XML schema.
However if the client requires a guide as to which attributes the REST API supports for a API calls, then they can look at the JSON:API (https://jsonapi.org/) response which contains all fields. Some are read-only so it might be better to consult the API reference for which fields can be written: (https://support.datacite.org/reference/dois-2#post_dois).
Thanks
Mary
1 Like