cedarkit-query 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,369 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:cedarkit:query:catalog:v1",
4
+ "title": "CedarKit catalog v1",
5
+ "type": "object",
6
+ "properties": {
7
+ "api_version": {
8
+ "const": "cedarkit.catalog/v1"
9
+ },
10
+ "id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
14
+ },
15
+ "version": {
16
+ "type": "string",
17
+ "pattern": "^[1-9][0-9]*$"
18
+ },
19
+ "datasets": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "id": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
28
+ },
29
+ "aliases": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
35
+ },
36
+ "minItems": 0,
37
+ "uniqueItems": true
38
+ },
39
+ "member_roles": {
40
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/member_roles"
41
+ },
42
+ "execution": {
43
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/execution"
44
+ },
45
+ "local_layout": {
46
+ "type": "array",
47
+ "minItems": 1,
48
+ "items": {
49
+ "type": "string",
50
+ "minLength": 1
51
+ }
52
+ },
53
+ "products": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "properties": {
58
+ "id": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
62
+ },
63
+ "version": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
67
+ },
68
+ "scope": {
69
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/query"
70
+ },
71
+ "provides": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/query"
75
+ },
76
+ "minItems": 0
77
+ },
78
+ "populations": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "object",
82
+ "properties": {
83
+ "id": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
87
+ },
88
+ "members": {
89
+ "oneOf": [
90
+ {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "integer",
94
+ "minimum": 0
95
+ },
96
+ "minItems": 1,
97
+ "uniqueItems": true
98
+ },
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "range": {
103
+ "type": "object",
104
+ "properties": {
105
+ "start": {
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "end": {
110
+ "type": "integer",
111
+ "minimum": 0
112
+ },
113
+ "every": {
114
+ "type": "integer",
115
+ "minimum": 1
116
+ }
117
+ },
118
+ "required": [
119
+ "start",
120
+ "end",
121
+ "every"
122
+ ],
123
+ "additionalProperties": false
124
+ }
125
+ },
126
+ "required": [
127
+ "range"
128
+ ],
129
+ "additionalProperties": false
130
+ }
131
+ ]
132
+ },
133
+ "missing": {
134
+ "oneOf": [
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "policy": {
139
+ "const": "require_all"
140
+ }
141
+ },
142
+ "required": [
143
+ "policy"
144
+ ],
145
+ "additionalProperties": false
146
+ },
147
+ {
148
+ "type": "object",
149
+ "properties": {
150
+ "policy": {
151
+ "const": "use_available"
152
+ },
153
+ "min_members": {
154
+ "type": "integer",
155
+ "minimum": 1
156
+ }
157
+ },
158
+ "required": [
159
+ "policy",
160
+ "min_members"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ ]
165
+ }
166
+ },
167
+ "required": [
168
+ "id",
169
+ "members",
170
+ "missing"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ "minItems": 0
175
+ },
176
+ "methods": {
177
+ "type": "array",
178
+ "items": {
179
+ "type": "object",
180
+ "properties": {
181
+ "parameter_id": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
185
+ },
186
+ "method": {
187
+ "oneOf": [
188
+ {
189
+ "type": "object",
190
+ "properties": {
191
+ "weighting": {
192
+ "const": "equal"
193
+ },
194
+ "ddof": {
195
+ "enum": [
196
+ 0,
197
+ 1
198
+ ]
199
+ }
200
+ },
201
+ "required": [],
202
+ "additionalProperties": false,
203
+ "minProperties": 1
204
+ },
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "kind": {
209
+ "enum": [
210
+ "sample_mean",
211
+ "interval_weighted_mean",
212
+ "member_fraction",
213
+ "empirical_inverse_cdf"
214
+ ]
215
+ },
216
+ "weighting": {
217
+ "const": "equal"
218
+ },
219
+ "denominator": {
220
+ "enum": [
221
+ "expected_members",
222
+ "valid_members"
223
+ ]
224
+ }
225
+ },
226
+ "required": [
227
+ "kind"
228
+ ],
229
+ "additionalProperties": false
230
+ }
231
+ ]
232
+ }
233
+ },
234
+ "required": [
235
+ "parameter_id",
236
+ "method"
237
+ ],
238
+ "additionalProperties": false
239
+ },
240
+ "minItems": 0
241
+ },
242
+ "sources": {
243
+ "type": "array",
244
+ "items": {
245
+ "oneOf": [
246
+ {
247
+ "type": "object",
248
+ "properties": {
249
+ "id": {
250
+ "type": "string",
251
+ "minLength": 1,
252
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
253
+ },
254
+ "kind": {
255
+ "enum": [
256
+ "file",
257
+ "local"
258
+ ]
259
+ }
260
+ },
261
+ "required": [
262
+ "id",
263
+ "kind"
264
+ ],
265
+ "additionalProperties": false
266
+ },
267
+ {
268
+ "type": "object",
269
+ "properties": {
270
+ "id": {
271
+ "type": "string",
272
+ "minLength": 1,
273
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
274
+ },
275
+ "kind": {
276
+ "const": "cmadaas"
277
+ },
278
+ "data_code": {
279
+ "type": "string",
280
+ "minLength": 1,
281
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
282
+ },
283
+ "interface_contract": {
284
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/contract"
285
+ },
286
+ "time_zone": {
287
+ "type": "string",
288
+ "minLength": 1,
289
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
290
+ }
291
+ },
292
+ "required": [
293
+ "id",
294
+ "kind",
295
+ "data_code",
296
+ "interface_contract",
297
+ "time_zone"
298
+ ],
299
+ "additionalProperties": false
300
+ }
301
+ ]
302
+ },
303
+ "minItems": 1
304
+ },
305
+ "evidence": {
306
+ "type": "array",
307
+ "items": {
308
+ "type": "string",
309
+ "minLength": 1,
310
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$"
311
+ },
312
+ "minItems": 0,
313
+ "uniqueItems": true
314
+ },
315
+ "expected_domain": {
316
+ "type": "array",
317
+ "items": {
318
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/query"
319
+ },
320
+ "minItems": 1
321
+ }
322
+ },
323
+ "required": [
324
+ "id",
325
+ "version",
326
+ "scope",
327
+ "provides",
328
+ "populations",
329
+ "methods",
330
+ "sources",
331
+ "evidence"
332
+ ],
333
+ "additionalProperties": false
334
+ },
335
+ "minItems": 0
336
+ },
337
+ "mappings": {
338
+ "type": "object",
339
+ "properties": {
340
+ "grib2": {
341
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/resource_ref"
342
+ },
343
+ "cmadaas": {
344
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/resource_ref"
345
+ }
346
+ },
347
+ "required": [],
348
+ "additionalProperties": false
349
+ },
350
+ "parameter_registry": {
351
+ "$ref": "urn:cedarkit:query:common:v1#/$defs/resource_ref"
352
+ }
353
+ },
354
+ "required": [
355
+ "id"
356
+ ],
357
+ "additionalProperties": false
358
+ },
359
+ "minItems": 0
360
+ }
361
+ },
362
+ "required": [
363
+ "api_version",
364
+ "id",
365
+ "version",
366
+ "datasets"
367
+ ],
368
+ "additionalProperties": false
369
+ }