Skip to content

v0.1.1

Compare
Choose a tag to compare
@kenlhlui kenlhlui released this 28 Jan 22:17
· 22 commits to main since this release
7c60b04

1. Schema changes

  1. The key for ds_metadata in the dataset will now use dataset IDs (unique identifiers for each dataset version in the Dataverse system). Example:
# Old version
  "doi:10.5072/FK2/DUGFC4": {  # datasetPersistentId
    "status": "OK",
    "data": {
      "id": 850,
      "datasetId": 2663,
      "datasetPersistentId": "doi:10.5072/FK2/DUGFC4",
...

# New version
{
  "2663": {  # datasetId
    "status": "OK",
    "data": {
      "id": 850,
      "datasetId": 2663,
      "datasetPersistentId": "doi:10.5072/FK2/DUGFC4",
...
  1. ds_metadata_yyyymmdd-HHMMSS.json now contains data, path_info and permission_info at the second-level.
{
  ...
    "status": "OK",
    "data": {
    ...
    },
    "path_info": {
    ...
    },
   "permission_info": {
   ...
 },

  1. Changes to the following fields in path_info for consistency with the new schema:
collection_alias -> CollectionAlias
collection_id -> CollectionID
pid -> datasetPersistentId
ds_id -> datasetId
path_ids -> path_ids

# Old version
...
    "path_info": {
      "collection_alias": "toronto",
      "collection_id": 22,
      "pid": "doi:10.5072/FK2/DUGFC4",
      "ds_id": 2663,
      "path": "/Nick Field Dataverse",
      "path_ids": [
        2641
      ]
    }

# New  version
...
    "path_info": {
      "CollectionAlias": "toronto",
      "CollectionID": 22,
      "datasetPersistentId": "doi:10.5072/FK2/DUGFC4",
      "datasetId": 2663,
      "path": "/Nick Field Dataverse",
      "pathIds": [
        2641
      ]
    }

2. Feature updates

  1. Comibed the representation (-d) and permission (-p) metadata into ds_metadata_yyyymmdd-HHMMSS.json as a single JSON file.
  2. Added the following permission roles count of dataset (DS_Collab, DS_Admin, DS_Contrib, DS_ContribPlus, DS_Curator, DS_FileDown, DS_Member) for spreadsheet output - Only available if -p is enabled

3. Bug Fixes

  1. Corrected spelling mistakes in the README file.
  2. Restored missing fields for representation metadata in the spreadsheet:
  • TermsOfUse
  • CM_AuthorAff
  • CM_TimeEnd
  • CM_CollectionStart
  • CM_CollectionEnd
  1. Fixed handling -f responses with None objects.