Skip to content

Commit

Permalink
Change metadata schema
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Dec 15, 2023
1 parent e7389f3 commit 8fcbca4
Showing 1 changed file with 42 additions and 28 deletions.
70 changes: 42 additions & 28 deletions ckanext/kepa/kepa_dataset_schema.yaml
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: [email protected]
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
Expand All @@ -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:
Expand All @@ -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




0 comments on commit 8fcbca4

Please sign in to comment.