adiwg-json_schemas 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.travis.yml +9 -0
- data/CREDITS +3 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.md +36 -0
- data/Rakefile +12 -0
- data/adiwg-json_schemas.gemspec +24 -0
- data/examples/adiwg_project_example_1.json +847 -0
- data/examples/citation.json +60 -0
- data/examples/contact.json +165 -0
- data/examples/contactRef.json +15 -0
- data/examples/dataQuality.json +132 -0
- data/examples/data_example.json +371 -0
- data/examples/date.json +19 -0
- data/examples/distributor.json +53 -0
- data/examples/extent_linestring.json +288 -0
- data/examples/extent_point.json +200 -0
- data/examples/extent_polygon.json +353 -0
- data/examples/full_example.json +1629 -0
- data/examples/geojson.json +253 -0
- data/examples/graphicOverview.json +23 -0
- data/examples/hierarchyLevel.json +90 -0
- data/examples/keywords.json +68 -0
- data/examples/lcc_project_example.json +245 -0
- data/examples/maintInfo.json +22 -0
- data/examples/onlineResource.json +12 -0
- data/examples/resolution.json +9 -0
- data/examples/resourceConstraints.json +25 -0
- data/examples/resourceInfo.json +1287 -0
- data/examples/resourceMaintenance.json +10 -0
- data/examples/taxonomy.json +98 -0
- data/examples/uri.json +7 -0
- data/examples/usage.json +23 -0
- data/lib/adiwg/json_schemas/utils.rb +20 -0
- data/lib/adiwg/json_schemas/version.rb +6 -0
- data/lib/adiwg/json_schemas.rb +7 -0
- data/lib/adiwg-json_schemas.rb +1 -0
- data/schema/schema/citation.json +77 -0
- data/schema/schema/contact.json +175 -0
- data/schema/schema/dataQuality.json +82 -0
- data/schema/schema/distributor.json +89 -0
- data/schema/schema/extent.json +118 -0
- data/schema/schema/geojson/bbox.json +10 -0
- data/schema/schema/geojson/crs.json +53 -0
- data/schema/schema/geojson/geojson.json +131 -0
- data/schema/schema/geojson/geometry.json +123 -0
- data/schema/schema/graphicOverview.json +22 -0
- data/schema/schema/keyword.json +37 -0
- data/schema/schema/maintInfo.json +26 -0
- data/schema/schema/metadata.json +88 -0
- data/schema/schema/onlineResource.json +28 -0
- data/schema/schema/resolution.json +29 -0
- data/schema/schema/resourceConstraint.json +65 -0
- data/schema/schema/resourceInfo.json +151 -0
- data/schema/schema/taxonomy.json +61 -0
- data/schema/schema/usage.json +23 -0
- data/schema/schema.json +42 -0
- data/templates/adiwg_metadata_template.json +585 -0
- data/test/tc_schemas.rb +133 -0
- data/test/tc_utils.rb +26 -0
- metadata +150 -0
@@ -0,0 +1,288 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"description":"Single Line",
|
4
|
+
"geographicElement":[
|
5
|
+
{
|
6
|
+
"type":"Feature",
|
7
|
+
"id":"line1",
|
8
|
+
"properties":{
|
9
|
+
"name":"Summer 2012 Bering Sea Survey Track",
|
10
|
+
"description":"Coordinates of ship track"
|
11
|
+
},
|
12
|
+
"geometry":{
|
13
|
+
"type":"LineString",
|
14
|
+
"coordinates":[
|
15
|
+
[
|
16
|
+
-157.0702509848438,
|
17
|
+
71.10933136359692
|
18
|
+
],
|
19
|
+
[
|
20
|
+
-154.6526281903968,
|
21
|
+
70.40820968995817
|
22
|
+
],
|
23
|
+
[
|
24
|
+
-150.7617407589279,
|
25
|
+
70.02201223417278
|
26
|
+
],
|
27
|
+
[
|
28
|
+
-150.8371960238169,
|
29
|
+
70.43210058905156
|
30
|
+
],
|
31
|
+
[
|
32
|
+
-152.2049884417053,
|
33
|
+
70.87235618158296
|
34
|
+
],
|
35
|
+
[
|
36
|
+
-154.5708878990441,
|
37
|
+
71.04082324476376
|
38
|
+
]
|
39
|
+
]
|
40
|
+
},
|
41
|
+
"crs":{
|
42
|
+
"type":"name",
|
43
|
+
"properties":{
|
44
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
]
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"description":"List of Lines",
|
52
|
+
"geographicElement":[
|
53
|
+
{
|
54
|
+
"type":"Feature",
|
55
|
+
"bbox":[
|
56
|
+
-157.07025098484,
|
57
|
+
70.022012234173,
|
58
|
+
35.2,
|
59
|
+
-150.76174075893,
|
60
|
+
71.109331363597,
|
61
|
+
125.8
|
62
|
+
],
|
63
|
+
"id":"linelist1",
|
64
|
+
"properties":{
|
65
|
+
"name":"Lines",
|
66
|
+
"description":"These lines have shared attributes",
|
67
|
+
"includesData":true
|
68
|
+
},
|
69
|
+
"geometry":{
|
70
|
+
"type":"MultiLineString",
|
71
|
+
"coordinates":[
|
72
|
+
[
|
73
|
+
[
|
74
|
+
-157.0702509848438,
|
75
|
+
71.10933136359692,
|
76
|
+
35.2
|
77
|
+
],
|
78
|
+
[
|
79
|
+
-154.6526281903968,
|
80
|
+
70.40820968995817,
|
81
|
+
68.1
|
82
|
+
],
|
83
|
+
[
|
84
|
+
-150.7617407589279,
|
85
|
+
70.02201223417278,
|
86
|
+
84.7
|
87
|
+
],
|
88
|
+
[
|
89
|
+
-150.8371960238169,
|
90
|
+
70.43210058905156,
|
91
|
+
125.8
|
92
|
+
],
|
93
|
+
[
|
94
|
+
-152.2049884417053,
|
95
|
+
70.87235618158296,
|
96
|
+
116.0
|
97
|
+
]
|
98
|
+
],
|
99
|
+
[
|
100
|
+
[
|
101
|
+
-154.5708878990441,
|
102
|
+
71.04082324476376,
|
103
|
+
36.9
|
104
|
+
],
|
105
|
+
[
|
106
|
+
-150.7617407589279,
|
107
|
+
70.02201223417278,
|
108
|
+
84.7
|
109
|
+
],
|
110
|
+
[
|
111
|
+
-154.6526281903968,
|
112
|
+
70.40820968995817,
|
113
|
+
68.1
|
114
|
+
],
|
115
|
+
[
|
116
|
+
-157.0702509848438,
|
117
|
+
71.10933136359692,
|
118
|
+
35.2
|
119
|
+
]
|
120
|
+
],
|
121
|
+
[
|
122
|
+
[
|
123
|
+
-150.7617407589279,
|
124
|
+
70.02201223417278,
|
125
|
+
84.7
|
126
|
+
],
|
127
|
+
[
|
128
|
+
-154.6526281903968,
|
129
|
+
70.40820968995817,
|
130
|
+
68.1
|
131
|
+
]
|
132
|
+
]
|
133
|
+
]
|
134
|
+
},
|
135
|
+
"crs":{
|
136
|
+
"type":"name",
|
137
|
+
"properties":{
|
138
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
]
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"description":"List of Lines with attributes",
|
146
|
+
"geographicElement":[
|
147
|
+
{
|
148
|
+
"type":"FeatureCollection",
|
149
|
+
"id":"multiline1",
|
150
|
+
"bbox":[
|
151
|
+
-157.07025098484,
|
152
|
+
70.022012234173,
|
153
|
+
35.2,
|
154
|
+
-150.76174075893,
|
155
|
+
71.109331363597,
|
156
|
+
125.8
|
157
|
+
],
|
158
|
+
"properties":{
|
159
|
+
"name":"A FeatureCollection(lines)",
|
160
|
+
"description":"represents GML MultiGeometry"
|
161
|
+
},
|
162
|
+
"crs":{
|
163
|
+
"type":"name",
|
164
|
+
"properties":{
|
165
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"features":[
|
169
|
+
{
|
170
|
+
"type":"Feature",
|
171
|
+
"id":"multiLine001",
|
172
|
+
"properties":{
|
173
|
+
"name":"Josh",
|
174
|
+
"description":"First line in multiline object",
|
175
|
+
"temporalElement":{
|
176
|
+
"date":[
|
177
|
+
"2011-09-15",
|
178
|
+
"2012-08-13",
|
179
|
+
"2013-08-05"
|
180
|
+
]
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"geometry":{
|
184
|
+
"type":"LineString",
|
185
|
+
"coordinates":[
|
186
|
+
[
|
187
|
+
-157.0702509848438,
|
188
|
+
71.10933136359692,
|
189
|
+
35.2
|
190
|
+
],
|
191
|
+
[
|
192
|
+
-154.6526281903968,
|
193
|
+
70.40820968995817,
|
194
|
+
68.1
|
195
|
+
],
|
196
|
+
[
|
197
|
+
-150.7617407589279,
|
198
|
+
70.02201223417278,
|
199
|
+
84.7
|
200
|
+
],
|
201
|
+
[
|
202
|
+
-150.8371960238169,
|
203
|
+
70.43210058905156,
|
204
|
+
125.8
|
205
|
+
],
|
206
|
+
[
|
207
|
+
-152.2049884417053,
|
208
|
+
70.87235618158296,
|
209
|
+
116.0
|
210
|
+
]
|
211
|
+
]
|
212
|
+
}
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"type":"Feature",
|
216
|
+
"id":"multiLine001",
|
217
|
+
"properties":{
|
218
|
+
"name":"Chris",
|
219
|
+
"description":"Second line in multiline object",
|
220
|
+
"temporalElement":{
|
221
|
+
"date":[
|
222
|
+
"2011-09-15",
|
223
|
+
"2012-08-13",
|
224
|
+
"2013-08-05"
|
225
|
+
],
|
226
|
+
"timeInstant":[
|
227
|
+
{
|
228
|
+
"id":"ti-035",
|
229
|
+
"description":"the moment I realized I was lost",
|
230
|
+
"timePosition":"1968-12-15T08:05:00.0+09:00"
|
231
|
+
}
|
232
|
+
]
|
233
|
+
}
|
234
|
+
},
|
235
|
+
"geometry":{
|
236
|
+
"type":"LineString",
|
237
|
+
"coordinates":[
|
238
|
+
[
|
239
|
+
-154.5708878990441,
|
240
|
+
71.04082324476376,
|
241
|
+
36.9
|
242
|
+
],
|
243
|
+
[
|
244
|
+
-150.7617407589279,
|
245
|
+
70.02201223417278,
|
246
|
+
84.7
|
247
|
+
],
|
248
|
+
[
|
249
|
+
-154.6526281903968,
|
250
|
+
70.40820968995817,
|
251
|
+
68.1
|
252
|
+
],
|
253
|
+
[
|
254
|
+
-157.0702509848438,
|
255
|
+
71.10933136359692,
|
256
|
+
35.2
|
257
|
+
]
|
258
|
+
]
|
259
|
+
}
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"type":"Feature",
|
263
|
+
"id":"multiLine003",
|
264
|
+
"properties":{
|
265
|
+
"name":"Allison",
|
266
|
+
"description":"Third line in multiline object"
|
267
|
+
},
|
268
|
+
"geometry":{
|
269
|
+
"type":"LineString",
|
270
|
+
"coordinates":[
|
271
|
+
[
|
272
|
+
-150.7617407589279,
|
273
|
+
70.02201223417278,
|
274
|
+
84.7
|
275
|
+
],
|
276
|
+
[
|
277
|
+
-154.6526281903968,
|
278
|
+
70.40820968995817,
|
279
|
+
68.1
|
280
|
+
]
|
281
|
+
]
|
282
|
+
}
|
283
|
+
}
|
284
|
+
]
|
285
|
+
}
|
286
|
+
]
|
287
|
+
}
|
288
|
+
]
|
@@ -0,0 +1,200 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"description":"Single Points, multiple elements",
|
4
|
+
"geographicElement":[
|
5
|
+
{
|
6
|
+
"type":"Feature",
|
7
|
+
"id":"point1",
|
8
|
+
"properties":{
|
9
|
+
"name":"BS7882",
|
10
|
+
"description":"Sea buoy BS7882 location",
|
11
|
+
"assignedId": [
|
12
|
+
{
|
13
|
+
"contactId": "1",
|
14
|
+
"role": "creator",
|
15
|
+
"resourceIdentifier": [
|
16
|
+
{
|
17
|
+
"identifierName": "http://www.gtnp.org",
|
18
|
+
"identifier": "PNT-12345"
|
19
|
+
}
|
20
|
+
]
|
21
|
+
}
|
22
|
+
]
|
23
|
+
},
|
24
|
+
"geometry":{
|
25
|
+
"type":"Point",
|
26
|
+
"coordinates":[
|
27
|
+
-164.87402357161,
|
28
|
+
59.165040850639
|
29
|
+
]
|
30
|
+
},
|
31
|
+
"crs":{
|
32
|
+
"type":"name",
|
33
|
+
"properties":{
|
34
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"type":"Feature",
|
40
|
+
"id":"point100",
|
41
|
+
"properties":{
|
42
|
+
"identifier":"PNT-12346",
|
43
|
+
"idAuthority":"http://www.gtnp.org",
|
44
|
+
"name":"BS999",
|
45
|
+
"description":"Sea buoy BS999 location"
|
46
|
+
},
|
47
|
+
"geometry":{
|
48
|
+
"type":"Point",
|
49
|
+
"coordinates":[
|
50
|
+
-164.87302357161,
|
51
|
+
59.145040850639
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"crs":{
|
55
|
+
"type":"name",
|
56
|
+
"properties":{
|
57
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
]
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"description":"List of Points",
|
65
|
+
"geographicElement":[
|
66
|
+
{
|
67
|
+
"type":"Feature",
|
68
|
+
"bbox":[
|
69
|
+
-164.88550989974,
|
70
|
+
59.159712874412,
|
71
|
+
-164.86353724349,
|
72
|
+
59.169368826866
|
73
|
+
],
|
74
|
+
"id":"pointlist1",
|
75
|
+
"properties":{
|
76
|
+
"name":"Fishin' spots",
|
77
|
+
"description":"These points have shared attributes",
|
78
|
+
"includesData":true
|
79
|
+
},
|
80
|
+
"geometry":{
|
81
|
+
"type":"MultiPoint",
|
82
|
+
"coordinates":[
|
83
|
+
[
|
84
|
+
-164.87402357161,
|
85
|
+
59.165040850639
|
86
|
+
],
|
87
|
+
[
|
88
|
+
-164.87502357161,
|
89
|
+
59.164040850639
|
90
|
+
],
|
91
|
+
[
|
92
|
+
-164.88387053359,
|
93
|
+
59.161207759012
|
94
|
+
]
|
95
|
+
]
|
96
|
+
},
|
97
|
+
"crs":{
|
98
|
+
"type":"name",
|
99
|
+
"properties":{
|
100
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
]
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"description":"List of Points with attributes",
|
108
|
+
"geographicElement":[
|
109
|
+
{
|
110
|
+
"type":"FeatureCollection",
|
111
|
+
"id":"multiPt1",
|
112
|
+
"bbox":[
|
113
|
+
-164.88550989974,
|
114
|
+
59.159712874412,
|
115
|
+
-164.86353724349,
|
116
|
+
59.169368826866
|
117
|
+
],
|
118
|
+
"properties":{
|
119
|
+
"name":"A FeatureCollection(points)",
|
120
|
+
"description":"represents GML MultiGeometry"
|
121
|
+
},
|
122
|
+
"crs":{
|
123
|
+
"type":"name",
|
124
|
+
"properties":{
|
125
|
+
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"features":[
|
129
|
+
{
|
130
|
+
"type":"Feature",
|
131
|
+
"id":"point010",
|
132
|
+
"properties":{
|
133
|
+
"identifier":"PNT-12345",
|
134
|
+
"idAuthority":"http://www.gtnp.org",
|
135
|
+
"name":"BS7882",
|
136
|
+
"description":"point valid on or after a specific date",
|
137
|
+
"temporalElement":{
|
138
|
+
"date":[
|
139
|
+
"2011-09-15",
|
140
|
+
"2012-08-14"
|
141
|
+
]
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"geometry":{
|
145
|
+
"type":"Point",
|
146
|
+
"coordinates":[
|
147
|
+
-164.88550989974,
|
148
|
+
59.179712874412
|
149
|
+
]
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"type":"Feature",
|
154
|
+
"id":"point012",
|
155
|
+
"properties":{
|
156
|
+
"description":"point valid on or after a specific date",
|
157
|
+
"temporalElement":{
|
158
|
+
"timeInstant":[
|
159
|
+
{
|
160
|
+
"description":"ground condition",
|
161
|
+
"timePosition":"2012-07-15T08:05:00-09:00"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"geometry":{
|
167
|
+
"type":"Point",
|
168
|
+
"coordinates":[
|
169
|
+
-164.87550989974,
|
170
|
+
59.209712874412
|
171
|
+
]
|
172
|
+
}
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"type":"Feature",
|
176
|
+
"id":"point013",
|
177
|
+
"properties":{
|
178
|
+
"description":"point valid over a time period",
|
179
|
+
"temporalElement":{
|
180
|
+
"timePeriod":[
|
181
|
+
{
|
182
|
+
"beginPosition":"2013-08-24T08:05:00",
|
183
|
+
"endPosition":"2013-10-04"
|
184
|
+
}
|
185
|
+
]
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"geometry":{
|
189
|
+
"type":"Point",
|
190
|
+
"coordinates":[
|
191
|
+
-164.89650989974,
|
192
|
+
59.249712874412
|
193
|
+
]
|
194
|
+
}
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|
198
|
+
]
|
199
|
+
}
|
200
|
+
]
|