adiwg-mdjson_schemas 1.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +7 -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 +25 -0
  10. data/examples/additionalDocumentation.json +61 -0
  11. data/examples/address.json +10 -0
  12. data/examples/associatedResource.json +119 -0
  13. data/examples/citation.json +128 -0
  14. data/examples/contact.json +205 -0
  15. data/examples/contactRef.json +12 -0
  16. data/examples/dataDictionary.json +547 -0
  17. data/examples/dataQuality.json +272 -0
  18. data/examples/date.json +19 -0
  19. data/examples/distributor.json +113 -0
  20. data/examples/extent_linestring.json +288 -0
  21. data/examples/extent_point.json +246 -0
  22. data/examples/extent_polygon.json +353 -0
  23. data/examples/format.json +14 -0
  24. data/examples/full_example.json +2844 -0
  25. data/examples/full_example2.json +2325 -0
  26. data/examples/geojson.json +446 -0
  27. data/examples/graphicOverview.json +28 -0
  28. data/examples/hierarchyLevel.json +90 -0
  29. data/examples/keywords.json +144 -0
  30. data/examples/lcc_project_example.json +326 -0
  31. data/examples/legalConstraints.json +17 -0
  32. data/examples/maintInfo.json +34 -0
  33. data/examples/metadataInfo.json +103 -0
  34. data/examples/minimum_example.json +35 -0
  35. data/examples/onlineResource.json +17 -0
  36. data/examples/resolution.json +9 -0
  37. data/examples/resourceInfo.json +1264 -0
  38. data/examples/resourceMaintenance.json +10 -0
  39. data/examples/securityConstraints.json +13 -0
  40. data/examples/spatialRef.json +14 -0
  41. data/examples/taxonomy.json +197 -0
  42. data/examples/temporalElement.json +29 -0
  43. data/examples/uri.json +16 -0
  44. data/examples/usage.json +35 -0
  45. data/examples/verticalExtent.json +18 -0
  46. data/lib/adiwg-mdjson_schemas.rb +1 -0
  47. data/lib/adiwg/mdjson_schemas.rb +7 -0
  48. data/lib/adiwg/mdjson_schemas/utils.rb +20 -0
  49. data/lib/adiwg/mdjson_schemas/validator.rb +42 -0
  50. data/lib/adiwg/mdjson_schemas/version.rb +6 -0
  51. data/schema/schema.json +64 -0
  52. data/schema/schema/citation.json +186 -0
  53. data/schema/schema/contact.json +255 -0
  54. data/schema/schema/dataDictionary.json +209 -0
  55. data/schema/schema/dataQuality.json +159 -0
  56. data/schema/schema/distributor.json +171 -0
  57. data/schema/schema/extent.json +214 -0
  58. data/schema/schema/geojson/bbox.json +14 -0
  59. data/schema/schema/geojson/crs.json +99 -0
  60. data/schema/schema/geojson/geojson.json +194 -0
  61. data/schema/schema/geojson/geometry.json +203 -0
  62. data/schema/schema/graphicOverview.json +42 -0
  63. data/schema/schema/keyword.json +39 -0
  64. data/schema/schema/maintInfo.json +43 -0
  65. data/schema/schema/metadata.json +173 -0
  66. data/schema/schema/onlineResource.json +42 -0
  67. data/schema/schema/resolution.json +51 -0
  68. data/schema/schema/resourceConstraint.json +108 -0
  69. data/schema/schema/resourceInfo.json +305 -0
  70. data/schema/schema/taxonomy.json +122 -0
  71. data/schema/schema/usage.json +39 -0
  72. data/templates/mdJson_template.json +1065 -0
  73. data/test/draft-04.json +189 -0
  74. data/test/tc_schemas.rb +210 -0
  75. data/test/tc_utils.rb +27 -0
  76. metadata +178 -0
