adiwg-json_schemas 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +9 -0
  4. data/CREDITS +3 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +24 -0
  7. data/README.md +36 -0
  8. data/Rakefile +12 -0
  9. data/adiwg-json_schemas.gemspec +24 -0
  10. data/examples/adiwg_project_example_1.json +847 -0
  11. data/examples/citation.json +60 -0
  12. data/examples/contact.json +165 -0
  13. data/examples/contactRef.json +15 -0
  14. data/examples/dataQuality.json +132 -0
  15. data/examples/data_example.json +371 -0
  16. data/examples/date.json +19 -0
  17. data/examples/distributor.json +53 -0
  18. data/examples/extent_linestring.json +288 -0
  19. data/examples/extent_point.json +200 -0
  20. data/examples/extent_polygon.json +353 -0
  21. data/examples/full_example.json +1629 -0
  22. data/examples/geojson.json +253 -0
  23. data/examples/graphicOverview.json +23 -0
  24. data/examples/hierarchyLevel.json +90 -0
  25. data/examples/keywords.json +68 -0
  26. data/examples/lcc_project_example.json +245 -0
  27. data/examples/maintInfo.json +22 -0
  28. data/examples/onlineResource.json +12 -0
  29. data/examples/resolution.json +9 -0
  30. data/examples/resourceConstraints.json +25 -0
  31. data/examples/resourceInfo.json +1287 -0
  32. data/examples/resourceMaintenance.json +10 -0
  33. data/examples/taxonomy.json +98 -0
  34. data/examples/uri.json +7 -0
  35. data/examples/usage.json +23 -0
  36. data/lib/adiwg/json_schemas/utils.rb +20 -0
  37. data/lib/adiwg/json_schemas/version.rb +6 -0
  38. data/lib/adiwg/json_schemas.rb +7 -0
  39. data/lib/adiwg-json_schemas.rb +1 -0
  40. data/schema/schema/citation.json +77 -0
  41. data/schema/schema/contact.json +175 -0
  42. data/schema/schema/dataQuality.json +82 -0
  43. data/schema/schema/distributor.json +89 -0
  44. data/schema/schema/extent.json +118 -0
  45. data/schema/schema/geojson/bbox.json +10 -0
  46. data/schema/schema/geojson/crs.json +53 -0
  47. data/schema/schema/geojson/geojson.json +131 -0
  48. data/schema/schema/geojson/geometry.json +123 -0
  49. data/schema/schema/graphicOverview.json +22 -0
  50. data/schema/schema/keyword.json +37 -0
  51. data/schema/schema/maintInfo.json +26 -0
  52. data/schema/schema/metadata.json +88 -0
  53. data/schema/schema/onlineResource.json +28 -0
  54. data/schema/schema/resolution.json +29 -0
  55. data/schema/schema/resourceConstraint.json +65 -0
  56. data/schema/schema/resourceInfo.json +151 -0
  57. data/schema/schema/taxonomy.json +61 -0
  58. data/schema/schema/usage.json +23 -0
  59. data/schema/schema.json +42 -0
  60. data/templates/adiwg_metadata_template.json +585 -0
  61. data/test/tc_schemas.rb +133 -0
  62. data/test/tc_utils.rb +26 -0
  63. metadata +150 -0
