Valuelists¶
The following valuelists (AKA controlled vocabularies) are used to validate parts of the CKAN schemas.
Structure¶
All valuelists are served as application/json
. The contents of these valuelist follows the
pattern outlined below, which shows a sample of the overheid:taxonomiebeleidsagenda
valuelist:
{
"http://standaarden.overheid.nl/owms/terms/Afval_(thema)": {
"labels": {
"nl-NL": "Afval",
"en-US": "Rubbish"
}
},
"http://standaarden.overheid.nl/owms/terms/Arbeidsomstandigheden_(thema)": {
"labels": {
"nl-NL": "Arbeidsomstandigheden",
"en-US": "Labour conditions"
}
},
...
}
When supplying a value that must be part of a valuelist, provide the key of the value. In the
example above this would be
http://standaarden.overheid.nl/owms/terms/Arbeidsomstandigheden_(thema)
. The labels are
provided so that front-end applications can provide a proper translation of the value.
The one exception to the format displayed above is for the valuelist of overheid:license
.
The format deviates here to accommodate CKAN, since CKAN requires its license source file to fit a
specific format. This format is displayed below.
[
{
"domain_content": false,
"domain_data": false,
"domain_software": false,
"family": "",
"id": "notspecified",
"is_generic": true,
"maintainer": "",
"od_conformance": "not reviewed",
"osd_conformance": "not reviewed",
"status": "active",
"title": "License Not Specified",
"url": ""
},
...
]
Caching¶
The ckanext-dcatdonl plugin caches the contents of the valuelists for up to 24 hours. On the first request made after midnight each day, the cache will be invalidated and rebuild. This means that any changes made to the contents of the valuelists can take up to 24 hours to take effect.