CGSpace Notes

Documenting day-to-day work on the CGSpace repository.

June, 2024

2024-06-03

  • Working on IFPRI datasets
  • I used this GREL in OpenRefine to create a new column based on URLs using the DOI (uppercasing the DOI for Dataverse):
"https://dataverse.harvard.edu/api/datasets/export?exporter=dataverse_json&persistentId=doi:" + value.split('https://doi.org/')[-1].toUppercase()
  • Then I was able to extract the license text from the JSON response using:
value.parseJson()['datasetVersion']['termsOfUse']
  • Similar for the Handle…