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,353 @@
1
+ [
2
+ {
3
+ "description":"BBOX only",
4
+ "geographicElement":[
5
+ {
6
+ "type":"Feature",
7
+ "bbox":[
8
+ -148.1764,
9
+ 57.01428,
10
+ -132.821,
11
+ 60.917
12
+ ],
13
+ "geometry":null,
14
+ "properties":{
15
+ "includesData":true,
16
+ "description":"Gulf of Alaska"
17
+ },
18
+ "crs":{
19
+ "type":"link",
20
+ "properties":{
21
+ "href":"http://spatialreference.org/ref/epsg/4326/proj4/",
22
+ "type":"proj4"
23
+ }
24
+ }
25
+ }
26
+ ],
27
+ "temporalElement":{
28
+ "timeInstant":[
29
+ {
30
+ "id":"ti-001",
31
+ "description":"ground condition",
32
+ "timePosition":"2012-07-15T08:05:00.0+09:00"
33
+ }
34
+ ]
35
+ },
36
+ "verticalElement":[
37
+ {
38
+ "minimumValue":-500,
39
+ "maximumValue":0,
40
+ "verticalCRSTitle":"NAVD88 depth",
41
+ "verticalCRSLink":"http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:crs:EPSG::6357"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "description":"Polygon with BBOX",
47
+ "geographicElement":[
48
+ {
49
+ "type":"Feature",
50
+ "id":"unique1",
51
+ "bbox":[
52
+ -148.1764,
53
+ 57.01428,
54
+ -132.821,
55
+ 60.917
56
+ ],
57
+ "geometry":{
58
+ "type":"Polygon",
59
+ "coordinates":[
60
+ [
61
+ [
62
+ -139.388046,
63
+ 59.828561
64
+ ],
65
+ [
66
+ -140.882186,
67
+ 59.839602
68
+ ],
69
+ [
70
+ -143.101425,
71
+ 60.22375
72
+ ],
73
+ [
74
+ -147.056503,
75
+ 60.829147
76
+ ],
77
+ [
78
+ -148.902206,
79
+ 59.982807
80
+ ],
81
+ [
82
+ -148.792343,
83
+ 57.944338
84
+ ],
85
+ [
86
+ -134.576034,
87
+ 57.663361
88
+ ]
89
+ ]
90
+ ]
91
+ },
92
+ "properties":{
93
+ "includesData":true,
94
+ "description":"Gulf of Alaska"
95
+ },
96
+ "crs":{
97
+ "type":"name",
98
+ "properties":{
99
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "type":"Feature",
105
+ "id":"unique101",
106
+ "bbox":[
107
+ -97.067240989074,
108
+ 18.556394455134,
109
+ -80.807475364074,
110
+ 29.366941330134
111
+ ],
112
+ "geometry":{
113
+ "type":"Polygon",
114
+ "coordinates":[
115
+ [
116
+ [
117
+ -84.059428489074,
118
+ 29.366941330134
119
+ ],
120
+ [
121
+ -97.067240989074,
122
+ 28.048581955134
123
+ ],
124
+ [
125
+ -95.397319114074,
126
+ 18.556394455134
127
+ ],
128
+ [
129
+ -80.895365989074,
130
+ 24.620847580134
131
+ ],
132
+ [
133
+ -80.807475364074,
134
+ 24.708738205134
135
+ ],
136
+ [
137
+ -84.059428489074,
138
+ 29.366941330134
139
+ ]
140
+ ]
141
+ ]
142
+ },
143
+ "properties":{
144
+ "includesData":false,
145
+ "description":"Gulf of Mexico",
146
+ "text":"Whatever I want."
147
+ },
148
+ "crs":{
149
+ "type":"name",
150
+ "properties":{
151
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
152
+ }
153
+ }
154
+ }
155
+ ],
156
+ "temporalElement":{
157
+ "timePeriod":[
158
+ {
159
+ "id":"tp-001",
160
+ "description":"Ground Condition",
161
+ "beginPosition":"1987-05-16T16:05:00",
162
+ "endPosition":"2011-12"
163
+ },
164
+ {
165
+ "id":"tp-101",
166
+ "description":"Below Ground Condition",
167
+ "beginPosition":"1987-08-13T16:05:00",
168
+ "endPosition":"2012-12-12"
169
+ }
170
+ ]
171
+ },
172
+ "verticalElement":[
173
+ {
174
+ "minimumValue":0,
175
+ "maximumValue":1000,
176
+ "verticalCRSTitle":"NAVD88 height",
177
+ "verticalCRSLink":"http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:crs:EPSG::5703"
178
+ },
179
+ {
180
+ "minimumValue":1500,
181
+ "maximumValue":0,
182
+ "verticalCRSTitle":"NAVD88 depth",
183
+ "verticalCRSLink":"http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:crs:EPSG::6357"
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "description":"A feature collection with just polygons",
189
+ "geographicElement":[
190
+ {
191
+ "type":"FeatureCollection",
192
+ "id":"unique2",
193
+ "bbox":[
194
+ -149.89603182812,
195
+ 61.215716023773,
196
+ -149.87405917187,
197
+ 61.225371976227
198
+ ],
199
+ "properties":{
200
+ "name":"A FeatureCollection(polygons)",
201
+ "description":"represents GML MultiGeometry",
202
+ "includesData":true
203
+ },
204
+ "crs":{
205
+ "type":"name",
206
+ "properties":{
207
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
208
+ }
209
+ },
210
+ "features":[
211
+ {
212
+ "type":"Feature",
213
+ "id":"unique3",
214
+ "geometry":{
215
+ "type":"Polygon",
216
+ "coordinates":[
217
+ [
218
+ [
219
+ -149.880796,
220
+ 61.21988
221
+ ],
222
+ [
223
+ -149.880625,
224
+ 61.221305
225
+ ],
226
+ [
227
+ -149.889386,
228
+ 61.221346
229
+ ],
230
+ [
231
+ -149.880796,
232
+ 61.21988
233
+ ]
234
+ ],
235
+ [
236
+ [
237
+ -149.8807,
238
+ 61.21990
239
+ ],
240
+ [
241
+ -149.880627,
242
+ 61.221300
243
+ ],
244
+ [
245
+ -149.8809,
246
+ 61.221300
247
+ ],
248
+ [
249
+ -149.8807,
250
+ 61.21990
251
+ ]
252
+ ],
253
+ [
254
+ [
255
+ -149.889300,
256
+ 61.221300
257
+ ],
258
+ [
259
+ -149.889382,
260
+ 61.221345
261
+ ],
262
+ [
263
+ -149.889382,
264
+ 61.221445
265
+ ],
266
+ [
267
+ -149.889300,
268
+ 61.221300
269
+ ]
270
+ ]
271
+ ]
272
+ },
273
+ "properties":{
274
+ "name":"Buttress Park sampling location",
275
+ "description":"Boundary of area in downtown Anchorage where sampling occurred"
276
+ }
277
+ },
278
+ {
279
+ "type":"Feature",
280
+ "id":"unique4",
281
+ "geometry":{
282
+ "type":"Polygon",
283
+ "coordinates":[
284
+ [
285
+ [
286
+ -149.888221,
287
+ 61.219643
288
+ ],
289
+ [
290
+ -149.889466,
291
+ 61.219643
292
+ ],
293
+ [
294
+ -149.889251,
295
+ 61.219973
296
+ ],
297
+ [
298
+ -149.887835,
299
+ 61.219952
300
+ ],
301
+ [
302
+ -149.888221,
303
+ 61.219643
304
+ ]
305
+ ]
306
+ ]
307
+ },
308
+ "properties":{
309
+ "includesData":false,
310
+ "name":"Equipment staging area",
311
+ "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.)"
312
+ }
313
+ }
314
+ ]
315
+ }
316
+ ],
317
+ "temporalElement":{
318
+ "timePeriod":[
319
+ {
320
+ "id":"tp-002",
321
+ "beginPosition":"2013-08-24T08:05:00",
322
+ "endPosition":"2013-10-04"
323
+ },
324
+ {
325
+ "id":"tp-004",
326
+ "beginPosition":"2010-08-24T08:05:00",
327
+ "endPosition":"2014-10-04",
328
+ "description":"The best days of my life"
329
+ }
330
+ ],
331
+ "timeInstant":[
332
+ {
333
+ "id":"ti-002",
334
+ "description":"below ground condition",
335
+ "timePosition":"2012-07-15T08:05:00.0+09:00"
336
+ },
337
+ {
338
+ "id":"ti-003",
339
+ "description":"below ground condition",
340
+ "timePosition":"2012-08-16T08:06:00.0+09:00"
341
+ }
342
+ ]
343
+ },
344
+ "verticalElement":[
345
+ {
346
+ "minimumValue":60.5,
347
+ "maximumValue":110.68,
348
+ "verticalCRSTitle":"NAVD88 height (ftUS)",
349
+ "verticalCRSLink":"http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:axis-name:EPSG::9904"
350
+ }
351
+ ]
352
+ }
353
+ ]