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,246 @@
1
+ [
2
+ {
3
+ "description":"Single Points, multiple elements",
4
+ "geographicElement":[
5
+ {
6
+ "type":"Feature",
7
+ "id":"point1",
8
+ "properties":{
9
+ "name":"BS7882",
10
+ "description":"Borehole BS7882 location",
11
+ "identifier":[
12
+ {
13
+ "identifier":"US 01",
14
+ "authority":{
15
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
16
+ "responsibleParty":[
17
+ {
18
+ "contactId":"8",
19
+ "role":"originator"
20
+ }
21
+ ],
22
+ "onlineResource":[
23
+ {
24
+ "uri":"http://www.gtnp.org"
25
+ }
26
+ ]
27
+ }
28
+ },
29
+ {
30
+ "identifier":"ATI",
31
+ "authority":{
32
+ "title":"US Geological Survey borehole identifier",
33
+ "responsibleParty":[
34
+ {
35
+ "contactId":"3",
36
+ "role":"originator"
37
+ }
38
+ ],
39
+ "onlineResource":[
40
+ {
41
+ "uri":"http://data.usgs.gov/climateMonitoring/region/show?region=alaska"
42
+ }
43
+ ]
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ "geometry":{
49
+ "type":"Point",
50
+ "coordinates":[
51
+ -164.87402357161,
52
+ 59.165040850639
53
+ ]
54
+ },
55
+ "crs":{
56
+ "type":"name",
57
+ "properties":{
58
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "type":"Feature",
64
+ "id":"point100",
65
+ "properties":{
66
+ "identifier":[
67
+ {
68
+ "identifier":"PNT-12346",
69
+ "authority":{
70
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
71
+ "onlineResource":[
72
+ {
73
+ "uri":"http://www.gtnp.org"
74
+ }
75
+ ]
76
+ }
77
+ }
78
+ ],
79
+ "name":"BS999",
80
+ "description":"Sea buoy BS999 location"
81
+ },
82
+ "geometry":{
83
+ "type":"Point",
84
+ "coordinates":[
85
+ -164.87302357161,
86
+ 59.145040850639
87
+ ]
88
+ },
89
+ "crs":{
90
+ "type":"name",
91
+ "properties":{
92
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
93
+ }
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "description":"List of Points",
100
+ "geographicElement":[
101
+ {
102
+ "type":"Feature",
103
+ "bbox":[
104
+ -164.88550989974,
105
+ 59.159712874412,
106
+ -164.86353724349,
107
+ 59.169368826866
108
+ ],
109
+ "id":"pointlist1",
110
+ "properties":{
111
+ "name":"Fishin' spots",
112
+ "description":"These points have shared attributes",
113
+ "includesData":true
114
+ },
115
+ "geometry":{
116
+ "type":"MultiPoint",
117
+ "coordinates":[
118
+ [
119
+ -164.87402357161,
120
+ 59.165040850639
121
+ ],
122
+ [
123
+ -164.87502357161,
124
+ 59.164040850639
125
+ ],
126
+ [
127
+ -164.88387053359,
128
+ 59.161207759012
129
+ ]
130
+ ]
131
+ },
132
+ "crs":{
133
+ "type":"name",
134
+ "properties":{
135
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
136
+ }
137
+ }
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "description":"List of Points with attributes",
143
+ "geographicElement":[
144
+ {
145
+ "type":"FeatureCollection",
146
+ "id":"multiPt1",
147
+ "bbox":[
148
+ -164.88550989974,
149
+ 59.159712874412,
150
+ -164.86353724349,
151
+ 59.169368826866
152
+ ],
153
+ "properties":{
154
+ "name":"A FeatureCollection(points)",
155
+ "description":"represents GML MultiGeometry"
156
+ },
157
+ "crs":{
158
+ "type":"name",
159
+ "properties":{
160
+ "name":"urn:ogc:def:crs:OGC:1.3:CRS84"
161
+ }
162
+ },
163
+ "features":[
164
+ {
165
+ "type":"Feature",
166
+ "id":"point010",
167
+ "properties":{
168
+ "identifier":[
169
+ {
170
+ "identifier":"PNT-12345",
171
+ "authority":{
172
+ "title":"Global Terrestrial Network for Permafrost Identifiers",
173
+ "onlineResource":[
174
+ {
175
+ "uri":"http://www.gtnp.org"
176
+ }
177
+ ]
178
+ }
179
+ }
180
+ ],
181
+ "name":"BS7882",
182
+ "description":"point valid on or after a specific date",
183
+ "temporalElement":{
184
+ "date":[
185
+ "2011-09-15",
186
+ "2012-08-14"
187
+ ]
188
+ }
189
+ },
190
+ "geometry":{
191
+ "type":"Point",
192
+ "coordinates":[
193
+ -164.88550989974,
194
+ 59.179712874412
195
+ ]
196
+ }
197
+ },
198
+ {
199
+ "type":"Feature",
200
+ "id":"point012",
201
+ "properties":{
202
+ "description":"point valid on or after a specific date",
203
+ "temporalElement":{
204
+ "timeInstant":[
205
+ {
206
+ "description":"ground condition",
207
+ "timePosition":"2012-07-15T08:05:00-09:00"
208
+ }
209
+ ]
210
+ }
211
+ },
212
+ "geometry":{
213
+ "type":"Point",
214
+ "coordinates":[
215
+ -164.87550989974,
216
+ 59.209712874412
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "type":"Feature",
222
+ "id":"point013",
223
+ "properties":{
224
+ "description":"point valid over a time period",
225
+ "temporalElement":{
226
+ "timePeriod":[
227
+ {
228
+ "beginPosition":"2013-08-24T08:05:00",
229
+ "endPosition":"2013-10-04"
230
+ }
231
+ ]
232
+ }
233
+ },
234
+ "geometry":{
235
+ "type":"Point",
236
+ "coordinates":[
237
+ -164.89650989974,
238
+ 59.249712874412
239
+ ]
240
+ }
241
+ }
242
+ ]
243
+ }
244
+ ]
245
+ }
246
+ ]
@@ -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
+ "verticalCRSUri":"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
+ "verticalCRSUri":"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
+ "verticalCRSUri":"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
+ "verticalCRSUri":"http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:axis-name:EPSG::9904"
350
+ }
351
+ ]
352
+ }
353
+ ]