I’ve been trying to get a bit familiar with the R dataverse package and their use of the native api. Within this package they have a function create_dataset() that uses the native api. The intent of the function is to create a dataset in an existing dataverse much like specified at the native api website of dataverse https://guides.dataverse.org/en/latest/api/native-api.html at ‘create a Dataset in a Dataverse’. Both the website and the R dataverse package state that one needs to have metadata supplied in a JSON file format (or at least use the JSON lay-out). The dataverse native api website shows an example of what all current metadata looks like in a JSON format https://guides.dataverse.org/en/latest/_downloads/dataset-create-new-all-default-fields.json. I was wondering if there is anyway one produces such file using a call to a script of some sort. I would imagine it a tiny bit tedious to create such a JSON file from scratch every time one wants to upload a dataset using a script (whether it is curl, R dataverse package, or python pydataverse). This issue is also filed in https://github.com/IQSS/dataverse-client-r/issues/82 , but currently has no resolution. Wondering if other came across this issue and whether people know of a solution.
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/4992fea5-c62e-4144-a902-ea3df906891an%40googlegroups.com.