forked from ckan/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathckan_dataset.json
107 lines (107 loc) · 2.84 KB
/
ckan_dataset.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"scheming_version": 1,
"dataset_type": "dataset",
"about": "A reimplementation of the default CKAN dataset schema",
"about_url": "http://github.com/ckan/ckanext-scheming",
"dataset_fields": [
{
"field_name": "title",
"label": "Title",
"preset": "title",
"form_placeholder": "eg. A descriptive title"
},
{
"field_name": "name",
"label": "URL",
"preset": "dataset_slug",
"form_placeholder": "eg. my-dataset"
},
{
"field_name": "notes",
"label": "Description",
"form_snippet": "markdown.html",
"form_placeholder": "eg. Some useful notes about the data"
},
{
"field_name": "tag_string",
"label": "Tags",
"preset": "tag_string_autocomplete",
"form_placeholder": "eg. economy, mental health, government"
},
{
"field_name": "license_id",
"label": "License",
"form_snippet": "license.html",
"help_text": "License definitions and additional information can be found at http://opendefinition.org/"
},
{
"field_name": "owner_org",
"label": "Organization",
"preset": "dataset_organization"
},
{
"field_name": "url",
"label": "Source",
"form_placeholder": "http://example.com/dataset.json",
"display_property": "foaf:homepage",
"display_snippet": "link.html"
},
{
"field_name": "version",
"label": "Version",
"validators": "ignore_missing unicode package_version_validator",
"form_placeholder": "1.0"
},
{
"field_name": "author",
"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": "maintainer",
"label": "Maintainer",
"form_placeholder": "Joe Bloggs",
"display_property": "dc:contributor"
},
{
"field_name": "maintainer_email",
"label": "Maintainer Email",
"form_placeholder": "[email protected]",
"display_property": "dc:contributor",
"display_snippet": "email.html",
"display_email_name_field": "maintainer"
}
],
"resource_fields": [
{
"field_name": "url",
"label": "URL",
"preset": "resource_url_upload"
},
{
"field_name": "name",
"label": "Name",
"form_placeholder": "eg. 2019 ANC Data"
},
{
"field_name": "description",
"label": "Description",
"form_snippet": "markdown.html",
"form_placeholder": "Some useful notes about the data"
},
{
"field_name": "format",
"label": "Format",
"preset": "resource_format_autocomplete"
}
]
}