Skip to content
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

Support editing the metadata of a dataset using JSON #15

Closed
pdurbin opened this issue Apr 24, 2015 · 2 comments · Fixed by #14
Closed

Support editing the metadata of a dataset using JSON #15

pdurbin opened this issue Apr 24, 2015 · 2 comments · Fixed by #14

Comments

@pdurbin
Copy link
Member

pdurbin commented Apr 24, 2015

As I mentioned at IQSS/dataverse#2062 (comment) we could add a Subject to a dataset that doesn't have one by pulling down the JSON of a dataset, making some modifications, and re-uploading the JSON. Here's an example script that does this (as of this writing it changes the title of the dataset):

https://github.com/IQSS/dataverse/blob/master/scripts/search/tests/edit-dataset-finch1

We wouldn't be limited to only adding a Subject, of course. You can express any metadata field in JSON: http://guides.dataverse.org/en/latest/user/dataset-management.html#supported-metadata

@garthg
Copy link

garthg commented Apr 27, 2015

Hi,

I'm a developer making use of Dataverse infrastructure for another Harvard project (my project at https://github.com/garthg/petitions-dataverse making use of the Dataverse at https://dataverse.harvard.edu/dataverse/antislaverypetitionsma). The feature described in this tracker, i.e. making JSON modifications to Dataverse entries using the Python client, would be useful for our work, so I wanted to say that I am in favor of this feature request!

Thanks to all the developers for their work.

Garth

@rliebz
Copy link
Contributor

rliebz commented Apr 27, 2015

This feature has been added in the latest (poorly-named) development branch (See #14). Since I'm breaking a fair amount of backward compatibility, I wanted to bundle the changes together before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants