-
Notifications
You must be signed in to change notification settings - Fork 11
/
jsonschema_dataset.json
336 lines (335 loc) · 10.5 KB
/
jsonschema_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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://datalad.org/catalog.dataset.schema.json",
"title": "dataset",
"description": "A dataset in a DataLad Catalog",
"type": "object",
"properties": {
"type": {
"description": "The type of node",
"title": "Type",
"type": "string",
"pattern": "dataset"
},
"dataset_id": {
"description": "The dataset ID",
"title": "Dataset ID",
"type": "string"
},
"dataset_version": {
"description": "The dataset VERSION",
"title": "Dataset version",
"type": "string"
},
"name": {
"description": "The long name of the dataset",
"title": "Name",
"type": "string"
},
"short_name": {
"description": "The short name of the dataset",
"title": "Short name",
"type": "string"
},
"alias": {
"description": "An alias of the dataset, used for shortened URL access within the catalog",
"title": "Alias",
"type": "string"
},
"description": {
"description": "A 1-2 paragraph description of the dataset",
"title": "Description",
"type": ["array", "string"]
},
"doi": {
"description": "The dataset's digital object identifier",
"title": "DOI",
"type": "string"
},
"url": {
"description": "The location of the datalad dataset's annex",
"title": "DataLad URL",
"type": ["array", "string"],
"items": {
"type": "string"
}
},
"download_url": {
"description": "The URL at which the complete dataset can be downloaded directly, typically via HTTP protocol and without further access restrictions",
"title": "Download URL",
"type": ["array", "string"],
"items": {
"type": "string"
}
},
"homepage_url": {
"description": "A unique URL with content that describes the current dataset and which may provide further data access",
"title": "Homepage URL",
"type": ["array", "string"],
"items": {
"type": "string"
}
},
"license": {
"description": "The license under which the dataset is made available",
"type": "object",
"properties": {
"name": {
"description": "The license name",
"title": "Name",
"type": "string"
},
"url": {
"description": "A URL where a description of the license can be viewed",
"title": "URL",
"type": "string"
}
},
"additionalProperties": false,
"dependentSchemas": {
"name": {
"required": ["name"]
},
"url": {
"required": ["name"]
}
}
},
"authors": { "$ref": "https://datalad.org/catalog.authors.schema.json"},
"access_request_contact" : {
"description": "The contact details of the person/office from which to request access to the dataset content",
"title": "Access Request Contact",
"type": "object",
"properties": {
"givenName": {
"description": "The author's given name, such as 'John'",
"title": "Given name",
"type": "string"
},
"familyName": {
"description": "The author's last/family name, such as 'Doe'",
"title": "Family name",
"type": "string"
},
"name": {
"description": "A concatenation of the honorificSuffix, givenName and familyName properties, such as 'Dr. John Doe'",
"title": "Name",
"type": "string"
},
"email": {
"description": "Email address of the author, such as [email protected]",
"title": "Email",
"type": "string",
"format": "email"
},
"honorificSuffix": {
"description": "Title of the author, such as 'Dr.'",
"title": "Honorific suffix",
"type": "string"
},
"identifiers": {
"description": "Identifiers for the person",
"title": "Identifiers",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Type of identifier, such as 'ORCID'",
"title": "Type",
"type": "string"
},
"identifier": {
"description": "The actual identifier, such as the ORCID ID '0000-1212-5566'",
"title": "Identifier",
"type": "string"
}
}
}
}
},
"required": ["givenName", "familyName", "email"]
},
"access_request_url": {
"type": "string",
"description": "The url of the online location from which to request access to the dataset content",
"title": "Access Request URL",
"format": "uri"
},
"keywords": {
"description": "Tags or keywords describing the dataset",
"title": "Keywords",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"funding": {
"description": "Sources of funding for the dataset",
"title": "Funding",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the funding source, such as a funder or grant scheme",
"title": "Name",
"type": "string"
},
"identifier": {
"description": "Identifier of the fund, such as a grant number",
"title": "Identifier",
"type": "string"
},
"description": {
"description": "Free form description of grant or funding",
"title": "Description",
"type": "string"
}
},
"required": []
},
"uniqueItems": true
},
"publications": {
"description": "Publications related to the dataset",
"title": "Publications",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Type of publication, such as a scholarly article, book, blog post",
"title": "Type",
"type": "string"
},
"title": {
"description": "Title of the publication",
"title": "Title",
"type": "string"
},
"doi": {
"description": "The publication's digital object identifier",
"title": "DOI",
"type": "string"
},
"datePublished": {
"description": "The publication date year",
"title": "Date published",
"type": ["number", "string"]
},
"publicationOutlet": {
"description": "The publication outlet / venue, such as the journal, publisher name, or news outlet",
"title": "Publication outlet",
"type": "string"
},
"authors": { "$ref": "https://datalad.org/catalog.authors.schema.json"}
},
"required": ["title", "doi", "authors"]
},
"uniqueItems": true
},
"subdatasets": {
"description": "Subdatasets of the current dataset",
"title": "Subdatasets",
"type": "array",
"items": {
"type": "object",
"properties": {
"dataset_id": {
"description": "The subdataset ID",
"title": "Dataset ID",
"type": "string"
},
"dataset_version": {
"description": "The subdataset VERSION",
"title": "Dataset version",
"type": "string"
},
"dataset_path": {
"description": "The subdataset PATH relative to its parent",
"title": "Dataset path",
"type": "string"
}
},
"required": ["dataset_id", "dataset_version", "dataset_path"]
},
"uniqueItems": true
},
"metadata_sources": {"$ref": "https://datalad.org/catalog.metadata_sources.schema.json"},
"additional_display": {
"description": "Additional items to display in tabs on dataset page",
"title": "Additional display",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the section that will appear as the tab name",
"title": "Name",
"type": "string"
},
"content": {
"description": "The content that will appear in the tab when opened, specified as key-value pairs",
"title": "Content",
"type": "object"
},
"icon": {
"description": "An icon from the Font Awesome Free collection (v6.1.1), e.g. 'fas fa-database', that will be displayed in the tab heading",
"title": "icon",
"type": "string"
}
},
"required": ["name", "content"]
},
"uniqueItems": true
},
"top_display": {
"description": "Additional items to display at the top of the dataset page (along with keywords, description, etc)",
"title": "Top display",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the item that will appear as part of the top display",
"title": "Name",
"type": "string"
},
"value": {
"description": "Value of the item that will appear as part of the top display",
"title": "Value",
"type": ["number", "string"]
}
},
"required": ["name", "value"]
},
"uniqueItems": true,
"maxItems": 5
},
"notebooks": {
"description": "Jupyter notebooks that will be linked to from the 'Explore with Binder' button and will typically be used to demonstrate the use of the dataset",
"title": "Jupyter notebooks",
"type": "array",
"items": {
"type": "object",
"properties": {
"git_repo_url": {
"description": "The URL to a publicly accessible git repository containing the notebook",
"title": "Repo URL",
"type": "string"
},
"notebook_path": {
"description": "The path to the notebook, relative to the repository root, including the filename and extension",
"title": "Notebook path",
"type": "string"
}
},
"required": ["git_repo_url", "notebook_path"]
},
"uniqueItems": true
}
},
"required": [ "type", "dataset_id", "dataset_version", "metadata_sources"]
}