Adds a dataset-version
schema example for the datacite-based "national gallery dataset"
#99
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this example data, a datacite metadata record is converted to be compliant with the dataset-version schema. The dataset described by the datacite record is known as the 'External Environmental Data' dataset from the British National Gallery. See https://api.test.datacite.org/dois/10.82433/9184-DY35\?publisher\=true\&affiliation\=true.
Mappings that were not straightforward:
name
property of aDatasetVersionObject
keyword
s were taken fromrecord["data"]["attributes"]["subjects"]
record["data"]["attributes"]["identifiers"] = []
)modified
was taken from the date part ofrecord["data"]["attributes"]["updated"]
which has value"2024-01-02T20:15:20.000Z"
landing_page
was taken from the most relevant source in therecord["data"]["attributes"]["relatedIdentifiers"]
listcito:supports
forisSupplementTo
cito:isSupportedBy
forIsSupplementedBy
metatype
would be ascribed to an entity that has a resource type ofInteractiveResource
in the datacite record, and is identified by a URL.Organizations/Persons
andPublications
were easy, in this case the relation is to an online page, essentially. This part of the data example (the entity and the relation) is commented out.Some issues were encountered when trying to validate the example locally. However, when I ran validation on the penguin dataset locally, i received the same errors. And these errors do not show up on the CI, so perhaps this issue is related to my run environment...