-
Notifications
You must be signed in to change notification settings - Fork 4
Uwmetadata minimum for upload
Giulio edited this page Nov 25, 2023
·
6 revisions
Title, description, language, license and at least one role field are mandatory and must be provided.
Such field values could be left empty, but it's strongly recommended to fill them in with relevant values (e.g. license value should always be provided).
Some other mandatory fields will be added if not provided. Here are the default values:
Field | Default |
---|---|
identifier | [pid] |
upload_date | [current date] |
status | Complete |
cost | No |
copyright | Yes |
For each node, it must contain at least the following properties:
- xmlns
- xmlname
- ui_value (if any)
- datatype (if it has ui_value)
- value_lang (if any)
{
"metadata": {
"uwmetadata": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "general",
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "title",
"ui_value": "test API Upload - mit Umlauten",
"value_lang": "de",
"datatype": "LangString"
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "language",
"ui_value": "de",
"datatype": "Language"
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "description",
"ui_value": "Das ist ein Text mit Umlauten. ä, ö und ü",
"value_lang": "de",
"datatype": "LangString"
}
]
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "lifecycle",
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "contribute",
"data_order": "0",
"ordered": 1,
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "role",
"ui_value": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0/voc_3/46",
"datatype": "Vocabulary"
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "entity",
"data_order": "0",
"ordered": 1,
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0/entity",
"xmlname": "firstname",
"ui_value": "Brenda",
"datatype": "CharacterString"
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0/entity",
"xmlname": "lastname",
"ui_value": "Walsh",
"datatype": "CharacterString"
}
]
}
]
}
]
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "rights",
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "license",
"ui_value": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0/voc_21/1",
"datatype": "License"
}
]
}
]
}
}
Other fields are strongly recommended, depending on the type of the object, e.g. for pictures or documents you should define size and format, but it's not strictly mandatory:
{ "lifecycle node":"" },
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "technical",
"children": [
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "format",
"ui_value": "application/pdf",
"datatype": "CharacterString"
},
{
"xmlns": "http://phaidra.univie.ac.at/XML/metadata/lom/V1.0",
"xmlname": "size",
"ui_value": "12345",
"datatype": "FileSize"
}
]
},
{ "rights node":"" },