@@ -0,0 +1,585 @@
1
+ {
2
+ "version": {
3
+ "name": "adiwgJSON",
4
+ "version": "0.3.0"
5
+ },
6
+ "contact": [
7
+ {
8
+ "contactId": "",
9
+ "individualName": "",
10
+ "organizationName": "",
11
+ "positionName": "",
12
+ "onlineResource": [
13
+ {
14
+ "uri": "http://thisisanexample.com",
15
+ "protocol": "",
16
+ "name": "",
17
+ "description": "",
18
+ "function": "",
19
+ "doi": ""
20
+ }
21
+ ],
22
+ "contactInstructions": "",
23
+ "phoneBook": [
24
+ {
25
+ "phoneName": "",
26
+ "phoneNumber": "999-999-9999",
27
+ "service": [""]
28
+ }
29
+ ],
30
+ "address": {
31
+ "deliveryPoint": [""],
32
+ "city": "",
33
+ "administrativeArea": "",
34
+ "postalCode": "",
35
+ "country": "",
36
+ "electronicMailAddress": ["hello@example.com"]
37
+ }
38
+ }
39
+ ],
40
+ "metadata": {
41
+ "metadataInfo": {
42
+ "metadataIdentifier": "",
43
+ "parentMetadataIdentifier": "",
44
+ "metadataScope": [""],
45
+ "metadataContact": [
46
+ {
47
+ "contactId": "",
48
+ "role": ""
49
+ }
50
+ ],
51
+ "metadataCreationDate": "0000-00-00",
52
+ "metadataLastUpdate": "0000-00-00",
53
+ "metadataUri": "http://thisisanexample.com",
54
+ "metadataStatus": "",
55
+ "metadataMaintenance": {
56
+ "maintenanceFrequency": "",
57
+ "maintenanceNote": [""],
58
+ "maintenanceContact": [
59
+ {
60
+ "contactId": "",
61
+ "role": ""
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ "resourceInfo": {
67
+ "citation": {
68
+ "title": "",
69
+ "date": [
70
+ {
71
+ "date": "0000-00-00",
72
+ "dateType": ""
73
+ }
74
+ ],
75
+ "edition": "",
76
+ "responsibleParty": [
77
+ {
78
+ "contactId": "",
79
+ "role": "",
80
+ "resourceIdentifier": [
81
+ {
82
+ "identifierName": "",
83
+ "identifier": ""
84
+ }
85
+ ]
86
+ }
87
+ ],
88
+ "presentationForm": [""],
89
+ "additionalIdentifier": {
90
+ "doi": "",
91
+ "isbn": "",
92
+ "issn": ""
93
+ },
94
+ "onlineResource": [
95
+ {
96
+ "uri": "http://thisisanexample.com",
97
+ "protocol": "",
98
+ "name": "",
99
+ "description": "",
100
+ "function": "",
101
+ "doi": ""
102
+ }
103
+ ]
104
+ },
105
+ "pointOfContact": [
106
+ {
107
+ "contactId": "",
108
+ "role": ""
109
+ }
110
+ ],
111
+ "abstract": "",
112
+ "shortAbstract": "",
113
+ "status": "",
114
+ "hasMapLocation": true,
115
+ "hasDataAvailable": true,
116
+ "language": [""],
117
+ "purpose": "",
118
+ "credit": [""],
119
+ "topicCategory": [""],
120
+ "environmentDescription": "",
121
+ "resourceNativeFormat": [
122
+ {
123
+ "formatName": "",
124
+ "version": ""
125
+ }
126
+ ],
127
+ "keyword": [
128
+ {
129
+ "keyword": [""],
130
+ "keywordType": "",
131
+ "thesaurus": {
132
+ "thesaurusLink": "http://thisisanexample.com",
133
+ "citation": {
134
+ "title": "",
135
+ "date": [
136
+ {
137
+ "date": "0000-00-00",
138
+ "dateType": ""
139
+ }
140
+ ],
141
+ "edition": "",
142
+ "responsibleParty": [
143
+ {
144
+ "contactId": "",
145
+ "role": ""
146
+ }
147
+ ],
148
+ "presentationForm": [""],
149
+ "additionalIdentifier": {
150
+ "doi": "",
151
+ "isbn": "",
152
+ "issn": ""
153
+ }
154
+ }
155
+ }
156
+ }
157
+ ],
158
+ "resourceMaintenance": [
159
+ {
160
+ "maintenanceFrequency": "",
161
+ "maintenanceNote": [""],
162
+ "maintenanceContact": [
163
+ {
164
+ "contactId": "",
165
+ "role": ""
166
+ }
167
+ ]
168
+ }
169
+ ],
170
+ "resourceSpecificUsage": [
171
+ {
172
+ "specificUsage": "",
173
+ "userDeterminedLimitation": "",
174
+ "userContactInfo": [
175
+ {
176
+ "contactId": "",
177
+ "role": ""
178
+ }
179
+ ]
180
+ }
181
+ ],
182
+ "graphicOverview": [
183
+ {
184
+ "fileName": "",
185
+ "fileDescription": "",
186
+ "fileType": "",
187
+ "fileLink": "http://thisisanexample.com"
188
+ }
189
+ ],
190
+ "constraint": {
191
+ "useLimitation": [""],
192
+ "legalConstraint": [
193
+ {
194
+ "accessConstraint": [""],
195
+ "useConstraint": [""],
196
+ "otherConstraint": [""]
197
+ }
198
+ ],
199
+ "securityConstraint": [
200
+ {
201
+ "classification": "",
202
+ "classificationSystem": "",
203
+ "handlingDescription": "",
204
+ "userNote": ""
205
+ }
206
+ ]
207
+ },
208
+ "taxonomy": {
209
+ "classificationSystem": [
210
+ {
211
+ "title": "",
212
+ "date": [
213
+ {
214
+ "date": "0000-00-00",
215
+ "dateType": ""
216
+ }
217
+ ],
218
+ "edition": "",
219
+ "responsibleParty": [
220
+ {
221
+ "contactId": "",
222
+ "role": ""
223
+ }
224
+ ],
225
+ "presentationForm": [""],
226
+ "additionalIdentifier": {
227
+ "doi": "",
228
+ "isbn": "",
229
+ "issn": ""
230
+ }
231
+ }
232
+ ],
233
+ "taxonGeneralScope": "",
234
+ "observer": [
235
+ {
236
+ "contactId": "",
237
+ "role": ""
238
+ }
239
+ ],
240
+ "taxonomicProcedure": "",
241
+ "voucher": {
242
+ "specimen": "",
243
+ "repository": {
244
+ "contactId": "",
245
+ "role": ""
246
+ }
247
+ },
248
+ "taxonClass": [
249
+ {
250
+ "common": "",
251
+ "taxonRank": "",
252
+ "taxonValue": ""
253
+ }
254
+ ]
255
+ },
256
+ "spatialDatum": [""],
257
+ "spatialRepresentation": [""],
258
+ "spatialResolution": [
259
+ {
260
+ "equivalentScale": 0
261
+ }, {
262
+ "distance": 0,
263
+ "uom": ""
264
+ }
265
+ ],
266
+ "extent": [
267
+ {
268
+ "description": "",
269
+ "geographicElement": [
270
+ {
271
+ "type": "Feature",
272
+ "id": "",
273
+ "bbox": [0, 0, 0, 0],
274
+ "geometry": {
275
+ "type": "Point",
276
+ "coordinates": [0, 0, 0]
277
+ },
278
+ "geometry": {
279
+ "type": "LineString",
280
+ "coordinates": [
281
+ [0, 0, 0],
282
+ [0, 0, 0]
283
+ ]
284
+ },
285
+ "geometry": {
286
+ "type": "Polygon",
287
+ "coordinates": [
288
+ [
289
+ [0, 0, 0],
290
+ [0, 0, 0],
291
+ [0, 0, 0],
292
+ [0, 0, 0]
293
+ ],
294
+ [
295
+ [0, 0, 0],
296
+ [0, 0, 0],
297
+ [0, 0, 0],
298
+ [0, 0, 0]
299
+ ]
300
+ ]
301
+ },
302
+ "crs": {
303
+ "type": "name",
304
+ "properties": {
305
+ "name": ""
306
+ }
307
+ },
308
+ "properties": {
309
+ "featureName": "",
310
+ "description": "",
311
+ "includesData": true,
312
+ "temporalElement": {
313
+ "date": ["0000-00-00"],
314
+ "timeInstant": [
315
+ {
316
+ "id": "",
317
+ "description": "",
318
+ "timePosition": "0000-00-00T00:00:00.0+00:00"
319
+ }
320
+ ],
321
+ "timePeriod": [
322
+ {
323
+ "id": "",
324
+ "description": "",
325
+ "beginPosition": "0000-00-00T00:00:00.0+00:00",
326
+ "endPosition": "0000-00-00T00:00:00.0+00:00"
327
+ }
328
+ ]
329
+ },
330
+ "verticalElement": [
331
+ {
332
+ "minimumValue": 0,
333
+ "maximumValue": 0,
334
+ "verticalCRSTitle": "",
335
+ "verticalCRSLink": "http://thisisanexample.com"
336
+ }
337
+ ],
338
+ "assignedId": [
339
+ {
340
+ "contactId": "",
341
+ "role": "",
342
+ "resourceIdentifier": [
343
+ {
344
+ "identifierName": "",
345
+ "identifier": ""
346
+ }
347
+ ]
348
+ }
349
+ ],
350
+ "featureScope": "",
351
+ "featureAcquisitionMethod": ""
352
+ }
353
+ }, {
354
+ "type": "FeatureCollection",
355
+ "id": "",
356
+ "bbox": [0, 0, 0, 0],
357
+ "properties": {
358
+ "name": "",
359
+ "description": "",
360
+ "includesData": true
361
+ },
362
+ "crs": {
363
+ "type": "link",
364
+ "properties": {
365
+ "href": "http://thisisanexample.com",
366
+ "type": ""
367
+ }
368
+ },
369
+ "features": []
370
+ }
371
+ ],
372
+ "temporalElement": {
373
+ "date": ["0000-00-00"],
374
+ "timeInstant": [
375
+ {
376
+ "id": "",
377
+ "description": "",
378
+ "timePosition": "0000-00-00T00:00:00.0+00:00"
379
+ }
380
+ ],
381
+ "timePeriod": [
382
+ {
383
+ "id": "",
384
+ "description": "",
385
+ "beginPosition": "0000-00-00T00:00:00.0+00:00",
386
+ "endPosition": "0000-00-00T00:00:00.0+00:00"
387
+ }
388
+ ]
389
+ },
390
+ "verticalElement": [
391
+ {
392
+ "minimumValue": 0,
393
+ "maximumValue": 0,
394
+ "verticalCRSTitle": "",
395
+ "verticalCRSLink": "http://thisisanexample.com"
396
+ }
397
+ ]
398
+ }
399
+ ],
400
+ "dataQualityInfo": [
401
+ {
402
+ "scope": "",
403
+ "lineage": {
404
+ "statement": "",
405
+ "processStep": [
406
+ {
407
+ "stepId": "",
408
+ "description": "",
409
+ "rationale": "",
410
+ "dateTime": "0000-00-00",
411
+ "processor": [
412
+ {
413
+ "contactId": "",
414
+ "role": ""
415
+ }
416
+ ]
417
+ }
418
+ ],
419
+ "source": [
420
+ {
421
+ "description": "",
422
+ "citation": {
423
+ "title": "",
424
+ "date": [
425
+ {
426
+ "date": "0000-00-00",
427
+ "dateType": ""
428
+ }
429
+ ],
430
+ "edition": "",
431
+ "responsibleParty": [
432
+ {
433
+ "contactId": "",
434
+ "role": ""
435
+ }
436
+ ],
437
+ "presentationForm": [""],
438
+ "additionalIdentifier": {
439
+ "doi": "",
440
+ "isbn": "",
441
+ "issn": ""
442
+ }
443
+ },
444
+ "processStep": [
445
+ {
446
+ "stepId": "",
447
+ "description": "",
448
+ "rationale": "",
449
+ "dateTime": "0000-00-00",
450
+ "processor": [
451
+ {
452
+ "contactId": "",
453
+ "role": ""
454
+ }
455
+ ]
456
+ }
457
+ ]
458
+ }
459
+ ]
460
+ }
461
+ }
462
+ ],
463
+ "supplementalInfo": ""
464
+ },
465
+ "distributionInfo": [
466
+ {
467
+ "distributorContact": {
468
+ "contactId": "",
469
+ "role": ""
470
+ },
471
+ "distributionOrderProcess": [
472
+ {
473
+ "fees": "",
474
+ "plannedAvailabilityDateTime": "0000-00-00",
475
+ "orderingInstructions": "",
476
+ "turnaround": ""
477
+ }
478
+ ],
479
+ "distributorFormat": [
480
+ {
481
+ "formatName": "",
482
+ "version": ""
483
+ }
484
+ ],
485
+ "distributorTransferOptions": [
486
+ {
487
+ "online": [
488
+ {
489
+ "uri": "http://thisisanexample.com",
490
+ "protocol": "",
491
+ "name": "",
492
+ "description": "",
493
+ "function": "",
494
+ "doi": ""
495
+ }
496
+ ],
497
+ "offline": {
498
+ "name": "",
499
+ "mediumFormat": "",
500
+ "mediumNote": ""
501
+ }
502
+ }
503
+ ]
504
+ }
505
+ ],
506
+ "associatedResource": [
507
+ {
508
+ "associationType": "",
509
+ "resourceType": "",
510
+ "resourceCitation": {
511
+ "title": "",
512
+ "date": [
513
+ {
514
+ "date": "0000-00-00",
515
+ "dateType": ""
516
+ }
517
+ ],
518
+ "edition": "",
519
+ "responsibleParty": [
520
+ {
521
+ "contactId": "",
522
+ "role": "",
523
+ "resourceCode": [
524
+ {
525
+ "codeName": "",
526
+ "code": ""
527
+ }
528
+ ]
529
+ }
530
+ ],
531
+ "presentationForm": [""],
532
+ "additionalIdentifier": {
533
+ "doi": "",
534
+ "isbn": "",
535
+ "issn": ""
536
+ },
537
+ "onlineResource": [
538
+ {
539
+ "uri": "http://thisisanexample.com",
540
+ "protocol": "",
541
+ "name": "",
542
+ "description": "",
543
+ "function": "",
544
+ "doi": ""
545
+ }
546
+ ]
547
+ }
548
+ }
549
+ ],
550
+ "additionalDocumentation": [
551
+ {
552
+ "title": "",
553
+ "date": [
554
+ {
555
+ "date": "0000-00-00",
556
+ "dateType": ""
557
+ }
558
+ ],
559
+ "edition": "",
560
+ "responsibleParty": [
561
+ {
562
+ "contactId": "",
563
+ "role": ""
564
+ }
565
+ ],
566
+ "presentationForm": [""],
567
+ "additionalIdentifier": {
568
+ "doi": "",
569
+ "isbn": "",
570
+ "issn": ""
571
+ },
572
+ "onlineResource": [
573
+ {
574
+ "uri": "http://thisisanexample.com",
575
+ "protocol": "",
576
+ "name": "",
577
+ "description": "",
578
+ "function": "",
579
+ "doi": ""
580
+ }
581
+ ]
582
+ }
583
+ ]
584
+ }
585
+ }