adiwg-json_schemas 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63e0cc40589c24d9525d81b0d86fa497c19d9e76
4
- data.tar.gz: ee6c150c94d7f0786b9137d8e31d5a542e2e5fb7
3
+ metadata.gz: 4d121a13c389c7318dc32e92234307cde6641477
4
+ data.tar.gz: 9387e2765f1c906c3c55485cda33e64cdba16c64
5
5
  SHA512:
6
- metadata.gz: 84da83cd876c4709a25b17aa5005ea48e15ff509626b1290636c9f0cf4725fc99879b22c6da793f7b33d739d7cf21aaa3032bf5c14d5137442a0d202ea03cc76
7
- data.tar.gz: f70457995c726cd888f73dead532e1b615eb26651ac86ce77044ef5770284088a6aaae101068b036bbf8e67ed541976cfeff380c6e607f62c355a1d1e61cde8a
6
+ metadata.gz: 88a727aacd320d576e4e0c57ad912f0cb3a5af91ed174e3bf831001b8597684fe275c1d047e8f6e000e5709f553adf079be649b47a2babb8c783e03efc648325
7
+ data.tar.gz: aa6c032d8cd6c65d49d9d59060723da617251a089689fda2ea7cd8d3784e78f94a8811d2144c3c27307fce087a23f5c92541a621452193ce18583c20b981246e
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake", ">= 0"
23
- spec.add_development_dependency "json-schema", "~> 2.2"
23
+ spec.add_development_dependency "json-schema", "~> 2.4.0"
24
24
  spec.add_development_dependency "minitest", "~>5"
25
25
  end
