-
Notifications
You must be signed in to change notification settings - Fork 7
/
dataset.json
238 lines (238 loc) · 6.35 KB
/
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
{
"id": "https://www.elixir-europe.org/excelerate/WP2/json-schemas/0.4/Dataset",
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
"title": "Dataset concept (ELIXIR-EXCELERATE WP2 Benchmarking schemas)",
"type": "object",
"properties": {
"_id": {
"title": "The unique id of the dataset, according to the rules",
"type": "string",
"pattern": "^OEBD[0-9]{3}[A-Z0-9]{7}$"
},
"_schema": {
"title": "The JSON schema absolute URI. It must match the value of 'id' in the JSON schema",
"type": "string",
"format": "uri",
"enum": [ "https://www.elixir-europe.org/excelerate/WP2/json-schemas/0.4/Dataset" ]
},
"orig_id": {
"title": "When the community provided a dataset which has an internal id used by the community",
"type": "string",
"minLength": 1
},
"community_id": {
"title": "The community where this dataset was generated or used",
"type": "string",
"foreign_keys": [
{
"schema_id": "Community",
"members": [ "." ]
}
]
},
"challenge_id": {
"title": "The challenge where this dataset was generated or used",
"type": "array",
"minLength": 1,
"items": {
"type": "string",
"foreign_keys": [
{
"schema_id": "Challenge",
"members": [ "." ]
}
],
"minLength": 1
}
},
"visibility": {
"title": "The visibility of this dataset, which must be acknowledged by the APIs",
"type": "string",
"enum": [ "public", "community", "challenge", "participant" ]
},
"name": {
"title": "Short dataset name",
"minLength": 1,
"type": "string"
},
"version": {
"title": "Version (or relelase date) of the dataset",
"minLength": 1,
"type": "string"
},
"description": {
"title": "Long dataset description",
"type": "string"
},
"dates": {
"title": "Relevant dates for this dataset",
"type": "object",
"properties": {
"creation": {
"title": "Creation date of the dataset",
"type": "string",
"format": "date-time"
},
"modification": {
"title": "Last modification date of the dataset",
"type": "string",
"format": "date-time"
},
"public": {
"title": "The date when this dataset becomes public",
"type": "string",
"format": "date-time"
}
},
"required": ["creation","modification"]
},
"type": {
"title": "Type of dataset",
"type": "string",
"mingLength": 1,
"enum": [ "public_reference", "metrics_reference", "input", "participant", "assessment", "challenge", "other" ]
},
"datalink": {
"title": "The link to reach the dataset",
"type": "object",
"properties": {
"uri": {
"title": "Either inline, encoded data URI, or download link to the dataset itself, or to a Metalink, a MD5/SHA1 sums file, or an official CURIE",
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"inline_data": {
"title": "Inline data in JSON format",
"type": "object",
"minProperties": 1,
"additionalProperties": true
},
"schema_url": {
"title": "The optional URL to the JSON Schema which validates the inline data",
"type": "string",
"format": "url"
}
},
"required": [ "inline_data" ]
}
]
},
"attrs": {
"title": "Attributes describing the datalink: whether it is inline (i.e. a data URI); a CURIE; whether it is compressed, or an archive (tar, zip, rar), a metalink o a standard sums (MD5, SHA1) file",
"type": "array",
"minLength": 1,
"items": {
"type": "string",
"enum": [ "inline", "curie","compressed", "archive", "metalink", "sums" ]
}
},
"validation_date": {
"title": "Last validation date of the datalink",
"type": "string",
"format": "date-time"
},
"status": {
"title": "Last validation status (unreachable content, missing content(404), interrupted while validating, corrupted (checksums, not all the contents available, etc...), ok)",
"type": "string",
"enum": [ "unreachable", "missing", "interrupted", "corrupted", "ok" ]
}
},
"required": [ "uri", "attrs" ]
},
"dataset_contact_ids": {
"title": "The contact id(s) of the depositor(s)/creator(s) of this dataset",
"type": "array",
"minLength": 1,
"items": {
"type": "string",
"foreign_keys": [
{
"schema_id": "Contact",
"members": [ "." ]
}
],
"minLength": 1
}
},
"depends_on": {
"title": "The causal, direct dependencies of this dataset on a tool and other datasets, if available",
"type": "object",
"properties": {
"metrics_id": {
"title": "The id of the metrics tied to the tool id",
"type": "string",
"foreign_keys": [
{
"schema_id": "Metrics",
"members": [ "." ]
}
],
"minLength": 1
},
"tool_id": {
"title": "The id of the tool which generated this dataset",
"type": "string",
"foreign_keys": [
{
"schema_id": "Tool",
"members": [ "." ]
}
],
"minLength": 1
},
"rel_dataset_ids": {
"type": "array",
"minLength": 1,
"items": {
"type": "object",
"properties": {
"dataset_id": {
"title": "The id of a dataset which was used to generate this new dataset",
"type": "string",
"foreign_keys": [
{
"schema_id": "Dataset",
"members": [ "." ]
}
],
"minLength": 1
},
"role": {
"title": "The role of the referenced dataset generating the current one (used to generate the current dataset, superseded by the generated dataset, ....)",
"type": "string",
"enum": [ "dependency", "superseded", "report" ],
"default": "dependency"
}
},
"required": [ "dataset_id" ]
}
}
},
"required": [ "rel_dataset_ids" ]
},
"references": {
"title": "The reference id(s) of this dataset (if any)",
"type": "array",
"items": {
"type": "string",
"foreign_keys": [
{
"schema_id": "Reference",
"members": [ "." ]
}
],
"minLength": 1
}
}
},
"additionalProperties": true,
"required": ["_id","_schema","community_id","name","version","type","dates","datalink","dataset_contact_ids"],
"primary_key": ["_id"],
"dependencies": {}
}