@disclosureos/schema 2.0.0-beta.3 → 2.0.0-beta.4

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +78 -7
  3. package/dist/experimental/v2/index.d.ts +4425 -81
  4. package/dist/experimental/v2/index.js +7952 -334
  5. package/dist/experimental/v2/index.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/package.json +34 -6
  10. package/schema/enriched-observation.schema.json +16 -16
  11. package/schema/experimental/archival-case-presentation-0.1.0.schema.json +742 -0
  12. package/schema/experimental/case-presentation-0.1.0.schema.json +431 -0
  13. package/schema/experimental/context-case-presentation-0.1.0.schema.json +697 -0
  14. package/schema/experimental/lidar-point-cloud-profile-0.1.0.schema.json +416 -0
  15. package/schema/experimental/material-case-presentation-0.1.0.schema.json +802 -0
  16. package/schema/experimental/passive-sonar-profile-0.1.0.schema.json +238 -0
  17. package/schema/experimental/product-source-selection-0.1.0.schema.json +673 -0
  18. package/schema/experimental/radar-profile-0.1.0.schema.json +1232 -0
  19. package/schema/experimental/satellite-raster-profile-0.1.0.schema.json +406 -0
  20. package/schema/experimental/secondary-radar-profile-0.1.0.schema.json +154 -0
  21. package/schema/experimental/sonar-profile-0.1.0.schema.json +197 -0
  22. package/schema/experimental/steered-radar-profile-0.1.0.schema.json +214 -0
  23. package/schema/experimental/testimony-case-presentation-0.1.0.schema.json +682 -0
  24. package/schema/experimental/vocabulary-bindings-0.1.0.schema.json +167 -0
  25. package/schema/experimental/vocabulary-catalog-0.1.0.schema.json +155 -0
  26. package/schema/experimental/vocabulary-term-reference-0.1.0.schema.json +61 -0