@@ -0,0 +1,413 @@
1
+ [
2
+ {
3
+ "dictionaryInfo": {
4
+ "citation": {
5
+ "title": "Project Metadata Database",
6
+ "date": [
7
+ {
8
+ "date": "2014-11-24",
9
+ "dateType": "creation"
10
+ }
11
+ ],
12
+ "edition": "14.0.2",
13
+ "responsibleParty": [
14
+ {
15
+ "contactId": "8",
16
+ "role": "author"
17
+ }
18
+ ]
19
+ },
20
+ "description": "Data dictionary for the ADIwg project metadata standard for 2011 based on the FGDC standard.",
21
+ "resourceType": "database",
22
+ "language": "eng; US"
23
+ },
24
+ "domain": [
25
+ {
26
+ "domainId": "domain001",
27
+ "commonName": "agency type",
28
+ "codeName": "AGENCY_TYPE",
29
+ "description": "Legal classification for the organization.",
30
+ "member": [
31
+ {
32
+ "name": "federal government",
33
+ "value": "federal",
34
+ "definition": "An organization withing the federal government."
35
+ }, {
36
+ "name": "state government",
37
+ "value": "state",
38
+ "definition": "An organization withing a state or provincial government."
39
+ }, {
40
+ "name": "local government",
41
+ "value": "local",
42
+ "definition": "An organization withing a local county, city, or municipal government."
43
+ }, {
44
+ "name": "private business",
45
+ "value": "private",
46
+ "definition": "A private for-profit business."
47
+ }, {
48
+ "name": "non-profit business",
49
+ "value": "nonProfit",
50
+ "definition": "A private non-profit business."
51
+ }, {
52
+ "name": "academic institute",
53
+ "value": "academic",
54
+ "definition": "An organization of higher learning such as a college or university."
55
+ }, {
56
+ "name": "military",
57
+ "value": "military",
58
+ "definition": "An organization within a recognized military structure such as the Army. Navy, or Air Force."
59
+ }
60
+ ]
61
+ }, {
62
+ "domainId": "domain002",
63
+ "commonName": "agency address type",
64
+ "codeName": "ADDRESS_TYPE",
65
+ "description": "Type of agency address.",
66
+ "member": [
67
+ {
68
+ "name": "mailing address",
69
+ "value": "mailing",
70
+ "definition": "The preferred address for receiving mail. May be a physical address or P.O. Box."
71
+ }, {
72
+ "name": "physical address",
73
+ "value": "physical",
74
+ "definition": "The street address of the agency."
75
+ }
76
+ ]
77
+ }, {
78
+ "domainId": "domain003",
79
+ "commonName": "sky cover code",
80
+ "codeName": "sky_cover_code",
81
+ "description": "NH (Amount of the sky covered by all clouds) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. Cloud/WX group format: NH CL h CM CH W W W W",
82
+ "member": [
83
+ {
84
+ "name": "0",
85
+ "value": "0",
86
+ "definition": "clear skys"
87
+ }, {
88
+ "name": "1",
89
+ "value": "1",
90
+ "definition": "1 okta or less, 1/10 or less, but not zero"
91
+ }, {
92
+ "name": "2",
93
+ "value": "2",
94
+ "definition": "2 oktas 2/10 - 3/10"
95
+ }, {
96
+ "name": "7",
97
+ "value": "7",
98
+ "definition": "7 oktas or more, 9/10 or more, but not 8 oktas but not 10/10"
99
+ }, {
100
+ "name": "8",
101
+ "value": "8",
102
+ "definition": "8 oktas, 10/10"
103
+ }, {
104
+ "name": "9",
105
+ "value": "9",
106
+ "definition": "Sky obscured by for and/or other meteorolocial phenonena / Cloud cover is indiscernible for reasons other than for or other meteorological phenomena such as smoke, or observation is not made."
107
+ }
108
+ ]
109
+ }, {
110
+ "domainId": "domain004",
111
+ "commonName": "low cloud type",
112
+ "codeName": "low_cloud_cover_type",
113
+ "description": "CL (low cloud type) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. CL = type of low cloud, based on the priority given. A solidus (/) is reported if CL clouds are not visible owing to fog or similar obscuring phenomena. Cloud/WX group format: NH CL h CM CH W W W W",
114
+ "member": [
115
+ {
116
+ "name": "0",
117
+ "value": "0",
118
+ "definition": "No CL clouds -- no cumulus, cumulonimbus, stratocumulus, or stratus."
119
+ }, {
120
+ "name": "3",
121
+ "value": "3",
122
+ "definition": "If cumulonimbus are present, with or without other clouds, CL=3 if the upper part of none of the cumulonimbus clouds present is clearly fibrous or striated."
123
+ }, {
124
+ "name": "4",
125
+ "value": "4",
126
+ "definition": "If no cumulonimbus present, CL=4 if stratocumulus formed by the spreading out of cumulus is present."
127
+ }, {
128
+ "name": "8",
129
+ "value": "8",
130
+ "definition": "If no cumulonimbus present, CL=8 if the CL code figure 4 is not applicable and if cumulus and stratocumulus clouds with bases at different levels are present."
131
+ }, {
132
+ "name": "9",
133
+ "value": "9",
134
+ "definition": "If cumulonimbus are present, with or without other clouds, CL=9 if the upper part of at least one of the cumulonimbus clouds present is clearly fibrous or striated."
135
+ }, {
136
+ "name": "\/",
137
+ "value": "\/",
138
+ "definition": "CL clouds are not visible owing to fog or similar obscuring phenomena."
139
+ }
140
+ ]
141
+ }
142
+ ],
143
+ "entity": [
144
+ {
145
+ "entityId": "entity001",
146
+ "commonName": "agency",
147
+ "codeName": "AGENCY",
148
+ "definition": "Organizations providing some contribution to Alaska Science Center research.",
149
+ "primaryKeyAttributeCodeName": ["agency_id"],
150
+ "index": [
151
+ {
152
+ "codeName": "ui_agencyCode",
153
+ "allowDuplicates": false,
154
+ "attributeCodeName": ["agency_code"]
155
+ }
156
+ ],
157
+ "attribute": [
158
+ {
159
+ "commonName": "agency ID",
160
+ "codeName": "agency_id",
161
+ "definition": "Unique sequential ID for the agency assigned by the database.",
162
+ "dataType": "integer",
163
+ "allowNull": false
164
+ }, {
165
+ "commonName": "agency code",
166
+ "codeName": "agency_code",
167
+ "definition": "Unique alphanumeric ID for the agency assigned by the data steward.",
168
+ "dataType": "varchar(25)",
169
+ "allowNull": false,
170
+ "domainId": "domain001"
171
+ }, {
172
+ "commonName": "agency type code",
173
+ "codeName": "agency_type_code",
174
+ "definition": "Agency legal organization classification.",
175
+ "dataType": "varchar(25)",
176
+ "allowNull": false
177
+ }, {
178
+ "commonName": "agency name",
179
+ "codeName": "agency_name",
180
+ "definition": "Name of agency.",
181
+ "dataType": "varchar(100)",
182
+ "allowNull": false
183
+ }, {
184
+ "commonName": "agency comment",
185
+ "codeName": "comment",
186
+ "definition": "Supplemental information about the agency.",
187
+ "dataType": "varchar(500)",
188
+ "allowNull": true
189
+ }, {
190
+ "commonName": "time stamp",
191
+ "codeName": "ts",
192
+ "definition": "datetime of creation or latest update - maintained by system",
193
+ "dataType": "datetime",
194
+ "allowNull": false
195
+ }
196
+ ]
197
+ }, {
198
+ "entityId": "entity002",
199
+ "commonName": "agency address",
200
+ "codeName": "ADDRESS",
201
+ "definition": "Addresses for an AGENCY",
202
+ "primaryKeyAttributeCodeName": ["agency_id", "address_type_code"],
203
+ "attribute": [
204
+ {
205
+ "commonName": "agency ID",
206
+ "codeName": "agency_id",
207
+ "definition": "Unique sequential ID for the agency assigned by the database.",
208
+ "dataType": "integer",
209
+ "allowNull": false
210
+ }, {
211
+ "commonName": "address type",
212
+ "codeName": "address_type_code",
213
+ "definition": "Type of address.",
214
+ "dataType": "varchar(25)",
215
+ "allowNull": false,
216
+ "domainId": "domain002"
217
+ }, {
218
+ "commonName": "street address",
219
+ "codeName": "street",
220
+ "definition": "Street and street number or P.O. Box number.",
221
+ "dataType": "varchar(100)",
222
+ "allowNull": false
223
+ }, {
224
+ "commonName": "city",
225
+ "codeName": "city",
226
+ "definition": "City name.",
227
+ "dataType": "varchar(50)",
228
+ "allowNull": false
229
+ }, {
230
+ "commonName": "state",
231
+ "codeName": "state_code",
232
+ "definition": "State or province code",
233
+ "dataType": "char(3)",
234
+ "allowNull": false
235
+ }, {
236
+ "commonName": "zip code",
237
+ "codeName": "postal_code",
238
+ "definition": "Postal code.",
239
+ "dataType": "char(9)",
240
+ "allowNull": true
241
+ }
242
+ ],
243
+ "foreignKey": [
244
+ {
245
+ "localAttributeCodeName": ["agency_id"],
246
+ "referencedEntityCodeName": "AGENCY",
247
+ "referencedAttributeCodeName": ["agency_id"]
248
+ }
249
+ ]
250
+ }, {
251
+ "entityId": "entity003",
252
+ "commonName": "weather station",
253
+ "codeName": "WEATHER_STATION",
254
+ "definition": "Table describing weather permanent and semi-permanent weather all-season recording stations in Alaska.",
255
+ "primaryKeyAttributeCodeName": ["station_id"],
256
+ "attribute": [
257
+ {
258
+ "commonName": "weather station id",
259
+ "codeName": "station_id",
260
+ "definition": "Unique identifier for weather station.",
261
+ "dataType": "integer",
262
+ "allowNull": false
263
+ }, {
264
+ "commonName": "weather station name",
265
+ "codeName": "station_name",
266
+ "definition": "Common name for the weather station.",
267
+ "dataType": "varchar(100)",
268
+ "allowNull": false
269
+ }, {
270
+ "commonName": "station latitude",
271
+ "codeName": "latitude",
272
+ "definition": "Latitude of weather station.",
273
+ "dataType": "decimal",
274
+ "allowNull": false,
275
+ "units": "degree",
276
+ "minValue": "-90.0",
277
+ "maxValue": "90.0"
278
+ }, {
279
+ "commonName": "station longitude",
280
+ "codeName": "longitude",
281
+ "definition": "Longitude of weather station.",
282
+ "dataType": "decimal",
283
+ "allowNull": false,
284
+ "units": "degree",
285
+ "minValue": "-180.0",
286
+ "maxValue": "180.0"
287
+ }, {
288
+ "commonName": "station elevation",
289
+ "codeName": "elevation_M",
290
+ "definition": "Elevation of weather station above sea level in meters.",
291
+ "dataType": "decimal",
292
+ "allowNull": true,
293
+ "units": "meter",
294
+ "minValue": "0",
295
+ "maxValue": "3000"
296
+ }
297
+ ]
298
+ }, {
299
+ "entityId": "entity004",
300
+ "commonName": "weather station observation",
301
+ "codeName": "WEATHER_STATION_OBSERVATION",
302
+ "definition": "Table of discontinuous weather station observation records including temperature, humidity, wind, precipitation, and cloud cover.",
303
+ "primaryKeyAttributeCodeName": ["obs_id"],
304
+ "attribute": [
305
+ {
306
+ "commonName": "weather observation ID",
307
+ "codeName": "obs_id",
308
+ "definition": "Unique identifier of a single weather station observation record.",
309
+ "dataType": "integer",
310
+ "allowNull": false
311
+ }, {
312
+ "commonName": "weather station ID",
313
+ "codeName": "station_id",
314
+ "definition": "Unique identifier for weather station.",
315
+ "dataType": "integer",
316
+ "allowNull": false
317
+ }, {
318
+ "commonName": "observation date and time",
319
+ "codeName": "obs_datetime",
320
+ "definition": "Date and UTC with offset 24h time the weather observation was made.",
321
+ "dataType": "datetime",
322
+ "allowNull": false
323
+ }, {
324
+ "commonName": "ambient air temperature Celsius",
325
+ "codeName": "air_temp_C",
326
+ "definition": "Ambient air temperature recorded at weather station in degrees Celsius.",
327
+ "dataType": "decimal",
328
+ "allowNull": false,
329
+ "units": "degC",
330
+ "minValue": "-60",
331
+ "maxValue": "50"
332
+ }, {
333
+ "commonName": "ambient air temperature Fahrenheit",
334
+ "codeName": "air_temp_F",
335
+ "definition": "Ambient air temperature recorded at weather station in degrees Fahrenheit.",
336
+ "dataType": "decimal",
337
+ "allowNull": false,
338
+ "units": "degF",
339
+ "minValue": "-100",
340
+ "maxValue": "130"
341
+ }, {
342
+ "commonName": "daily precipitation",
343
+ "codeName": "precipitation_IN",
344
+ "definition": "The amount of rain fall or snow melt falling in a 24 hour period in inches.",
345
+ "dataType": "decimal",
346
+ "allowNull": false,
347
+ "units": "inch",
348
+ "minValue": "0",
349
+ "maxValue": "25"
350
+ }, {
351
+ "commonName": "daily precipitation",
352
+ "codeName": "precipitation_mm",
353
+ "definition": "The amount of rain fall or snow melt falling in a 24 hour period in millimeters.",
354
+ "dataType": "decimal",
355
+ "allowNull": false,
356
+ "units": "mm",
357
+ "minValue": "0",
358
+ "maxValue": "500"
359
+ }, {
360
+ "commonName": "wind direction",
361
+ "codeName": "wind_direction_DEG",
362
+ "definition": "Average direction wind is coming from in degrees. True north is 0 degrees.",
363
+ "dataType": "integer",
364
+ "allowNull": true,
365
+ "units": "degree",
366
+ "minValue": "0",
367
+ "maxValue": "359"
368
+ }, {
369
+ "commonName": "wind speed",
370
+ "codeName": "wind_speed_MPH",
371
+ "definition": "Average wind speed in miles per hour (MPH).",
372
+ "dataType": "integer",
373
+ "allowNull": true,
374
+ "units": "mph",
375
+ "minValue": "0",
376
+ "maxValue": "200"
377
+ }, {
378
+ "commonName": "wind speed",
379
+ "codeName": "wind_speed_KPH",
380
+ "definition": "Average wind speed in kilometers per hour (KPH).",
381
+ "dataType": "integer",
382
+ "allowNull": true,
383
+ "units": "kph",
384
+ "minValue": "0",
385
+ "maxValue": "300"
386
+ }, {
387
+ "commonName": "sky cover code",
388
+ "codeName": "sky_cover_code",
389
+ "definition": "NH (Amount of the sky covered by all clouds) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. Cloud/WX group format: NH CL h CM CH W W W W",
390
+ "dataType": "char(1)",
391
+ "allowNull": true,
392
+ "units": "sunnyDays",
393
+ "domainId": "domain003"
394
+ }, {
395
+ "commonName": "low cloud type",
396
+ "codeName": "low_cloud_cover_code",
397
+ "definition": "CL (low cloud type) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. CL = type of low cloud, based on the priority given. A solidus (/) is reported if CL clouds are not visible owing to fog or similar obscuring phenomena. Cloud/WX group format: NH CL h CM CH W W W W",
398
+ "dataType": "char(1)",
399
+ "allowNull": true,
400
+ "domainId": "domain004"
401
+ }
402
+ ],
403
+ "foreignKey": [
404
+ {
405
+ "localAttributeCodeName": ["station_id"],
406
+ "referencedEntityCodeName": "WEATHER_STATION",
407
+ "referencedAttributeCodeName": ["station_id"]
408
+ }
409
+ ]
410
+ }
411
+ ]
412
+ }
413
+ ]