I am exporting 428 records to jsonld format, and I get an "To many requests" error which is then saved instead of the jsonld.
community = "ipbes"
max_records = 1000
zenodo <- zen4R::ZenodoManager$new()
records <- zenodo$getRecords(
q = paste0("communities:", community),
size = max_records,
exact = FALSE
)
lapply(
records,
function(x) {
x$exportAsJSONLD(
file = file.path(jsonld_path, paste0(x$getId(), ".jsonld"))
)
}
)
It is possible that it does not occur in all cases as I might have done multiple requests before.
Also: This is not the most efficient approach to achieve this - is there a way of doing this more efficient?
I am exporting 428 records to jsonld format, and I get an "To many requests" error which is then saved instead of the jsonld.
It is possible that it does not occur in all cases as I might have done multiple requests before.
Also: This is not the most efficient approach to achieve this - is there a way of doing this more efficient?