-
Notifications
You must be signed in to change notification settings - Fork 3
/
fws-geo-schema.json
605 lines (603 loc) · 25.1 KB
/
fws-geo-schema.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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "USFWS Basic Geospatial Schema",
"description": "Minimum required fields and terms for metadata written for USFWS geospatial products.",
"$id": "fws-gis-product-schema.json",
"version": "1.0.0",
"properties": {
"metadata": {
"properties": {
"resourceInfo": {
"properties": {
"resourceType": {
"items": {
"properties": {
"type": {
"not": {
"enum": [
"project"
]
},
"errorMessage": {
"not": "Resource type for products must not be 'project' in the 'Resource Types' section under the 'Main' tab. For projects, use the custom profile for USFWS Discovery Projects."
}
}
}
}
},
"pointOfContact": {
"allOf": [
{
"contains": {
"properties": {
"role": {
"const": "pointOfContact",
"errorMessage": {
"const": "The 'Point of Contact' section under the 'Main' tab must have at least one Data Steward listed with the role 'pointOfContact'."
}
}
}
}
}
],
"items": {
"properties": {
"role": {},
"party": {}
},
"required": [
"role",
"party"
],
"errorMessage": {
"role": "Project data management personnel must be provided in the 'Point of Contact' section under the 'Main' tab. A role that must be included is the Data Steward (pointOfContact).",
"party": "At least one person must be assigned to each role in the 'Point of Contact' section under the 'Main' tab."
}
}
},
"citation": {
"properties": {
"title": {},
"date": {
"items": {
"properties": {
"date": {},
"dateType": {}
},
"required": [
"date",
"dateType"
],
"errorMessage": {
"required": {
"date": "The lastUpdate, lastReviewed, publication, and distribution dates must be provided in the 'Citation' section under the 'Main' tab.",
"dateType": "A type must be provided for dates in the 'Citation' section under the 'Main' tab."
}
}
},
"allOf": [
{
"contains": {
"properties": {
"dateType": {
"const": "publication",
"errorMessage": {
"const": "At least one date with the type 'publication' must be provided in the 'Citation' section under the 'Main' tab."
}
}
}
}
},
{
"contains": {
"properties": {
"dateType": {
"const": "distribution",
"errorMessage": {
"const": "At least one date with the type 'distribution' must be provided in the 'Citation' section under the 'Main' tab."
}
}
}
}
},
{
"contains": {
"properties": {
"dateType": {
"const": "lastUpdate",
"errorMessage": {
"const": "At least one date with the type 'lastUpdate' must be provided in the 'Citation' section under the 'Main' tab."
}
}
}
}
},
{
"contains": {
"properties": {
"dateType": {
"const": "lastRevision",
"errorMessage": {
"const": "At least one date with the type 'lastRevision' must be provided in the 'Citation' section under the 'Main' tab."
}
}
}
}
}
],
"errorMessage": {
"allOf": "Distribution, publication, update, and revision dates are required in the 'Citation' section under the 'Main' tab."
}
},
"responsibleParty": {
"allOf": [
{
"contains": {
"properties": {
"role": {
"const": "publisher",
"errorMessage": {
"const": "A responsible party with the role of 'publisher' must be listed in the 'Citation' section under the 'Main' tab."
}
}
}
}
}
]
},
"identifier": {
"items": {
"properties": {
"identifier": {},
"namespace": {}
},
"required": [
"identifier",
"namespace"
],
"errorMessage": {
"required": {
"identifier": "Provide an identifier (e.g. Digital Object Identifier (DOI), ISBN, UUID) for the product in the 'Citation' section under the 'Main' tab.",
"namespace": "Provide the context (i.e. namespace) for the product identifier in the 'Citation' section under the 'Main' tab."
}
}
}
}
},
"required": [
"title",
"date",
"responsibleParty",
"identifier"
],
"errorMessage": {
"required": {
"title": "A short, descriptive product title must be provided in the 'Basic Information' section under the 'Main' tab. Product titles should be uniquely identifiable.",
"date": "At least one date (e.g. acquisition, creation, revision) must be provided in the 'Citation' section under the 'Main' tab.",
"responsibleParty": "At least one Responsible Party must be provided in the 'Citation' section under the 'Main' tab.",
"identifier": "Provide an identifier (e.g. Digital Object Identifier (DOI), ISBN, UUID) for the product in the 'Citation' section under the 'Main' tab."
}
}
},
"abstract": {},
"purpose": {},
"timePeriod": {
"oneOf": [
{
"properties": {
"startDateTime": {},
"endDateTime": {}
},
"anyOf": [
{
"required": [
"startDateTime"
]
},
{
"required": [
"endDateTime"
]
}
]
}
],
"errorMessage": {
"oneOf": "A start date and/or an end date must be provided for this data product in the 'Time Period' section under the 'Main' tab."
}
},
"resourceMaintenance": {
"items": {
"properties": {
"frequency" :{},
"date":{},
"contact":{}
},
"required": [
"frequency",
"date",
"contact"
],
"errorMessage": {
"required": {
"frequency": "The frequency of product review and maintenance must be provided under the 'Main' tab.",
"date" : "The date of the maintenance of the product must be provided in the 'Main' tab within the 'Maintenance' section.",
"contact": "A product maintenance contact must be provided in the 'Main' tab within the 'Maintence' section."
}
}
}
},
"keyword": {
"items": {
"properties": {
"keyword": {},
"thesaurus": {}
},
"required": [
"keyword",
"thesaurus"
],
"errorMessage": {
"required": {
"keyword": "At least one keyword must be provided from each thesaurus under the 'Keywords' tab.",
"thesaurus": "At least one keyword thesaurus must be provided under the 'Keywords' tab."
}
}
},
"contains": {
"properties": {
"thesaurus": {
"properties": {
"title": {
"enum": [
"Global Change Master Directory (GCMD) Instruments",
"Global Change Master Directory (GCMD) Platforms",
"Global Change Master Directory (GCMD) Science Keywords",
"ISO 19115 Topic Category",
"Deliverable Types - Landscape Conservation Cooperatives",
"End User Types - Landscape Conservation Cooperatives",
"Project Category - Landscape Conservation Cooperatives"
],
"errorMessage": {
"enum": "At least one keyword under the 'Keywords' tab must be from a controlled vocabulary thesaurus."
}
}
}
}
}
}
},
"extent": {
"items": {
"properties": {
"geographicExtent": {
"items": {
"properties": {
"containsData": {},
"boundingBox": {},
"description": {}
},
"required": [
"containsData",
"boundingBox",
"description"
],
"errorMessage": {
"required": {
"containsData": "Checking the box whether or not the geographic extent contains all or some of the data is required in the 'Extent' tab.",
"boundingBox": "A bounding box is required for each geographic extent in the 'Extent' tab.",
"description": "A description is required for each geographic extent in the 'Extent' tab."
}
}
}
}
},
}
},
"spatialReferenceSystem": {
"items": {
"properties": {
"referenceSystemType": {
"properties": {
"identifier": {}
},
"required": [
"identifier"
],
"errorMessage": {
"required": {
"identifier": "A reference system identifier is required in the Spatial Reference System panel in the 'Spatial' tab."
}
}
}
},
"required": [
"referenceSystemType"
],
"errorMessage": {
"required": {
"referenceSystemType": "A reference sytem type must be selected for each Spatial Reference System on the 'Spatial' tab."
}
}
}
}
},
"required": [
"status",
"resourceType",
"pointOfContact",
"citation",
"abstract",
"purpose",
"timePeriod",
"keyword",
"spatialRepresentationType",
"extent",
"spatialReferenceSystem",
"resourceMaintenance"
],
"errorMessage": {
"required": {
"status": "The current product status must be provided in the 'Basic Information' section under the 'Main' tab. Status must be one of: 'completed', 'onGoing', 'proposed', or 'accepted'",
"resourceType": "Resource type must be provided in the 'Resource Types' section under the 'Main' tab. The resource type for products must not be 'product', but should instead use a more specific type (e.g. tabularDataset, collection, document).",
"pointOfContact": "Project and product specific personnel must be provided in the 'Point of Contact' section under the 'Main' tab.",
"abstract": "An abstract for the product must be provided in the 'Description' section under the 'Main' tab. Abstracts should summarize the product's purpose and goals.",
"purpose": "A short summary of the purpose of the dataset must be provided under the 'Main' tab.",
"timePeriod": "A relevant time period for the product must be provided in the 'Time Period' section under the 'Main' tab.",
"keyword": "Product keywords must be provided under the 'Keywords' tab. At least one keyword must be provided from the Global Change Master Directory (GCMD) Science Keywords thesaurus.",
"spatialRepresentationType": "A seletion for the spatial representation type must be made at the top of the 'Spatial' tab. ",
"extent": "The spatial extent of this product must be provided in the 'Extent' tab.",
"spatialReferenceSystem": "A spatial reference system is required in the 'Spatial' tab.",
"resourceMaintenance": "Information on the maintenance of the resource must be provided under the 'Maintenance' panel of the 'Main' tab.",
}
}
},
"metadataInfo": {
"properties": {
"metadataDate": {
"items": {
"properties": {
"date": {},
"dateType": {}
},
"required": [
"date",
"dateType"
],
"errorMessage": {
"required": {
"date": "A revision date for the metadata must be provided in the 'Basic Information' section under the 'Metadata' tab.",
"dateType": "A date type must be provided for dates associated with the metadata in the 'Basic Information' section under the 'Metadata' tab."
}
}
},
"contains": {
"properties": {
"dateType": {
"const": "lastRevision",
"errorMessage": {
"const": "At least one date with the type 'lastRevision' must be provided in the 'Basic Information' section under the 'Metadata' tab."
}
}
}
}
},
"metadataContact": {
"allOf": [
{
"contains": {
"properties": {
"role": {
"const": "pointOfContact",
"errorMessage": {
"const": "At least one metadata contact must have the role 'pointOfContact' under the 'Metadata Contacts' section of the 'Metadata' tab."
}
}
}
}
}
],
"items": {
"properties": {
"role": {},
"party": {}
},
"required": [
"role",
"party"
],
"errorMessage": {
"required": {
"role": "A role must be provided in the 'Metadata Contacts' section under the 'Metadata' tab.",
"party": "A contact must be provided in the 'Metadata Contacts' section under the 'Metadata' tab."
}
}
}
},
"metadataMaintenance": {
"items": {
"properties": {
"frequency": {}
},
"required": [
"frequency"
],
"errorMessage": {
"required": {
"frequency": "A metadata maintenance frequency is required in the 'Metadata' tab."
}
}
}
}
},
"required": [
"metadataDate",
"metadataContact",
"metadataMaintenance"
],
"errorMessage": {
"required": {
"metadataDate": "The last revision date of the metadata must be provided in the 'Basic Information' section under the 'Metadata' tab.",
"metadataContact": "Contacts for metadata creation must be provided in the 'Metadata Contact' section under the 'Metadata' tab. Roles must include at least 'pointOfContact' and 'author'.",
"metadataMaintenance": "A metadata maintenance frequency must be provided in the 'Metadata' tab."
}
}
},
"resourceLineage": {
"items": {
"properties": {
"statement": {},
"processStep": {},
"source": {}
},
"required": [
"statement",
"processStep",
"source"
],
"errorMessage": {
"required": {
"statement": "A general statement describing the resource lineage is required under the 'Lineage' tab.",
"processStep": "At least one process step is required to be described in the 'Lineage' tab.",
"source": "A description of the source dataset must be provided in the 'Lineage' tab."
}
}
}
},
"resourceDistribution": {
"items": {
"properties": {
"distributor": {
"items": {
"properties": {
"contact": {
"properties": {
"role": {
"const": "distributor",
"errorMessage": {
"const": "Role for distributor in the 'Distributor' section under the 'Distribution' tab must be 'distributor'."
}
},
"party": {}
},
"required": [
"role",
"party"
],
"errorMessage": {
"required": {
"role": "Indicate 'distributor' as the role for the product distributor under the 'Distribution' tab.",
"party": "Indicate the organization that will distribute the product as the contact under the 'Distribution' tab."
}
}
},
"transferOption": {
"items": {
"properties": {
"onlineOption": {
"items": {
"properties": {
"uri": {}
},
"required": [
"uri"
],
"errorMessage": {
"required": {
"uri": "A URI must be provided for an online option to access the resource under the 'Transfer Option' section of the 'Distributor' section under the 'Distribution' tab. The URI should link to either the direct download (URI that will automatically start a download) or the link to page where you can download the resource."
}
}
}
}
},
"required": [
"onlineOption"
],
"errorMessage": {
"required": {
"onlineOption": "An online option for distribution must be provided in the 'Transfer Option' section of the 'Distributor' section under the 'Distribution' tab."
}
}
}
}
},
"required": [
"contact",
"transferOption"
],
"errorMessage": {
"required": {
"contact": "Provide a contact for distribution in the 'Distributor' section under the 'Distribution' tab.",
"transferOption": "A transfer option must be provided for distribution in the 'Distributor' section under the 'Distribution' tab."
}
}
}
}
},
"required": [
"distributor"
],
"errorMessage": {
"required": {
"distributor": "Provide a distributor for the resource under the 'Distribution' tab."
}
}
}
}
},
"required": [
"resourceInfo",
"metadataInfo",
"resourceDistribution",
"resourceLineage"
],
"errorMessage": {
"required": {
"resourceDistribution": "Resource distribution must be described under the 'Distribution' tab.",
"resourceLineage": "Information on the lineage of the resource is required under the 'Lineage' tab."
}
}
},
"dataDictionary": {}
},
"if": {
"properties": {
"metadata": {
"properties": {
"resourceInfo": {
"properties": {
"resourceType": {
"contains": {
"properties": {
"type": {
"enum": ["geographicDataset","vector","tile","coverage"]
}
}
}
}
}
}
}
}
}
},
"then": {
"required": [
"metadata",
"dataDictionary"
],
"errorMessage": {
"required": {
"dataDictionary": "Data products with resource types including geographic dataset, vector, tile, or coverage must meet basic metadata specifications for geospatial resources and must be associated with a data dictionary under the 'Dictionaries' tab."
}
}
},
"else": {
"required": [
"metadata"
]
},
"errorMessage": {
"if": "If this data product is geospatial (ie. geospatial dataset, tile, coverage or vector layer) then it must be associated with a data dictionary under the 'Dictionaries' tab."
}
}