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,205 @@
1
+ [
2
+ {
3
+ "contactId": "contactId",
4
+ "individualName": "individualName",
5
+ "organizationName": "organizationName",
6
+ "positionName": "positionName",
7
+ "onlineResource": [
8
+ {
9
+ "uri": "http://thisisanexample1.com",
10
+ "protocol": "protocol1",
11
+ "name": "name1",
12
+ "description": "description1",
13
+ "function": "function1"
14
+ }, {
15
+ "uri": "http://thisisanexample2.com",
16
+ "protocol": "protocol2",
17
+ "name": "name2",
18
+ "description": "description2",
19
+ "function": "function2"
20
+ }
21
+ ],
22
+ "contactInstructions": "contactInstructions",
23
+ "phoneBook": [
24
+ {
25
+ "phoneName": "phoneName1",
26
+ "phoneNumber": "111-111-1111",
27
+ "service": ["service11", "service12"]
28
+ }, {
29
+ "phoneName": "phoneName2",
30
+ "phoneNumber": "222-222-2222",
31
+ "service": ["service21", "service22"]
32
+ }
33
+ ],
34
+ "address": {
35
+ "deliveryPoint": ["deliveryPoint1", "deliveryPoint2"],
36
+ "city": "city",
37
+ "administrativeArea": "administrativeArea",
38
+ "postalCode": "postalCode",
39
+ "country": "country",
40
+ "electronicMailAddress": ["example@example1.com", "example@example2.com"]
41
+ }
42
+ }, {
43
+ "contactId": "1",
44
+ "individualName": "Josh Bradley",
45
+ "organizationName": "Arctic Landscape Conservation Cooperative",
46
+ "positionName": "Data Manager",
47
+ "onlineResource": [
48
+ {
49
+ "uri": "http://arcticlcc.org",
50
+ "name": "Arctic LCC website",
51
+ "description": "Website for the Arctic Landscape Conservation Cooperative",
52
+ "function": "information"
53
+ }, {
54
+ "uri": "http://alaska.usgs.gov/akcsc",
55
+ "name": "Alaska Climate Science Center",
56
+ "description": "Website for the USGS Alaska Climate Science Center"
57
+ }, {
58
+ "uri": "https://google.com"
59
+ }
60
+ ],
61
+ "phoneBook": [
62
+ {
63
+ "phoneName": "office",
64
+ "phoneNumber": "+1 907.455.1847",
65
+ "service": ["voice", "sms", "fax"]
66
+ }, {
67
+ "phoneName": "mobile",
68
+ "phoneNumber": "907-455-1847",
69
+ "service": ["voice", "sms", "notISO"]
70
+ }, {
71
+ "phoneName": "alt",
72
+ "phoneNumber": "907-999-9999"
73
+ }
74
+ ],
75
+ "address": {
76
+ "deliveryPoint": ["101 12th Avenue", "Room 110"],
77
+ "city": "Fairbanks",
78
+ "administrativeArea": "AK",
79
+ "postalCode": "99701",
80
+ "country": "USA",
81
+ "electronicMailAddress": ["joshua_bradley@fws.gov", "jbradley@arcticlcc.org"]
82
+ },
83
+ "contactInstructions": "Don't call me, I'll call you."
84
+ }, {
85
+ "contactId": "2",
86
+ "organizationName": "Arctic Landscape Conservation Cooperative",
87
+ "onlineResource": [
88
+ {
89
+ "uri": "http://arcticlcc.org",
90
+ "name": "Arctic LCC website",
91
+ "description": "Website for the Arctic Landscape Conservation Cooperative",
92
+ "function": "information"
93
+ }
94
+ ],
95
+ "phoneBook": [
96
+ {
97
+ "phoneName": "office",
98
+ "phoneNumber": "907-786-3605"
99
+ }, {
100
+ "phoneName": "mobile",
101
+ "phoneNumber": "907-306-1895",
102
+ "service": ["voice", "sms"]
103
+ }, {
104
+ "phoneName": "fax",
105
+ "phoneNumber": "907-786-3592",
106
+ "service": ["fax"]
107
+ }
108
+ ],
109
+ "address": {
110
+ "deliveryPoint": ["1011 E. Tudor Rd"],
111
+ "city": "Anchorage",
112
+ "administrativeArea": "AK",
113
+ "postalCode": "99503",
114
+ "country": "USA",
115
+ "electronicMailAddress": ["staff@arcticlcc.org"]
116
+ }
117
+ }, {
118
+ "contactId": "3",
119
+ "organizationName": "Arctic Landscape Conservation Cooperative",
120
+ "positionName": "Data Manager",
121
+ "address": {
122
+ "deliveryPoint": ["101 12th Avenue", "Room 110"],
123
+ "city": "Fairbanks",
124
+ "administrativeArea": "AK",
125
+ "postalCode": "99701",
126
+ "country": "USA",
127
+ "electronicMailAddress": ["joshua_bradley@fws.gov", "jbradley@arcticlcc.org"]
128
+ }
129
+ }, {
130
+ "contactId": "4",
131
+ "individualName": "Chris Turner",
132
+ "organizationName": "Axiom Consulting & Design",
133
+ "positionName": "Data Librarian",
134
+ "onlineResource": [
135
+ {
136
+ "uri": "http://axiomalaska.com",
137
+ "name": "Axiom Consulting & Design",
138
+ "description": "Website for Axiom Consulting and Design"
139
+ }, {
140
+ "uri": "http://www.aoos.org",
141
+ "name": "The Alaska Ocean Observing System",
142
+ "description": "The homepage for AOOS, the eye on Alaska's coasts and oceans"
143
+ }
144
+ ],
145
+ "phoneBook": [
146
+ {
147
+ "phoneName": "office",
148
+ "phoneNumber": "+1 907.455.1847",
149
+ "service": ["voice", "sms", "fax"]
150
+ }, {
151
+ "phoneName": "mobile",
152
+ "phoneNumber": "907-455-1847",
153
+ "service": ["voice", "sms"]
154
+ }, {
155
+ "phoneName": "alt",
156
+ "phoneNumber": "907-999-9999"
157
+ }
158
+ ]
159
+ ,
160
+ "address": {
161
+ "deliveryPoint": ["523 W 8th Ave", "Suite 104"],
162
+ "city": "Anchorage",
163
+ "administrativeArea": "Alaska",
164
+ "postalCode": "99501",
165
+ "country": "USA",
166
+ "electronicMailAddress": ["chris@axiomalaska.com", "theotherchris@axiomalaska.com"]
167
+ }
168
+ }, {
169
+ "contactId": "5",
170
+ "individualName": "Sirhc Renrut",
171
+ "organizationName": "Moixa Designs and Consulting",
172
+ "positionName": "Data Wrangler",
173
+ "onlineResource": [
174
+ {
175
+ "uri": "http://moixaalaska.com",
176
+ "name": "Moixa Design and Consulting",
177
+ "description": "Website for Moixa Design and Consulting"
178
+ }, {
179
+ "uri": "http://www.aoos.org"
180
+ }
181
+ ],
182
+ "phoneBook": [
183
+ {
184
+ "phoneName": "office",
185
+ "phoneNumber": "+1 907.455.1847",
186
+ "service": ["voice", "sms", "fax"]
187
+ }, {
188
+ "phoneName": "mobile",
189
+ "phoneNumber": "907-455-1847",
190
+ "service": ["voice", "sms"]
191
+ }, {
192
+ "phoneName": "alt",
193
+ "phoneNumber": "907-999-9999"
194
+ }
195
+ ],
196
+ "address": {
197
+ "deliveryPoint": ["532 W 8th Ave", "Suite 401"],
198
+ "city": "Anchorage",
199
+ "administrativeArea": "Alaska",
200
+ "postalCode": "99501",
201
+ "country": "USA",
202
+ "electronicMailAddress": ["sirhc@moixaalaska.com"]
203
+ }
204
+ }
205
+ ]
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "contactId": "contactId",
4
+ "role": "role"
5
+ }, {
6
+ "contactId": "1",
7
+ "role": "custodian"
8
+ }, {
9
+ "contactId": "1",
10
+ "role": "funder"
11
+ }
12
+ ]
@@ -0,0 +1,547 @@
1
+ [
2
+ {
3
+ "dictionaryInfo": {
4
+ "citation": {
5
+ "title": "title",
6
+ "date": [
7
+ {
8
+ "date": "1111-11-11",
9
+ "dateType": "dateType1"
10
+ }, {
11
+ "date": "1112-11-11",
12
+ "dateType": "dateType2"
13
+ }
14
+ ],
15
+ "edition": "edition",
16
+ "responsibleParty": [
17
+ {
18
+ "contactId": "contactId1",
19
+ "role": "role1"
20
+ }, {
21
+ "contactId": "contactId2",
22
+ "role": "role2"
23
+ }
24
+ ],
25
+ "onlineResource": [
26
+ {
27
+ "uri": "http://thisisanexample1.com",
28
+ "protocol": "protocol1",
29
+ "name": "name1",
30
+ "description": "description1",
31
+ "function": "function1"
32
+ }, {
33
+ "uri": "http://thisisanexample2.com",
34
+ "protocol": "protocol2",
35
+ "name": "name2",
36
+ "description": "description2",
37
+ "function": "function2"
38
+ }
39
+ ]
40
+ },
41
+ "description": "description",
42
+ "resourceType": "resourceType",
43
+ "language": "language"
44
+ },
45
+ "domain": [
46
+ {
47
+ "domainId": "domainId1",
48
+ "commonName": "commonName1",
49
+ "codeName": "codeName1",
50
+ "description": "description1",
51
+ "member": [
52
+ {
53
+ "name": "name11",
54
+ "value": "value11",
55
+ "definition": "definition11"
56
+ }, {
57
+ "name": "name12",
58
+ "value": "value12",
59
+ "definition": "definition12"
60
+ }
61
+ ]
62
+ }, {
63
+ "domainId": "domainId2",
64
+ "commonName": "commonName2",
65
+ "codeName": "codeName2",
66
+ "description": "description2",
67
+ "member": [
68
+ {
69
+ "name": "name21",
70
+ "value": "value21",
71
+ "definition": "definition21"
72
+ }, {
73
+ "name": "name22",
74
+ "value": "value22",
75
+ "definition": "definition22"
76
+ }
77
+ ]
78
+ }
79
+ ],
80
+ "entity": [
81
+ {
82
+ "entityId": "entityId1",
83
+ "commonName": "commonName1",
84
+ "codeName": "codeName1",
85
+ "alias": ["alias11", "alias12"],
86
+ "definition": "definition1",
87
+ "primaryKeyAttributeCodeName": ["primaryKeyAttributeCodeName11", "primaryKeyAttributeCodeName12"],
88
+ "index": [
89
+ {
90
+ "codeName": "codeName11",
91
+ "allowDuplicates": false,
92
+ "attributeCodeName": ["attributeCodeName111", "attributeCodeName112"]
93
+ }, {
94
+ "codeName": "codeName12",
95
+ "allowDuplicates": false,
96
+ "attributeCodeName": ["attributeCodeName121", "attributeCodeName122"]
97
+ }
98
+ ],
99
+ "attribute": [
100
+ {
101
+ "commonName": "commonName11",
102
+ "codeName": "codeName11",
103
+ "alias": ["alias111", "alias112"],
104
+ "definition": "definition11",
105
+ "dataType": "dataType11",
106
+ "allowNull": true,
107
+ "units": "units11",
108
+ "domainId": "domainId11",
109
+ "minValue": "minValue11",
110
+ "maxValue": "maxValue11"
111
+ }, {
112
+ "commonName": "commonName12",
113
+ "codeName": "codeName12",
114
+ "definition": "definition12",
115
+ "dataType": "dataType12",
116
+ "allowNull": true,
117
+ "units": "units12",
118
+ "domainId": "domainId12",
119
+ "minValue": "minValue12",
120
+ "maxValue": "maxValue12"
121
+ }
122
+ ],
123
+ "foreignKey": [
124
+ {
125
+ "localAttributeCodeName": ["localAttributeCodeName111", "localAttributeCodeName112"],
126
+ "referencedEntityCodeName": "referencedEntityCodeName11",
127
+ "referencedAttributeCodeName": ["referencedAttributeCodeName111", "referencedAttributeCodeName112"]
128
+ }, {
129
+ "localAttributeCodeName": ["localAttributeCodeName121", "localAttributeCodeName122"],
130
+ "referencedEntityCodeName": "referencedEntityCodeName12",
131
+ "referencedAttributeCodeName": ["referencedAttributeCodeName121", "referencedAttributeCodeName122"]
132
+ }
133
+ ]
134
+ }
135
+ ]
136
+ }, {
137
+ "dictionaryInfo": {
138
+ "citation": {
139
+ "title": "Project Metadata Database",
140
+ "date": [
141
+ {
142
+ "date": "2014-11-24",
143
+ "dateType": "creation"
144
+ }
145
+ ],
146
+ "edition": "14.0.2",
147
+ "responsibleParty": [
148
+ {
149
+ "contactId": "8",
150
+ "role": "author"
151
+ }
152
+ ]
153
+ },
154
+ "description": "Data dictionary for the ADIwg project metadata standard for 2011 based on the FGDC standard.",
155
+ "resourceType": "database",
156
+ "language": "eng; US"
157
+ },
158
+ "domain": [
159
+ {
160
+ "domainId": "domain001",
161
+ "commonName": "agency type",
162
+ "codeName": "AGENCY_TYPE",
163
+ "description": "Legal classification for the organization.",
164
+ "member": [
165
+ {
166
+ "name": "federal government",
167
+ "value": "federal",
168
+ "definition": "An organization withing the federal government."
169
+ }, {
170
+ "name": "state government",
171
+ "value": "state",
172
+ "definition": "An organization withing a state or provincial government."
173
+ }, {
174
+ "name": "local government",
175
+ "value": "local",
176
+ "definition": "An organization withing a local county, city, or municipal government."
177
+ }, {
178
+ "name": "private business",
179
+ "value": "private",
180
+ "definition": "A private for-profit business."
181
+ }, {
182
+ "name": "non-profit business",
183
+ "value": "nonProfit",
184
+ "definition": "A private non-profit business."
185
+ }, {
186
+ "name": "academic institute",
187
+ "value": "academic",
188
+ "definition": "An organization of higher learning such as a college or university."
189
+ }, {
190
+ "name": "military",
191
+ "value": "military",
192
+ "definition": "An organization within a recognized military structure such as the Army. Navy, or Air Force."
193
+ }
194
+ ]
195
+ }, {
196
+ "domainId": "domain002",
197
+ "commonName": "agency address type",
198
+ "codeName": "ADDRESS_TYPE",
199
+ "description": "Type of agency address.",
200
+ "member": [
201
+ {
202
+ "name": "mailing address",
203
+ "value": "mailing",
204
+ "definition": "The preferred address for receiving mail. May be a physical address or P.O. Box."
205
+ }, {
206
+ "name": "physical address",
207
+ "value": "physical",
208
+ "definition": "The street address of the agency."
209
+ }
210
+ ]
211
+ }, {
212
+ "domainId": "domain003",
213
+ "commonName": "sky cover code",
214
+ "codeName": "sky_cover_code",
215
+ "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",
216
+ "member": [
217
+ {
218
+ "name": "0",
219
+ "value": "0",
220
+ "definition": "clear skys"
221
+ }, {
222
+ "name": "1",
223
+ "value": "1",
224
+ "definition": "1 okta or less, 1/10 or less, but not zero"
225
+ }, {
226
+ "name": "2",
227
+ "value": "2",
228
+ "definition": "2 oktas 2/10 - 3/10"
229
+ }, {
230
+ "name": "7",
231
+ "value": "7",
232
+ "definition": "7 oktas or more, 9/10 or more, but not 8 oktas but not 10/10"
233
+ }, {
234
+ "name": "8",
235
+ "value": "8",
236
+ "definition": "8 oktas, 10/10"
237
+ }, {
238
+ "name": "9",
239
+ "value": "9",
240
+ "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."
241
+ }
242
+ ]
243
+ }, {
244
+ "domainId": "domain004",
245
+ "commonName": "low cloud type",
246
+ "codeName": "low_cloud_cover_type",
247
+ "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",
248
+ "member": [
249
+ {
250
+ "name": "0",
251
+ "value": "0",
252
+ "definition": "No CL clouds -- no cumulus, cumulonimbus, stratocumulus, or stratus."
253
+ }, {
254
+ "name": "3",
255
+ "value": "3",
256
+ "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."
257
+ }, {
258
+ "name": "4",
259
+ "value": "4",
260
+ "definition": "If no cumulonimbus present, CL=4 if stratocumulus formed by the spreading out of cumulus is present."
261
+ }, {
262
+ "name": "8",
263
+ "value": "8",
264
+ "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."
265
+ }, {
266
+ "name": "9",
267
+ "value": "9",
268
+ "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."
269
+ }, {
270
+ "name": "\/",
271
+ "value": "\/",
272
+ "definition": "CL clouds are not visible owing to fog or similar obscuring phenomena."
273
+ }
274
+ ]
275
+ }
276
+ ],
277
+ "entity": [
278
+ {
279
+ "entityId": "entity001",
280
+ "commonName": "agency",
281
+ "codeName": "AGENCY",
282
+ "definition": "Organizations providing some contribution to Alaska Science Center research.",
283
+ "primaryKeyAttributeCodeName": ["agency_id"],
284
+ "index": [
285
+ {
286
+ "codeName": "ui_agencyCode",
287
+ "allowDuplicates": false,
288
+ "attributeCodeName": ["agency_code"]
289
+ }
290
+ ],
291
+ "attribute": [
292
+ {
293
+ "commonName": "agency ID",
294
+ "codeName": "agency_id",
295
+ "definition": "Unique sequential ID for the agency assigned by the database.",
296
+ "dataType": "integer",
297
+ "allowNull": false
298
+ }, {
299
+ "commonName": "agency code",
300
+ "codeName": "agency_code",
301
+ "definition": "Unique alphanumeric ID for the agency assigned by the data steward.",
302
+ "dataType": "varchar(25)",
303
+ "allowNull": false,
304
+ "domainId": "domain001"
305
+ }, {
306
+ "commonName": "agency type code",
307
+ "codeName": "agency_type_code",
308
+ "definition": "Agency legal organization classification.",
309
+ "dataType": "varchar(25)",
310
+ "allowNull": false
311
+ }, {
312
+ "commonName": "agency name",
313
+ "codeName": "agency_name",
314
+ "definition": "Name of agency.",
315
+ "dataType": "varchar(100)",
316
+ "allowNull": false
317
+ }, {
318
+ "commonName": "agency comment",
319
+ "codeName": "comment",
320
+ "definition": "Supplemental information about the agency.",
321
+ "dataType": "varchar(500)",
322
+ "allowNull": true
323
+ }, {
324
+ "commonName": "time stamp",
325
+ "codeName": "ts",
326
+ "definition": "datetime of creation or latest update - maintained by system",
327
+ "dataType": "datetime",
328
+ "allowNull": false
329
+ }
330
+ ]
331
+ }, {
332
+ "entityId": "entity002",
333
+ "commonName": "agency address",
334
+ "codeName": "ADDRESS",
335
+ "definition": "Addresses for an AGENCY",
336
+ "primaryKeyAttributeCodeName": ["agency_id", "address_type_code"],
337
+ "attribute": [
338
+ {
339
+ "commonName": "agency ID",
340
+ "codeName": "agency_id",
341
+ "definition": "Unique sequential ID for the agency assigned by the database.",
342
+ "dataType": "integer",
343
+ "allowNull": false
344
+ }, {
345
+ "commonName": "address type",
346
+ "codeName": "address_type_code",
347
+ "definition": "Type of address.",
348
+ "dataType": "varchar(25)",
349
+ "allowNull": false,
350
+ "domainId": "domain002"
351
+ }, {
352
+ "commonName": "street address",
353
+ "codeName": "street",
354
+ "definition": "Street and street number or P.O. Box number.",
355
+ "dataType": "varchar(100)",
356
+ "allowNull": false
357
+ }, {
358
+ "commonName": "city",
359
+ "codeName": "city",
360
+ "definition": "City name.",
361
+ "dataType": "varchar(50)",
362
+ "allowNull": false
363
+ }, {
364
+ "commonName": "state",
365
+ "codeName": "state_code",
366
+ "definition": "State or province code",
367
+ "dataType": "char(3)",
368
+ "allowNull": false
369
+ }, {
370
+ "commonName": "zip code",
371
+ "codeName": "postal_code",
372
+ "definition": "Postal code.",
373
+ "dataType": "char(9)",
374
+ "allowNull": true
375
+ }
376
+ ],
377
+ "foreignKey": [
378
+ {
379
+ "localAttributeCodeName": ["agency_id"],
380
+ "referencedEntityCodeName": "AGENCY",
381
+ "referencedAttributeCodeName": ["agency_id"]
382
+ }
383
+ ]
384
+ }, {
385
+ "entityId": "entity003",
386
+ "commonName": "weather station",
387
+ "codeName": "WEATHER_STATION",
388
+ "definition": "Table describing weather permanent and semi-permanent weather all-season recording stations in Alaska.",
389
+ "primaryKeyAttributeCodeName": ["station_id"],
390
+ "attribute": [
391
+ {
392
+ "commonName": "weather station id",
393
+ "codeName": "station_id",
394
+ "definition": "Unique identifier for weather station.",
395
+ "dataType": "integer",
396
+ "allowNull": false
397
+ }, {
398
+ "commonName": "weather station name",
399
+ "codeName": "station_name",
400
+ "definition": "Common name for the weather station.",
401
+ "dataType": "varchar(100)",
402
+ "allowNull": false
403
+ }, {
404
+ "commonName": "station latitude",
405
+ "codeName": "latitude",
406
+ "definition": "Latitude of weather station.",
407
+ "dataType": "decimal",
408
+ "allowNull": false,
409
+ "units": "degree",
410
+ "minValue": "-90.0",
411
+ "maxValue": "90.0"
412
+ }, {
413
+ "commonName": "station longitude",
414
+ "codeName": "longitude",
415
+ "definition": "Longitude of weather station.",
416
+ "dataType": "decimal",
417
+ "allowNull": false,
418
+ "units": "degree",
419
+ "minValue": "-180.0",
420
+ "maxValue": "180.0"
421
+ }, {
422
+ "commonName": "station elevation",
423
+ "codeName": "elevation_M",
424
+ "definition": "Elevation of weather station above sea level in meters.",
425
+ "dataType": "decimal",
426
+ "allowNull": true,
427
+ "units": "meter",
428
+ "minValue": "0",
429
+ "maxValue": "3000"
430
+ }
431
+ ]
432
+ }, {
433
+ "entityId": "entity004",
434
+ "commonName": "weather station observation",
435
+ "codeName": "WEATHER_STATION_OBSERVATION",
436
+ "definition": "Table of discontinuous weather station observation records including temperature, humidity, wind, precipitation, and cloud cover.",
437
+ "primaryKeyAttributeCodeName": ["obs_id"],
438
+ "attribute": [
439
+ {
440
+ "commonName": "weather observation ID",
441
+ "codeName": "obs_id",
442
+ "definition": "Unique identifier of a single weather station observation record.",
443
+ "dataType": "integer",
444
+ "allowNull": false
445
+ }, {
446
+ "commonName": "weather station ID",
447
+ "codeName": "station_id",
448
+ "definition": "Unique identifier for weather station.",
449
+ "dataType": "integer",
450
+ "allowNull": false
451
+ }, {
452
+ "commonName": "observation date and time",
453
+ "codeName": "obs_datetime",
454
+ "definition": "Date and UTC with offset 24h time the weather observation was made.",
455
+ "dataType": "datetime",
456
+ "allowNull": false
457
+ }, {
458
+ "commonName": "ambient air temperature Celsius",
459
+ "codeName": "air_temp_C",
460
+ "definition": "Ambient air temperature recorded at weather station in degrees Celsius.",
461
+ "dataType": "decimal",
462
+ "allowNull": false,
463
+ "units": "degC",
464
+ "minValue": "-60",
465
+ "maxValue": "50"
466
+ }, {
467
+ "commonName": "ambient air temperature Fahrenheit",
468
+ "codeName": "air_temp_F",
469
+ "definition": "Ambient air temperature recorded at weather station in degrees Fahrenheit.",
470
+ "dataType": "decimal",
471
+ "allowNull": false,
472
+ "units": "degF",
473
+ "minValue": "-100",
474
+ "maxValue": "130"
475
+ }, {
476
+ "commonName": "daily precipitation",
477
+ "codeName": "precipitation_IN",
478
+ "definition": "The amount of rain fall or snow melt falling in a 24 hour period in inches.",
479
+ "dataType": "decimal",
480
+ "allowNull": false,
481
+ "units": "inch",
482
+ "minValue": "0",
483
+ "maxValue": "25"
484
+ }, {
485
+ "commonName": "daily precipitation",
486
+ "codeName": "precipitation_mm",
487
+ "definition": "The amount of rain fall or snow melt falling in a 24 hour period in millimeters.",
488
+ "dataType": "decimal",
489
+ "allowNull": false,
490
+ "units": "mm",
491
+ "minValue": "0",
492
+ "maxValue": "500"
493
+ }, {
494
+ "commonName": "wind direction",
495
+ "codeName": "wind_direction_DEG",
496
+ "definition": "Average direction wind is coming from in degrees. True north is 0 degrees.",
497
+ "dataType": "integer",
498
+ "allowNull": true,
499
+ "units": "degree",
500
+ "minValue": "0",
501
+ "maxValue": "359"
502
+ }, {
503
+ "commonName": "wind speed",
504
+ "codeName": "wind_speed_MPH",
505
+ "definition": "Average wind speed in miles per hour (MPH).",
506
+ "dataType": "integer",
507
+ "allowNull": true,
508
+ "units": "mph",
509
+ "minValue": "0",
510
+ "maxValue": "200"
511
+ }, {
512
+ "commonName": "wind speed",
513
+ "codeName": "wind_speed_KPH",
514
+ "definition": "Average wind speed in kilometers per hour (KPH).",
515
+ "dataType": "integer",
516
+ "allowNull": true,
517
+ "units": "kph",
518
+ "minValue": "0",
519
+ "maxValue": "300"
520
+ }, {
521
+ "commonName": "sky cover code",
522
+ "codeName": "sky_cover_code",
523
+ "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",
524
+ "dataType": "char(1)",
525
+ "allowNull": true,
526
+ "units": "sunnyDays",
527
+ "domainId": "domain003"
528
+ }, {
529
+ "commonName": "low cloud type",
530
+ "codeName": "low_cloud_cover_code",
531
+ "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",
532
+ "dataType": "char(1)",
533
+ "allowNull": true,
534
+ "domainId": "domain004"
535
+ }
536
+ ],
537
+ "foreignKey": [
538
+ {
539
+ "localAttributeCodeName": ["station_id"],
540
+ "referencedEntityCodeName": "WEATHER_STATION",
541
+ "referencedAttributeCodeName": ["station_id"]
542
+ }
543
+ ]
544
+ }
545
+ ]
546
+ }
547
+ ]