Format Änderung: Beispiel mit datacitesimple
Wir haben neulich die DataCite Standard
und DataCite Extended
-Schemata auf MetaStore implementiert. Diese Formate fehlen noch für die MMD-Tools, deswegen habe ich mit DataCite Standard
angefangen, indem ich die Datei datacitesimple.yaml
zu einer neuen Datei datacitesimple.json
für MMD-Tools umgewandelt.
Dadurch habe ich ein paar Neuigkeiten eingeführt. Die Properties sind nicht mehr ein Dict, sondern eine Liste von Dicts:
{
"title": "DataCite",
"version": "4.4",
"description": "DataCite Schema, version 4.4",
"properties": [
{
"field_name": "identifier",
"label": "Assigned DOI",
"description": "",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "creators",
"label": "Creators",
"description": "The creator(s) of the dataset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "title",
"label": "Title",
"description": "The title of the dataset",
"default": "",
"optional": "false",
"repeatable": false,
"vocabulary": []
},
{
"field_name": "name",
"label": "URL",
"description": "",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "owner_org",
"label": "Institute",
"description": "",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "publisher",
"label": "Publisher",
"description": "The Publisher",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "publicationyear",
"label": "Publication Year",
"description": "Year of Publication",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "resourcetype",
"label": "Resource Type",
"description": "Type of the dataset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "subject",
"label": "Subject",
"description": "Subject",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "contributor",
"label": "contributor",
"description": "Contributor(s) to the dataset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "date",
"label": "Date",
"description": "",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "language",
"label": "Language",
"description": "The main language of the dataset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "alternateidentifier",
"label": "Alternate Identifier",
"description": "An alternate identifier",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "relatedidentifier",
"label": "Related Identifier",
"description": "An related identifier",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "size",
"label": "Size",
"description": "Size in Byte/MB/GB/TB/PB",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "format",
"label": "Format",
"description": "Data Format",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "version",
"label": "Version",
"description": "Version of the datset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "rightslist",
"label": "Rights List",
"description": "Rights",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "description",
"label": "Description",
"description": "A human readable description",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "geolocation",
"label": "Geolocation",
"description": "Where is the data located",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "fundingreference",
"label": "Funding Reference",
"description": "Reference for the funding",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
},
{
"field_name": "relateditem",
"label": "Related Item",
"description": "A related dataset",
"default": "",
"optional": true,
"repeatable": false,
"vocabulary": []
}
]
}
Jede Property muss ein field_name
und ein label
-Feld haben. Es würde uns die ganze Arbeit mit slugify sparen. Zusätlich zu dem label
-Feld, haben wir jetzt ein description
-Feld. Der Rest war schon da.
Ich würde mich auf Kommentare dazu freuen.