From 8fcbca4796e4daf4fd6c8419fac9ba26b8186d18 Mon Sep 17 00:00:00 2001 From: blagoja Date: Fri, 15 Dec 2023 15:07:42 +0100 Subject: [PATCH] Change metadata schema --- ckanext/kepa/kepa_dataset_schema.yaml | 70 ++++++++++++++++----------- 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/ckanext/kepa/kepa_dataset_schema.yaml b/ckanext/kepa/kepa_dataset_schema.yaml index 1853ea6..60aaab4 100644 --- a/ckanext/kepa/kepa_dataset_schema.yaml +++ b/ckanext/kepa/kepa_dataset_schema.yaml @@ -1,6 +1,6 @@ scheming_version: 2 dataset_type: dataset -about: A reimplementation of the default CKAN dataset schema (test only) +about: A reimplementation of the default CKAN dataset schema about_url: http://github.com/ckan/ckanext-scheming @@ -14,12 +14,11 @@ dataset_fields: - field_name: name label: URL preset: dataset_slug - form_placeholder: eg. my-dataset + form_placeholder: eg. my-dataset -- field_name: notes - label: Description +- field_name: abstract + label: Abstract form_snippet: markdown.html - form_placeholder: eg. Some useful notes about the data - field_name: tag_string label: Tags @@ -31,7 +30,6 @@ dataset_fields: form_snippet: license.html help_text: License definitions and additional information can be found at http://opendefinition.org/ - - field_name: url label: Source form_placeholder: http://example.com/dataset.json @@ -43,11 +41,37 @@ dataset_fields: validators: ignore_missing unicode_safe package_version_validator form_placeholder: '1.0' + + + + - field_name: author - label: Author(s) + label: Author form_placeholder: Joe Bloggs display_property: dc:creator +- field_name: author_email + label: Author Email + form_placeholder: joe@example.com + display_property: dc:creator + display_snippet: email.html + display_email_name_field: author + +- field_name: owner_org + label: Organization + preset: dataset_organization + +- field_name: position_name + label: Position Name + form_placeholder: eg. Head of Department + +- field_name: voice + label: Voice + form_placeholder: eg. +38344 XXX-XXX + + + + - field_name: maintainer label: Maintainer @@ -61,27 +85,10 @@ dataset_fields: display_snippet: email.html display_email_name_field: maintainer -- field_name: update_frequency - label: Update Frequency - preset: select - form_placeholder: "Select update frequency like: weekly or monthly" - choices: - - value: daily - label: Daily - - value: weekly - label: Weekly - - value: monthly - label: Monthly - - value: yearly - label: Yearly - - value: ad-hoc - label: Ad-hoc - - value: never - label: Never - -- field_name: preferred_form_of_citation - label: Preferred Form of Citation - form_placeholder: "eg. INTERNATIONAL ATOMIC ENERGY AGENCY, [TITLE]. IN: IAEA Data Platform [online], IAEA, Vienna [YEAR]." + +- field_name : spatial + label: Spatial + form_placeholder : {\"type\": \"Point\", \"coordinates\": [8.609762390208658, 47.40381297881529]} resource_fields: @@ -99,3 +106,10 @@ resource_fields: form_snippet: markdown.html form_placeholder: Some useful notes about the data +- field_name: format + label: Format + preset: resource_format_autocomplete + + + +