@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,406 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "satellite_raster_profile"
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
+ "contextId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
24
+ },
25
+ "sourceSelectionId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
28
+ },
29
+ "acquisitionRef": {
30
+ "type": "string",
31
+ "pattern": "^acquisition:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
32
+ },
33
+ "channelId": {
34
+ "type": "string",
35
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
36
+ },
37
+ "acquisitionProducts": {
38
+ "type": "object",
39
+ "properties": {
40
+ "reflectance": {
41
+ "type": "string",
42
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
43
+ },
44
+ "quality": {
45
+ "type": "string",
46
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
47
+ }
48
+ },
49
+ "required": [
50
+ "reflectance",
51
+ "quality"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "dataOrigin": {
56
+ "type": "string",
57
+ "enum": [
58
+ "synthetic",
59
+ "instrument"
60
+ ]
61
+ },
62
+ "mode": {
63
+ "type": "string",
64
+ "const": "north_up_multispectral_reflectance"
65
+ },
66
+ "grid": {
67
+ "type": "object",
68
+ "properties": {
69
+ "rows": {
70
+ "type": "integer",
71
+ "exclusiveMinimum": 0,
72
+ "maximum": 4096
73
+ },
74
+ "columns": {
75
+ "type": "integer",
76
+ "exclusiveMinimum": 0,
77
+ "maximum": 4096
78
+ },
79
+ "crs": {
80
+ "type": "object",
81
+ "properties": {
82
+ "kind": {
83
+ "type": "string",
84
+ "const": "wgs84_utm"
85
+ },
86
+ "epsg": {
87
+ "type": "string",
88
+ "pattern": "^EPSG:32[67][0-6][0-9](?![\\s\\S])"
89
+ },
90
+ "zone": {
91
+ "type": "integer",
92
+ "minimum": 1,
93
+ "maximum": 60
94
+ },
95
+ "hemisphere": {
96
+ "type": "string",
97
+ "enum": [
98
+ "north",
99
+ "south"
100
+ ]
101
+ },
102
+ "unit": {
103
+ "type": "string",
104
+ "const": "m"
105
+ }
106
+ },
107
+ "required": [
108
+ "kind",
109
+ "epsg",
110
+ "zone",
111
+ "hemisphere",
112
+ "unit"
113
+ ],
114
+ "additionalProperties": false
115
+ },
116
+ "transform": {
117
+ "type": "array",
118
+ "prefixItems": [
119
+ {
120
+ "type": "number",
121
+ "minimum": -1000000000,
122
+ "maximum": 1000000000
123
+ },
124
+ {
125
+ "type": "number",
126
+ "exclusiveMinimum": 0,
127
+ "maximum": 100000
128
+ },
129
+ {
130
+ "type": "number",
131
+ "const": 0
132
+ },
133
+ {
134
+ "type": "number",
135
+ "minimum": -1000000000,
136
+ "maximum": 1000000000
137
+ },
138
+ {
139
+ "type": "number",
140
+ "const": 0
141
+ },
142
+ {
143
+ "type": "number",
144
+ "minimum": -100000,
145
+ "exclusiveMaximum": 0
146
+ }
147
+ ],
148
+ "minItems": 6,
149
+ "maxItems": 6
150
+ },
151
+ "pixelInterpretation": {
152
+ "type": "string",
153
+ "const": "area"
154
+ },
155
+ "registration": {
156
+ "type": "string",
157
+ "enum": [
158
+ "authored_grid_not_surveyed",
159
+ "source_declared_not_verified"
160
+ ]
161
+ }
162
+ },
163
+ "required": [
164
+ "rows",
165
+ "columns",
166
+ "crs",
167
+ "transform",
168
+ "pixelInterpretation",
169
+ "registration"
170
+ ],
171
+ "additionalProperties": false
172
+ },
173
+ "bands": {
174
+ "minItems": 2,
175
+ "maxItems": 16,
176
+ "type": "array",
177
+ "items": {
178
+ "type": "object",
179
+ "properties": {
180
+ "id": {
181
+ "type": "string",
182
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
183
+ },
184
+ "label": {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "maxLength": 100
188
+ },
189
+ "centerWavelengthNm": {
190
+ "type": "number",
191
+ "exclusiveMinimum": 0,
192
+ "maximum": 1000000
193
+ },
194
+ "wavelengthMeaning": {
195
+ "type": "string",
196
+ "const": "nominal_center_not_response_function"
197
+ },
198
+ "scale": {
199
+ "type": "number",
200
+ "exclusiveMinimum": 0,
201
+ "maximum": 100
202
+ },
203
+ "offset": {
204
+ "type": "number",
205
+ "minimum": -100,
206
+ "maximum": 100
207
+ },
208
+ "nodata": {
209
+ "type": "integer",
210
+ "minimum": 0,
211
+ "maximum": 65535
212
+ },
213
+ "validRange": {
214
+ "type": "array",
215
+ "prefixItems": [
216
+ {
217
+ "type": "number",
218
+ "minimum": -100,
219
+ "maximum": 100
220
+ },
221
+ {
222
+ "type": "number",
223
+ "minimum": -100,
224
+ "maximum": 100
225
+ }
226
+ ],
227
+ "minItems": 2,
228
+ "maxItems": 2
229
+ }
230
+ },
231
+ "required": [
232
+ "id",
233
+ "label",
234
+ "centerWavelengthNm",
235
+ "wavelengthMeaning",
236
+ "scale",
237
+ "offset",
238
+ "nodata",
239
+ "validRange"
240
+ ],
241
+ "additionalProperties": false
242
+ }
243
+ },
244
+ "radiometry": {
245
+ "type": "object",
246
+ "properties": {
247
+ "quantity": {
248
+ "type": "string",
249
+ "const": "surface_reflectance"
250
+ },
251
+ "unit": {
252
+ "type": "string",
253
+ "const": "1"
254
+ },
255
+ "formula": {
256
+ "type": "string",
257
+ "const": "dn_times_scale_plus_offset"
258
+ },
259
+ "calibration": {
260
+ "type": "string",
261
+ "const": "not_verified"
262
+ }
263
+ },
264
+ "required": [
265
+ "quantity",
266
+ "unit",
267
+ "formula",
268
+ "calibration"
269
+ ],
270
+ "additionalProperties": false
271
+ },
272
+ "quality": {
273
+ "type": "object",
274
+ "properties": {
275
+ "authority": {
276
+ "type": "string",
277
+ "enum": [
278
+ "authored_annotations",
279
+ "source_annotations"
280
+ ]
281
+ },
282
+ "method": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "maxLength": 4000
286
+ },
287
+ "codes": {
288
+ "type": "object",
289
+ "properties": {
290
+ "clear": {
291
+ "type": "number",
292
+ "const": 0
293
+ },
294
+ "cloud": {
295
+ "type": "number",
296
+ "const": 1
297
+ },
298
+ "shadow": {
299
+ "type": "number",
300
+ "const": 2
301
+ },
302
+ "nodata": {
303
+ "type": "number",
304
+ "const": 3
305
+ }
306
+ },
307
+ "required": [
308
+ "clear",
309
+ "cloud",
310
+ "shadow",
311
+ "nodata"
312
+ ],
313
+ "additionalProperties": false
314
+ },
315
+ "scope": {
316
+ "type": "string",
317
+ "const": "whole_pixel"
318
+ },
319
+ "interpretation": {
320
+ "type": "string",
321
+ "const": "source_annotation_not_accuracy_certification"
322
+ }
323
+ },
324
+ "required": [
325
+ "authority",
326
+ "method",
327
+ "codes",
328
+ "scope",
329
+ "interpretation"
330
+ ],
331
+ "additionalProperties": false
332
+ },
333
+ "vegetationIndex": {
334
+ "type": "object",
335
+ "properties": {
336
+ "redBandId": {
337
+ "type": "string",
338
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
339
+ },
340
+ "nearInfraredBandId": {
341
+ "type": "string",
342
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
343
+ },
344
+ "method": {
345
+ "type": "string",
346
+ "const": "scaled_nir_minus_red_over_sum"
347
+ },
348
+ "qualityPolicy": {
349
+ "type": "string",
350
+ "const": "clear_nonnegative_nonzero_sum_only"
351
+ },
352
+ "interpretation": {
353
+ "type": "string",
354
+ "const": "spectral_index_not_land_cover_classification"
355
+ }
356
+ },
357
+ "required": [
358
+ "redBandId",
359
+ "nearInfraredBandId",
360
+ "method",
361
+ "qualityPolicy",
362
+ "interpretation"
363
+ ],
364
+ "additionalProperties": false
365
+ },
366
+ "products": {
367
+ "type": "object",
368
+ "properties": {
369
+ "reflectance": {
370
+ "type": "string",
371
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
372
+ },
373
+ "quality": {
374
+ "type": "string",
375
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
376
+ }
377
+ },
378
+ "required": [
379
+ "reflectance",
380
+ "quality"
381
+ ],
382
+ "additionalProperties": false
383
+ }
384
+ },
385
+ "required": [
386
+ "kind",
387
+ "schemaVersion",
388
+ "id",
389
+ "observationId",
390
+ "contextId",
391
+ "sourceSelectionId",
392
+ "acquisitionRef",
393
+ "channelId",
394
+ "acquisitionProducts",
395
+ "dataOrigin",
396
+ "mode",
397
+ "grid",
398
+ "bands",
399
+ "radiometry",
400
+ "quality",
401
+ "vegetationIndex",
402
+ "products"
403
+ ],
404
+ "additionalProperties": false,
405
+ "$id": "urn:disclosureos:experimental:satellite-raster-profile:0.1.0"
406
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "0.1.0"
8
+ },
9
+ "id": {
10
+ "type": "string",
11
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
12
+ },
13
+ "observationId": {
14
+ "type": "string",
15
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
16
+ },
17
+ "contextId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
20
+ },
21
+ "sourceSelectionId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
24
+ },
25
+ "acquisitionRef": {
26
+ "type": "string",
27
+ "pattern": "^acquisition:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
28
+ },
29
+ "acquisitionProductRef": {
30
+ "type": "string",
31
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
32
+ },
33
+ "channelId": {
34
+ "type": "string",
35
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
36
+ },
37
+ "frameRef": {
38
+ "type": "string",
39
+ "pattern": "^frame:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
40
+ },
41
+ "origin": {
42
+ "type": "object",
43
+ "properties": {
44
+ "eastM": {
45
+ "type": "number"
46
+ },
47
+ "northM": {
48
+ "type": "number"
49
+ }
50
+ },
51
+ "required": [
52
+ "eastM",
53
+ "northM"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ "timeOrigin": {
58
+ "type": "string",
59
+ "format": "date-time",
60
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
61
+ },
62
+ "dataOrigin": {
63
+ "type": "string",
64
+ "enum": [
65
+ "synthetic",
66
+ "instrument"
67
+ ]
68
+ },
69
+ "bearingConvention": {
70
+ "type": "string",
71
+ "const": "clockwise_from_north"
72
+ },
73
+ "kind": {
74
+ "type": "string",
75
+ "const": "secondary_radar_profile"
76
+ },
77
+ "mode": {
78
+ "type": "string",
79
+ "const": "mode_a_mode_c"
80
+ },
81
+ "rangeConvention": {
82
+ "type": "string",
83
+ "const": "slant_range"
84
+ },
85
+ "positionRepresentation": {
86
+ "type": "string",
87
+ "const": "polar_only"
88
+ },
89
+ "altitudeConvention": {
90
+ "type": "string",
91
+ "const": "pressure_altitude_1013_25_hpa"
92
+ },
93
+ "identitySemantics": {
94
+ "type": "string",
95
+ "const": "reported_code_not_verified_identity"
96
+ },
97
+ "processingAvailability": {
98
+ "type": "string",
99
+ "const": "explicit_available_time"
100
+ },
101
+ "products": {
102
+ "type": "object",
103
+ "properties": {
104
+ "interrogations": {
105
+ "type": "string",
106
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
107
+ },
108
+ "decodedReplies": {
109
+ "type": "string",
110
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
111
+ },
112
+ "reports": {
113
+ "type": "string",
114
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
115
+ },
116
+ "truth": {
117
+ "type": "string",
118
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
119
+ }
120
+ },
121
+ "required": [
122
+ "interrogations",
123
+ "decodedReplies",
124
+ "reports"
125
+ ],
126
+ "additionalProperties": false
127
+ }
128
+ },
129
+ "required": [
130
+ "schemaVersion",
131
+ "id",
132
+ "observationId",
133
+ "contextId",
134
+ "sourceSelectionId",
135
+ "acquisitionRef",
136
+ "acquisitionProductRef",
137
+ "channelId",
138
+ "frameRef",
139
+ "origin",
140
+ "timeOrigin",
141
+ "dataOrigin",
142
+ "bearingConvention",
143
+ "kind",
144
+ "mode",
145
+ "rangeConvention",
146
+ "positionRepresentation",
147
+ "altitudeConvention",
148
+ "identitySemantics",
149
+ "processingAvailability",
150
+ "products"
151
+ ],
152
+ "additionalProperties": false,
153
+ "$id": "urn:disclosureos:experimental:secondary-radar-profile:0.1.0"
154
+ }