LTER-LIFE / FDFDT

FAIR Data for Digital Twins
0 stars 0 forks source link

Retrieve cricket data through API #3

Closed CherineJ closed 5 months ago

CherineJ commented 5 months ago

The crickets dataset is currently stored at the DANS Data Station. To start working on the data, the dataset was first downloaded locally but the aim is to retrieve it through an API. As the Data Station is based on Dataverse, we can potentially reuse parts of the code we used to retrieve the bud burst data from the Demo dataverse.

karlines commented 5 months ago

It would be nice if you would write a more general function then that retrieves any data set from this dataverse.

CherineJ commented 5 months ago

Apparently the dataverse API is also the underlying API for the DANS datastation. Therefore our previous code, that was already general and could retrieve any dataset from the dataverse.nl or demo.dataverse.nl, can also be used as it is for the data station. The data station however requires another API key, which can be obtained when login in. Hence, only the DOI of the dataset, the server and the according API key need to be entered for every dataset individually when using the function to retrieve the data.