@@ -0,0 +1,446 @@
1
+ [
2
+ {
3
+ "type":"FeatureCollection",
4
+ "id":"multiPt1",
5
+ "bbox":[
6
+ -164.88550989974,
7
+ 59.159712874412,
8
+ -164.86353724349,
9
+ 59.169368826866
10
+ ],
11
+ "properties":{
12
+ "name":"A FeatureCollection(points)",
13
+ "description":"represents GML MultiGeometry"
14
+ },
15
+ "crs":{
16
+ "type":"name",
17
+ "properties":{
18
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
19
+ }
20
+ },
21
+ "features":[
22
+ {
23
+ "type":"Feature",
24
+ "id":"point010",
25
+ "properties":{
26
+ "identifier":[
27
+ {
28
+ "identifier":"PNT-12345",
29
+ "authority":{
30
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
31
+ "onlineResource":[
32
+ {
33
+ "uri":"http://www.gtnp.org"
34
+ }
35
+ ]
36
+ }
37
+ }
38
+ ],
39
+ "name":"BS7882",
40
+ "description":"point valid on or after a specific date",
41
+ "date":"2011-09-15"
42
+ },
43
+ "geometry":{
44
+ "type":"Point",
45
+ "coordinates":[
46
+ -164.88550989974,
47
+ 59.179712874412
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "type":"Feature",
53
+ "id":"point012",
54
+ "properties":{
55
+ "description":"point valid on or after a specific date",
56
+ "timeInstant":[
57
+ {
58
+ "description":"ground condition",
59
+ "timePosition":"2012-07-15T08:05:00-09:00"
60
+ }
61
+ ]
62
+ },
63
+ "geometry":{
64
+ "type":"Point",
65
+ "coordinates":[
66
+ -164.87550989974,
67
+ 59.209712874412
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "type":"Feature",
73
+ "id":"point013",
74
+ "properties":{
75
+ "description":"point valid over a time period",
76
+ "temporalElement":{
77
+ "timePeriod":[
78
+ {
79
+ "beginPosition":"2013-08-24T08:05:00",
80
+ "endPosition":"2013-10-04"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ "geometry":{
86
+ "type":"Point",
87
+ "coordinates":[
88
+ -164.89650989974,
89
+ 59.249712874412
90
+ ]
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "type":"Feature",
97
+ "bbox":[
98
+ -164.88550989974,
99
+ 59.159712874412,
100
+ -164.86353724349,
101
+ 59.169368826866
102
+ ],
103
+ "id":"pointlist1",
104
+ "properties":{
105
+ "name":"Fishin' spots",
106
+ "description":"These points have shared attributes",
107
+ "includesData":true
108
+ },
109
+ "geometry":{
110
+ "type":"MultiPoint",
111
+ "coordinates":[
112
+ [
113
+ -164.87402357161,
114
+ 59.165040850639
115
+ ],
116
+ [
117
+ -164.87502357161,
118
+ 59.164040850639
119
+ ],
120
+ [
121
+ -164.88387053359,
122
+ 59.161207759012
123
+ ]
124
+ ]
125
+ },
126
+ "crs":{
127
+ "type":"name",
128
+ "properties":{
129
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "type":"Feature",
135
+ "id":"point1",
136
+ "properties":{
137
+ "identifier":[
138
+ {
139
+ "identifier":"PNT-12345",
140
+ "authority":{
141
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
142
+ "onlineResource":[
143
+ {
144
+ "uri":"http://www.gtnp.org"
145
+ }
146
+ ]
147
+ }
148
+ }
149
+ ],
150
+ "name":"BS7882",
151
+ "description":"Sea buoy BS7882 location"
152
+ },
153
+ "geometry":{
154
+ "type":"Point",
155
+ "coordinates":[
156
+ -164.87402357161,
157
+ 59.165040850639
158
+ ]
159
+ },
160
+ "crs":{
161
+ "type":"name",
162
+ "properties":{
163
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "type":"Feature",
169
+ "id":"point100",
170
+ "properties":{
171
+ "identifier":[
172
+ {
173
+ "identifier":"PNT-12346",
174
+ "authority":{
175
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
176
+ "onlineResource":[
177
+ {
178
+ "uri":"http://www.gtnp.org"
179
+ }
180
+ ]
181
+ }
182
+ }
183
+ ],
184
+ "name":"BS999",
185
+ "description":"Sea buoy BS999 location"
186
+ },
187
+ "geometry":{
188
+ "type":"Point",
189
+ "coordinates":[
190
+ -164.87302357161,
191
+ 59.145040850639
192
+ ]
193
+ },
194
+ "crs":{
195
+ "type":"name",
196
+ "properties":{
197
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
198
+ }
199
+ }
200
+ },
201
+ {
202
+ "type":"FeatureCollection",
203
+ "id":"multiline1",
204
+ "bbox":[
205
+ -157.07025098484,
206
+ 70.022012234173,
207
+ 35.2,
208
+ -150.76174075893,
209
+ 71.109331363597,
210
+ 125.8
211
+ ],
212
+ "properties":{
213
+ "name":"A FeatureCollection(lines)",
214
+ "description":"represents GML MultiGeometry"
215
+ },
216
+ "crs":{
217
+ "type":"name",
218
+ "properties":{
219
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
220
+ }
221
+ },
222
+ "features":[
223
+ {
224
+ "type":"Feature",
225
+ "id":"multiLine001",
226
+ "properties":{
227
+ "name":"Josh",
228
+ "description":"First line in multiline object",
229
+ "date":"2011-09-15"
230
+ },
231
+ "geometry":{
232
+ "type":"LineString",
233
+ "coordinates":[
234
+ [
235
+ -157.0702509848438,
236
+ 71.10933136359692,
237
+ 35.2
238
+ ],
239
+ [
240
+ -154.6526281903968,
241
+ 70.40820968995817,
242
+ 68.1
243
+ ],
244
+ [
245
+ -150.7617407589279,
246
+ 70.02201223417278,
247
+ 84.7
248
+ ],
249
+ [
250
+ -150.8371960238169,
251
+ 70.43210058905156,
252
+ 125.8
253
+ ],
254
+ [
255
+ -152.2049884417053,
256
+ 70.87235618158296,
257
+ 116.0
258
+ ]
259
+ ]
260
+ }
261
+ },
262
+ {
263
+ "type":"Feature",
264
+ "id":"multiLine001",
265
+ "properties":{
266
+ "name":"Chris",
267
+ "description":"Second line in multiline object"
268
+ },
269
+ "geometry":{
270
+ "type":"LineString",
271
+ "coordinates":[
272
+ [
273
+ -154.5708878990441,
274
+ 71.04082324476376,
275
+ 36.9
276
+ ],
277
+ [
278
+ -150.7617407589279,
279
+ 70.02201223417278,
280
+ 84.7
281
+ ],
282
+ [
283
+ -154.6526281903968,
284
+ 70.40820968995817,
285
+ 68.1
286
+ ],
287
+ [
288
+ -157.0702509848438,
289
+ 71.10933136359692,
290
+ 35.2
291
+ ]
292
+ ]
293
+ }
294
+ },
295
+ {
296
+ "type":"Feature",
297
+ "id":"multiLine003",
298
+ "properties":{
299
+ "name":"Allison",
300
+ "description":"Third line in multiline object"
301
+ },
302
+ "geometry":{
303
+ "type":"LineString",
304
+ "coordinates":[
305
+ [
306
+ -150.7617407589279,
307
+ 70.02201223417278,
308
+ 84.7
309
+ ],
310
+ [
311
+ -154.6526281903968,
312
+ 70.40820968995817,
313
+ 68.1
314
+ ]
315
+ ]
316
+ }
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ "type":"FeatureCollection",
322
+ "id":"unique2",
323
+ "bbox":[
324
+ -149.89603182812,
325
+ 61.215716023773,
326
+ -149.87405917187,
327
+ 61.225371976227
328
+ ],
329
+ "properties":{
330
+ "name":"A FeatureCollection(polygons)",
331
+ "description":"represents GML MultiGeometry",
332
+ "includesData":true
333
+ },
334
+ "crs":{
335
+ "type":"name",
336
+ "properties":{
337
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
338
+ }
339
+ },
340
+ "features":[
341
+ {
342
+ "type":"Feature",
343
+ "id":"unique3",
344
+ "geometry":{
345
+ "type":"Polygon",
346
+ "coordinates":[
347
+ [
348
+ [
349
+ -149.880796,
350
+ 61.21988
351
+ ],
352
+ [
353
+ -149.880625,
354
+ 61.221305
355
+ ],
356
+ [
357
+ -149.889386,
358
+ 61.221346
359
+ ],
360
+ [
361
+ -149.880796,
362
+ 61.21988
363
+ ]
364
+ ],
365
+ [
366
+ [
367
+ -149.8807,
368
+ 61.21990
369
+ ],
370
+ [
371
+ -149.880627,
372
+ 61.221300
373
+ ],
374
+ [
375
+ -149.8809,
376
+ 61.221300
377
+ ],
378
+ [
379
+ -149.8807,
380
+ 61.21990
381
+ ]
382
+ ],
383
+ [
384
+ [
385
+ -149.889300,
386
+ 61.221300
387
+ ],
388
+ [
389
+ -149.889382,
390
+ 61.221345
391
+ ],
392
+ [
393
+ -149.889382,
394
+ 61.221445
395
+ ],
396
+ [
397
+ -149.889300,
398
+ 61.221300
399
+ ]
400
+ ]
401
+ ]
402
+ },
403
+ "properties":{
404
+ "name":"Buttress Park sampling location",
405
+ "description":"Boundary of area in downtown Anchorage where sampling occurred"
406
+ }
407
+ },
408
+ {
409
+ "type":"Feature",
410
+ "id":"unique4",
411
+ "geometry":{
412
+ "type":"Polygon",
413
+ "coordinates":[
414
+ [
415
+ [
416
+ -149.888221,
417
+ 61.219643
418
+ ],
419
+ [
420
+ -149.889466,
421
+ 61.219643
422
+ ],
423
+ [
424
+ -149.889251,
425
+ 61.219973
426
+ ],
427
+ [
428
+ -149.887835,
429
+ 61.219952
430
+ ],
431
+ [
432
+ -149.888221,
433
+ 61.219643
434
+ ]
435
+ ]
436
+ ]
437
+ },
438
+ "properties":{
439
+ "includesData":false,
440
+ "name":"Equipment staging area",
441
+ "description":"Area where sampling equipment was stored, no sampling occurred (Note:includesData should be ignored here. Would need to move this feature into another geographicElement.)"
442
+ }
443
+ }
444
+ ]
445
+ }
446
+ ]
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "fileName": "fileName",
4
+ "fileDescription": "fileDescription",
5
+ "fileType": "fileType",
6
+ "fileUri": "http://thisisanexample.com"
7
+ }, {
8
+ "fileName": "allRecs_callCounts_bowhead_2010.jpg",
9
+ "fileDescription": "This image is a spectraplot visualizing the density of Bowhead whale calls in the Northeast Chukchi Sea, AMAR recorder locations, and industry lease areas.",
10
+ "fileType": "JPEG",
11
+ "fileUri": "http://www.workspace.aoos.org/files/28354/ACOUST_SND_CLIP_2008_11_Ed3.csv"
12
+ }, {
13
+ "fileName": "cross_section_perc_sommer_2010.png",
14
+ "fileDescription": ".",
15
+ "fileLink": "https://www.workspace.aoos.org/files/28349/ACOUST_AMBT_NOISE_2007_11_Ed3.csv"
16
+ }, {
17
+ "fileName": "pln40_perc_2010_01.png",
18
+ "fileType": "PNG",
19
+ "fileLink": "http://workspace.aoos.org/files/28344/ACOUST_MMP_2009_11_Ed3.csv"
20
+ }, {
21
+ "fileName": "pln40_spec_summer_2010.png",
22
+ "fileLink": "http://workspace.aoos.org/files/28339/ACOUST_ACQ_2009_11_Ed3.csv"
23
+ }, {
24
+ "fileName": "pln40_spec_summer_2010.png"
25
+ }
26
+ ]
27
+
28
+