@@ -0,0 +1,673 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "product_source_selection"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "id": {
14
+ "type": "string",
15
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
16
+ },
17
+ "observationId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
20
+ },
21
+ "layouts": {
22
+ "minItems": 1,
23
+ "type": "array",
24
+ "items": {
25
+ "anyOf": [
26
+ {
27
+ "type": "object",
28
+ "properties": {
29
+ "id": {
30
+ "type": "string",
31
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
32
+ },
33
+ "productRef": {
34
+ "type": "string",
35
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
36
+ },
37
+ "digest": {
38
+ "type": "object",
39
+ "properties": {
40
+ "algorithm": {
41
+ "type": "string",
42
+ "const": "sha256"
43
+ },
44
+ "value": {
45
+ "type": "string",
46
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
47
+ }
48
+ },
49
+ "required": [
50
+ "algorithm",
51
+ "value"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "byteLength": {
56
+ "type": "integer",
57
+ "minimum": 1,
58
+ "maximum": 9007199254740991
59
+ },
60
+ "mediaType": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "pattern": "\\S"
64
+ },
65
+ "kind": {
66
+ "type": "string",
67
+ "const": "binary_array"
68
+ },
69
+ "elementType": {
70
+ "type": "string",
71
+ "enum": [
72
+ "float32",
73
+ "float64",
74
+ "int16",
75
+ "uint16",
76
+ "uint8"
77
+ ]
78
+ },
79
+ "byteOrder": {
80
+ "type": "string",
81
+ "enum": [
82
+ "little",
83
+ "big"
84
+ ]
85
+ },
86
+ "order": {
87
+ "type": "string",
88
+ "const": "row_major"
89
+ },
90
+ "byteOffset": {
91
+ "type": "integer",
92
+ "minimum": 0,
93
+ "maximum": 9007199254740991
94
+ },
95
+ "axes": {
96
+ "minItems": 1,
97
+ "maxItems": 8,
98
+ "type": "array",
99
+ "items": {
100
+ "oneOf": [
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "kind": {
105
+ "type": "string",
106
+ "const": "index"
107
+ },
108
+ "name": {
109
+ "type": "string",
110
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
111
+ },
112
+ "length": {
113
+ "type": "integer",
114
+ "minimum": 1,
115
+ "maximum": 9007199254740991
116
+ },
117
+ "firstIndex": {
118
+ "type": "integer",
119
+ "minimum": 0,
120
+ "maximum": 9007199254740991
121
+ }
122
+ },
123
+ "required": [
124
+ "kind",
125
+ "name",
126
+ "length",
127
+ "firstIndex"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "kind": {
135
+ "type": "string",
136
+ "const": "regular"
137
+ },
138
+ "name": {
139
+ "type": "string",
140
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
141
+ },
142
+ "length": {
143
+ "type": "integer",
144
+ "minimum": 1,
145
+ "maximum": 9007199254740991
146
+ },
147
+ "origin": {
148
+ "type": "number"
149
+ },
150
+ "step": {
151
+ "type": "number",
152
+ "exclusiveMinimum": 0
153
+ },
154
+ "unit": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "pattern": "\\S"
158
+ }
159
+ },
160
+ "required": [
161
+ "kind",
162
+ "name",
163
+ "length",
164
+ "origin",
165
+ "step",
166
+ "unit"
167
+ ],
168
+ "additionalProperties": false
169
+ },
170
+ {
171
+ "type": "object",
172
+ "properties": {
173
+ "kind": {
174
+ "type": "string",
175
+ "const": "time"
176
+ },
177
+ "name": {
178
+ "type": "string",
179
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
180
+ },
181
+ "length": {
182
+ "type": "integer",
183
+ "minimum": 1,
184
+ "maximum": 9007199254740991
185
+ },
186
+ "start": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "pattern": "\\S"
190
+ },
191
+ "stepSeconds": {
192
+ "type": "object",
193
+ "properties": {
194
+ "numerator": {
195
+ "type": "integer",
196
+ "minimum": 1,
197
+ "maximum": 9007199254740991
198
+ },
199
+ "denominator": {
200
+ "type": "integer",
201
+ "minimum": 1,
202
+ "maximum": 9007199254740991
203
+ }
204
+ },
205
+ "required": [
206
+ "numerator",
207
+ "denominator"
208
+ ],
209
+ "additionalProperties": false
210
+ }
211
+ },
212
+ "required": [
213
+ "kind",
214
+ "name",
215
+ "length",
216
+ "start",
217
+ "stepSeconds"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ ]
222
+ }
223
+ },
224
+ "quantity": {
225
+ "type": "string",
226
+ "minLength": 1,
227
+ "pattern": "\\S"
228
+ },
229
+ "unit": {
230
+ "type": "string",
231
+ "minLength": 1,
232
+ "pattern": "\\S"
233
+ }
234
+ },
235
+ "required": [
236
+ "id",
237
+ "productRef",
238
+ "digest",
239
+ "byteLength",
240
+ "mediaType",
241
+ "kind",
242
+ "elementType",
243
+ "byteOrder",
244
+ "order",
245
+ "byteOffset",
246
+ "axes",
247
+ "quantity",
248
+ "unit"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "id": {
256
+ "type": "string",
257
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
258
+ },
259
+ "productRef": {
260
+ "type": "string",
261
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
262
+ },
263
+ "digest": {
264
+ "type": "object",
265
+ "properties": {
266
+ "algorithm": {
267
+ "type": "string",
268
+ "const": "sha256"
269
+ },
270
+ "value": {
271
+ "type": "string",
272
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
273
+ }
274
+ },
275
+ "required": [
276
+ "algorithm",
277
+ "value"
278
+ ],
279
+ "additionalProperties": false
280
+ },
281
+ "byteLength": {
282
+ "type": "integer",
283
+ "minimum": 1,
284
+ "maximum": 9007199254740991
285
+ },
286
+ "mediaType": {
287
+ "type": "string",
288
+ "minLength": 1,
289
+ "pattern": "\\S"
290
+ },
291
+ "kind": {
292
+ "type": "string",
293
+ "const": "csv_table"
294
+ },
295
+ "encoding": {
296
+ "type": "string",
297
+ "const": "utf-8"
298
+ },
299
+ "delimiter": {
300
+ "type": "string",
301
+ "const": ","
302
+ },
303
+ "header": {
304
+ "type": "boolean",
305
+ "const": true
306
+ },
307
+ "rowCount": {
308
+ "type": "integer",
309
+ "minimum": 1,
310
+ "maximum": 9007199254740991
311
+ },
312
+ "columns": {
313
+ "minItems": 1,
314
+ "type": "array",
315
+ "items": {
316
+ "type": "string",
317
+ "minLength": 1,
318
+ "pattern": "\\S"
319
+ }
320
+ },
321
+ "partition": {
322
+ "type": "object",
323
+ "properties": {
324
+ "column": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "pattern": "\\S"
328
+ },
329
+ "equals": {
330
+ "type": "string",
331
+ "minLength": 1,
332
+ "pattern": "\\S"
333
+ }
334
+ },
335
+ "required": [
336
+ "column",
337
+ "equals"
338
+ ],
339
+ "additionalProperties": false
340
+ },
341
+ "sample": {
342
+ "type": "object",
343
+ "properties": {
344
+ "valueColumn": {
345
+ "type": "string",
346
+ "minLength": 1,
347
+ "pattern": "\\S"
348
+ },
349
+ "unitColumn": {
350
+ "type": "string",
351
+ "minLength": 1,
352
+ "pattern": "\\S"
353
+ },
354
+ "quantityColumn": {
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "pattern": "\\S"
358
+ },
359
+ "timeColumn": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "pattern": "\\S"
363
+ }
364
+ },
365
+ "required": [
366
+ "valueColumn",
367
+ "unitColumn",
368
+ "quantityColumn",
369
+ "timeColumn"
370
+ ],
371
+ "additionalProperties": false
372
+ }
373
+ },
374
+ "required": [
375
+ "id",
376
+ "productRef",
377
+ "digest",
378
+ "byteLength",
379
+ "mediaType",
380
+ "kind",
381
+ "encoding",
382
+ "delimiter",
383
+ "header",
384
+ "rowCount",
385
+ "columns"
386
+ ],
387
+ "additionalProperties": false
388
+ },
389
+ {
390
+ "type": "object",
391
+ "properties": {
392
+ "id": {
393
+ "type": "string",
394
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
395
+ },
396
+ "productRef": {
397
+ "type": "string",
398
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
399
+ },
400
+ "digest": {
401
+ "type": "object",
402
+ "properties": {
403
+ "algorithm": {
404
+ "type": "string",
405
+ "const": "sha256"
406
+ },
407
+ "value": {
408
+ "type": "string",
409
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
410
+ }
411
+ },
412
+ "required": [
413
+ "algorithm",
414
+ "value"
415
+ ],
416
+ "additionalProperties": false
417
+ },
418
+ "byteLength": {
419
+ "type": "integer",
420
+ "minimum": 1,
421
+ "maximum": 9007199254740991
422
+ },
423
+ "mediaType": {
424
+ "type": "string",
425
+ "minLength": 1,
426
+ "pattern": "\\S"
427
+ },
428
+ "kind": {
429
+ "type": "string",
430
+ "const": "csv_table"
431
+ },
432
+ "encoding": {
433
+ "type": "string",
434
+ "const": "utf-8"
435
+ },
436
+ "delimiter": {
437
+ "type": "string",
438
+ "const": ","
439
+ },
440
+ "header": {
441
+ "type": "boolean",
442
+ "const": true
443
+ },
444
+ "rowCount": {
445
+ "type": "number",
446
+ "const": 0
447
+ },
448
+ "columns": {
449
+ "minItems": 1,
450
+ "type": "array",
451
+ "items": {
452
+ "type": "string",
453
+ "minLength": 1,
454
+ "pattern": "\\S"
455
+ }
456
+ },
457
+ "partition": {
458
+ "not": {}
459
+ },
460
+ "sample": {
461
+ "not": {}
462
+ }
463
+ },
464
+ "required": [
465
+ "id",
466
+ "productRef",
467
+ "digest",
468
+ "byteLength",
469
+ "mediaType",
470
+ "kind",
471
+ "encoding",
472
+ "delimiter",
473
+ "header",
474
+ "rowCount",
475
+ "columns"
476
+ ],
477
+ "additionalProperties": false
478
+ },
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "id": {
483
+ "type": "string",
484
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
485
+ },
486
+ "productRef": {
487
+ "type": "string",
488
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
489
+ },
490
+ "digest": {
491
+ "type": "object",
492
+ "properties": {
493
+ "algorithm": {
494
+ "type": "string",
495
+ "const": "sha256"
496
+ },
497
+ "value": {
498
+ "type": "string",
499
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
500
+ }
501
+ },
502
+ "required": [
503
+ "algorithm",
504
+ "value"
505
+ ],
506
+ "additionalProperties": false
507
+ },
508
+ "byteLength": {
509
+ "type": "integer",
510
+ "minimum": 1,
511
+ "maximum": 9007199254740991
512
+ },
513
+ "mediaType": {
514
+ "type": "string",
515
+ "minLength": 1,
516
+ "pattern": "\\S"
517
+ },
518
+ "kind": {
519
+ "type": "string",
520
+ "const": "video"
521
+ },
522
+ "frameCount": {
523
+ "type": "integer",
524
+ "minimum": 1,
525
+ "maximum": 9007199254740991
526
+ },
527
+ "framesPerSecond": {
528
+ "type": "object",
529
+ "properties": {
530
+ "numerator": {
531
+ "type": "integer",
532
+ "minimum": 1,
533
+ "maximum": 9007199254740991
534
+ },
535
+ "denominator": {
536
+ "type": "integer",
537
+ "minimum": 1,
538
+ "maximum": 9007199254740991
539
+ }
540
+ },
541
+ "required": [
542
+ "numerator",
543
+ "denominator"
544
+ ],
545
+ "additionalProperties": false
546
+ },
547
+ "start": {
548
+ "type": "string",
549
+ "minLength": 1,
550
+ "pattern": "\\S"
551
+ }
552
+ },
553
+ "required": [
554
+ "id",
555
+ "productRef",
556
+ "digest",
557
+ "byteLength",
558
+ "mediaType",
559
+ "kind",
560
+ "frameCount",
561
+ "framesPerSecond",
562
+ "start"
563
+ ],
564
+ "additionalProperties": false
565
+ }
566
+ ]
567
+ }
568
+ },
569
+ "selections": {
570
+ "minItems": 1,
571
+ "type": "array",
572
+ "items": {
573
+ "type": "object",
574
+ "properties": {
575
+ "id": {
576
+ "type": "string",
577
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
578
+ },
579
+ "layoutRef": {
580
+ "type": "string",
581
+ "pattern": "^layout:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
582
+ },
583
+ "selector": {
584
+ "oneOf": [
585
+ {
586
+ "type": "object",
587
+ "properties": {
588
+ "kind": {
589
+ "type": "string",
590
+ "const": "array_element"
591
+ },
592
+ "indices": {
593
+ "minItems": 1,
594
+ "maxItems": 8,
595
+ "type": "array",
596
+ "items": {
597
+ "type": "integer",
598
+ "minimum": 0,
599
+ "maximum": 9007199254740991
600
+ }
601
+ }
602
+ },
603
+ "required": [
604
+ "kind",
605
+ "indices"
606
+ ],
607
+ "additionalProperties": false
608
+ },
609
+ {
610
+ "type": "object",
611
+ "properties": {
612
+ "kind": {
613
+ "type": "string",
614
+ "const": "table_row"
615
+ },
616
+ "row": {
617
+ "type": "integer",
618
+ "minimum": 0,
619
+ "maximum": 9007199254740991
620
+ }
621
+ },
622
+ "required": [
623
+ "kind",
624
+ "row"
625
+ ],
626
+ "additionalProperties": false
627
+ },
628
+ {
629
+ "type": "object",
630
+ "properties": {
631
+ "kind": {
632
+ "type": "string",
633
+ "const": "video_frame"
634
+ },
635
+ "frame": {
636
+ "type": "integer",
637
+ "minimum": 0,
638
+ "maximum": 9007199254740991
639
+ }
640
+ },
641
+ "required": [
642
+ "kind",
643
+ "frame"
644
+ ],
645
+ "additionalProperties": false
646
+ }
647
+ ]
648
+ },
649
+ "measurementRef": {
650
+ "type": "string",
651
+ "pattern": "^measurement:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
652
+ }
653
+ },
654
+ "required": [
655
+ "id",
656
+ "layoutRef",
657
+ "selector"
658
+ ],
659
+ "additionalProperties": false
660
+ }
661
+ }
662
+ },
663
+ "required": [
664
+ "kind",
665
+ "schemaVersion",
666
+ "id",
667
+ "observationId",
668
+ "layouts",
669
+ "selections"
670
+ ],
671
+ "additionalProperties": false,
672
+ "$id": "urn:disclosureos:experimental:product-source-selection:0.1.0"
673
+ }