You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is currently a bit patchy.
Implementing a Builder pattern to make Dataset construction a little easier.
Also need to handle optional/mandatory fields
Also validation of input.
@pdurbin Is there any way to programmatically get a list of Subjects and IdentifierSchemes?
I can hard-code based on what I see on the website but would be nice to get from an API call.
What do you mean by IdentifierSchemes? Do you mean DOI vs. Handle? What's the use case for exposing this? Hmm, or do you mean identifiers for authors like ORCID IDs?
If you edit a Dataset Metadata, there is sub-field 0f Author called ‘Identifier Scheme’ which is a dropdown list of ORCID,ISNI,LCNA.
If this list is likely to change it would be good to be able to retrieve the list of schemes programatically from the API.
If realistically it’s likely to seldom change I can just hard-code it.
What do you mean by IdentifierSchemes? Do you mean DOI vs. Handle? What's the use case for exposing this? Hmm, or do you mean identifiers for authors like ORCID IDs?
Activity
pdurbin commentedon Oct 14, 2016
@richarda23 unfortunately, there is no way to programmatically get a list of subjects since IQSS/dataverse#1510 is still open.
Technically, I added it a while back but it's hidden behind the "admin" API: https://github.com/IQSS/dataverse/blob/v4.5.1/src/main/java/edu/harvard/iq/dataverse/api/DatasetFieldServiceApi.java#L178
Recently we added an "info" API ( http://guides.dataverse.org/en/4.5.1/api/native-api.html#info ) and this would be a natural place to expose the list of subjects.
What do you mean by IdentifierSchemes? Do you mean DOI vs. Handle? What's the use case for exposing this? Hmm, or do you mean identifiers for authors like ORCID IDs?
richarda23 commentedon Oct 14, 2016
pdurbin commentedon Oct 14, 2016
@richarda23 ok, that's also a controlled vocabulary so fits into IQSS/dataverse#1510 . Thanks.
pdurbin commentedon Dec 8, 2022
@richarda23 please keep an eye on this new PR: