-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatically determine list of dataset "subjects" #27
Comments
I confirmed that this list is not defined in |
This seems to be the request to get that list:
|
This api endpoint does not seem to provide the information needed. Under $SERVER_URL/api/metadatablocks/citation/ the field subject is defined but there is no information about the possible values. See:
|
I'm sorry. The list of subjects is not available via API expect through an "admin" API that you usually can't reach unless you are ssh'ed into the Dataverse server. I made a note about your request at IQSS/dataverse#1510 (comment) In practice, you'll probably have to hard-code the list of subjects. |
Here is the list as extracted from the webinterface:
|
FTR: Should have looked at the linked commit in the dataverse issue first. From within the docker I can get it here:
Just noting it here, in case that endpoint becomes relevant for us in the future. |
Please note that the plan is to introduce a non-admin API (to show the list of subjects, etc.) in this PR: |
Calling
pyDataverse.api.NativeApi.create_dataset()
requires to specified "subjects". This is not optional, and it cannot be an arbitrary string.The WebUI exposes a predefined list of identifiers
we have to be able to query this list programmatically, in order to be able to give meaningful advice for composing this mandatory dataset metadata.
The text was updated successfully, but these errors were encountered: