Global

Methods

dataverseToHEAL(pid, api, callback)

Download metadata from Dataverse and pass to conversion function
Source:
Parameters:
Name Type Description
pid string persistentId of dataverse project
api string API key for dataverse instance, required for unpublished projects
callback function Function to handle the converted HEAL metadata

generateHEAL(dataverse) → {object}

Create a HEAL json-compliant object from a Dataverse metadata exports
Source:
Parameters:
Name Type Description
dataverse object Dataverse JSON metadata direct from server
Returns:
Type:
object
HEAL-compliant javascript object

healToDataverse(input) → {object}

Converts a HEAL json input to a Dataverse JSON output
Source:
Parameters:
Name Type Description
input object HEAL json object
Returns:
Type:
object
Dataverse JSON object to upload to a server instance

outputJSON(json)

Pretty print JSON to standard output
Source:
Parameters:
Name Type Description
json object JSON object to output

uploadDataverse(json, api)

Upload JSON metadata to dataverse instance, creating a new project
Source:
Parameters:
Name Type Description
json object Dataverse JSON file
api string API key for Dataverse instance