adiwg-mdjson_schemas 1.1.3 → 2.0.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/README.md +14 -3
  4. data/adiwg-json_schemas.gemspec +2 -2
  5. data/bower.json +0 -1
  6. data/examples/additionalDocumentation.json +9 -60
  7. data/examples/address.json +14 -10
  8. data/examples/allocation.json +12 -0
  9. data/examples/associatedResource.json +10 -118
  10. data/examples/attribute.json +27 -0
  11. data/examples/attributeGroup.json +17 -0
  12. data/examples/boundingBox.json +6 -0
  13. data/examples/citation.json +69 -127
  14. data/examples/computedBbox.json +399 -0
  15. data/examples/constraint.json +62 -0
  16. data/examples/contact.json +40 -207
  17. data/examples/coverageDescription.json +21 -0
  18. data/examples/date.json +8 -19
  19. data/examples/dictionary.json +58 -0
  20. data/examples/dimension.json +11 -0
  21. data/examples/distribution.json +26 -0
  22. data/examples/distributor.json +22 -142
  23. data/examples/domain.json +29 -0
  24. data/examples/domainItem.json +11 -0
  25. data/examples/duration.json +17 -0
  26. data/examples/entity.json +48 -0
  27. data/examples/entityAttribute.json +31 -0
  28. data/examples/entityForeignKey.json +17 -0
  29. data/examples/entityIndex.json +8 -0
  30. data/examples/extent.json +60 -0
  31. data/examples/featureCollection.json +58 -0
  32. data/examples/featureProperties.json +16 -0
  33. data/examples/format.json +7 -14
  34. data/examples/funding.json +33 -0
  35. data/examples/geoJson.json +185 -0
  36. data/examples/geographicExtent.json +22 -0
  37. data/examples/geometryCollection.json +14 -0
  38. data/examples/geometryFeature.json +12 -0
  39. data/examples/geometryObject.json +90 -0
  40. data/examples/georectifiedRepresentation.json +28 -0
  41. data/examples/georeferencableRepresentation.json +25 -0
  42. data/examples/gmlIdentifier.json +8 -0
  43. data/examples/graphic.json +33 -0
  44. data/examples/gridRepresentation.json +14 -0
  45. data/examples/identifier.json +9 -0
  46. data/examples/imageDescription.json +15 -0
  47. data/examples/keyword.json +14 -0
  48. data/examples/keywordObject.json +12 -0
  49. data/examples/legalConstraint.json +21 -0
  50. data/examples/lineage.json +21 -0
  51. data/examples/locale.json +12 -3
  52. data/examples/maintenance.json +38 -0
  53. data/examples/mdJson.json +99 -0
  54. data/examples/measure.json +5 -0
  55. data/examples/medium.json +16 -0
  56. data/examples/metadata.json +102 -0
  57. data/examples/metadataInfo.json +68 -101
  58. data/examples/onlineResource.json +13 -17
  59. data/examples/orderProcess.json +6 -0
  60. data/examples/party.json +21 -0
  61. data/examples/phone.json +9 -0
  62. data/examples/processStep.json +34 -0
  63. data/examples/releasability.json +28 -0
  64. data/examples/resourceInfo.json +230 -1256
  65. data/examples/responsibleParty.json +31 -0
  66. data/examples/schema.json +8 -0
  67. data/examples/scope.json +33 -0
  68. data/examples/scopeDescription.json +8 -0
  69. data/examples/securityConstraint.json +13 -0
  70. data/examples/series.json +9 -0
  71. data/examples/source.json +23 -0
  72. data/examples/spatialReference.json +34 -0
  73. data/examples/spatialRepresentation.json +59 -0
  74. data/examples/spatialResolution.json +11 -0
  75. data/examples/taxonomicClassification.json +59 -0
  76. data/examples/taxonomicSystem.json +13 -0
  77. data/examples/taxonomy.json +79 -188
  78. data/examples/temporalExtent.json +11 -0
  79. data/examples/timeInstant.json +13 -0
  80. data/examples/timeInterval.json +8 -0
  81. data/examples/timePeriod.json +26 -0
  82. data/examples/transferOption.json +36 -0
  83. data/examples/usage.json +48 -33
  84. data/examples/vectorObject.json +4 -0
  85. data/examples/vectorRepresentation.json +10 -0
  86. data/examples/verticalExtent.json +10 -17
  87. data/examples/voucher.json +12 -0
  88. data/lib/adiwg/mdjson_schemas/utils.rb +45 -15
  89. data/lib/adiwg/mdjson_schemas/validator.rb +6 -7
  90. data/lib/adiwg/mdjson_schemas/version.rb +1 -1
  91. data/lib/adiwg/mdjson_schemas.rb +4 -2
  92. data/schema/additionalDocumentation.json +29 -0
  93. data/schema/associatedResource.json +49 -0
  94. data/schema/attribute.json +157 -0
  95. data/schema/attributeGroup.json +29 -0
  96. data/schema/{schema/geojson/bbox.json → bbox.json} +2 -2
  97. data/schema/{schema/citation.json → citation.json} +73 -99
  98. data/schema/common.json +49 -0
  99. data/schema/{schema/resourceConstraint.json → constraint.json} +83 -13
  100. data/schema/contact.json +234 -0
  101. data/schema/coverageDescription.json +50 -0
  102. data/schema/dataDictionary.json +71 -0
  103. data/schema/distribution.json +35 -0
  104. data/schema/distributor.json +46 -0
  105. data/schema/domain.json +65 -0
  106. data/schema/entity.json +235 -0
  107. data/schema/extent.json +59 -0
  108. data/schema/format.json +37 -0
  109. data/schema/funding.json +67 -0
  110. data/schema/geographicExtent.json +87 -0
  111. data/schema/{schema/geojson/geojson.json → geojson.json} +16 -44
  112. data/schema/{schema/geojson/geometry.json → geometry.json} +2 -1
  113. data/schema/georectifiedRepresentation.json +89 -0
  114. data/schema/georeferencableRepresentation.json +49 -0
  115. data/schema/{schema/graphicOverview.json → graphic.json} +19 -6
  116. data/schema/{schema/gridInfo.json → gridRepresentation.json} +7 -13
  117. data/schema/identifier.json +47 -0
  118. data/schema/imageDescription.json +92 -0
  119. data/schema/{schema/keyword.json → keyword.json} +18 -4
  120. data/schema/{schema/dataQuality.json → lineage.json} +92 -57
  121. data/schema/{schema/maintInfo.json → maintInfo.json} +24 -6
  122. data/schema/measure.json +31 -0
  123. data/schema/medium.json +55 -0
  124. data/schema/metadata.json +77 -0
  125. data/schema/metadataInfo.json +112 -0
  126. data/schema/{schema/onlineResource.json → onlineResource.json} +1 -1
  127. data/schema/orderProcess.json +45 -0
  128. data/schema/releasability.json +42 -0
  129. data/schema/{schema/resourceInfo.json → resourceInfo.json} +112 -189
  130. data/schema/responsibility.json +56 -0
  131. data/schema/schema.json +16 -31
  132. data/schema/scope.json +55 -0
  133. data/schema/spatialReference.json +26 -0
  134. data/schema/spatialRepresentation.json +83 -0
  135. data/schema/spatialResolution.json +54 -0
  136. data/schema/taxonomy.json +178 -0
  137. data/schema/temporalExtent.json +42 -0
  138. data/schema/timeInstant.json +46 -0
  139. data/schema/timePeriod.json +126 -0
  140. data/schema/transferOption.json +61 -0
  141. data/schema/{schema/usage.json → usage.json} +34 -4
  142. data/schema/vectorRepresentation.json +51 -0
  143. data/schema/verticalExtent.json +37 -0
  144. data/test/helper.rb +32 -0
  145. data/test/tc_additionalDocumentation.rb +8 -0
  146. data/test/tc_address.rb +8 -0
  147. data/test/tc_associatedResource.rb +8 -0
  148. data/test/tc_attribute.rb +8 -0
  149. data/test/tc_attributeGroup.rb +8 -0
  150. data/test/tc_boundingBox.rb +8 -0
  151. data/test/tc_citation.rb +8 -0
  152. data/test/tc_constraint.rb +8 -0
  153. data/test/tc_contact.rb +8 -0
  154. data/test/tc_coverageDescription.rb +8 -0
  155. data/test/tc_dataDictionary.rb +8 -0
  156. data/test/tc_dimension.rb +8 -0
  157. data/test/tc_distribution.rb +8 -0
  158. data/test/tc_distributor.rb +8 -0
  159. data/test/tc_domain.rb +8 -0
  160. data/test/tc_domainItem.rb +8 -0
  161. data/test/tc_duration.rb +8 -0
  162. data/test/tc_entity.rb +20 -0
  163. data/test/tc_extent.rb +8 -0
  164. data/test/tc_featureCollection.rb +8 -0
  165. data/test/tc_featureProperties.rb +8 -0
  166. data/test/tc_format.rb +8 -0
  167. data/test/tc_funding.rb +8 -0
  168. data/test/tc_geographicElement.rb +12 -0
  169. data/test/tc_geographicExtent.rb +8 -0
  170. data/test/tc_geometryCollection.rb +8 -0
  171. data/test/tc_geometryFeature.rb +8 -0
  172. data/test/tc_geometryObject.rb +8 -0
  173. data/test/tc_georectifiedRepresentation.rb +8 -0
  174. data/test/tc_georeferencableRepresentation.rb +8 -0
  175. data/test/tc_graphic.rb +8 -0
  176. data/test/tc_gridRepresentation.rb +8 -0
  177. data/test/tc_identifier.rb +8 -0
  178. data/test/tc_imageDescription.rb +8 -0
  179. data/test/tc_jsonschema.rb +16 -0
  180. data/test/tc_keyword.rb +8 -0
  181. data/test/tc_lineage.rb +8 -0
  182. data/test/tc_maintInfo.rb +8 -0
  183. data/test/tc_measure.rb +8 -0
  184. data/test/tc_medium.rb +8 -0
  185. data/test/tc_metadata.rb +8 -0
  186. data/test/tc_metadataInfo.rb +8 -0
  187. data/test/tc_onlineResource.rb +8 -0
  188. data/test/tc_orderProcess.rb +8 -0
  189. data/test/tc_party.rb +8 -0
  190. data/test/tc_processStep.rb +8 -0
  191. data/test/tc_releasability.rb +8 -0
  192. data/test/tc_resourceInfo.rb +8 -0
  193. data/test/tc_responsibility.rb +8 -0
  194. data/test/tc_schema.rb +8 -0
  195. data/test/tc_scope.rb +8 -0
  196. data/test/tc_source.rb +8 -0
  197. data/test/tc_spatialReference.rb +8 -0
  198. data/test/tc_spatialRepresentation.rb +8 -0
  199. data/test/tc_spatialResolution.rb +8 -0
  200. data/test/tc_taxonomicClassification.rb +8 -0
  201. data/test/tc_taxonomicSystem.rb +8 -0
  202. data/test/tc_taxonomy.rb +8 -0
  203. data/test/tc_temporalExtent.rb +8 -0
  204. data/test/tc_timeInstant.rb +8 -0
  205. data/test/tc_timePeriod.rb +8 -0
  206. data/test/tc_transferOption.rb +8 -0
  207. data/test/tc_uri.rb +8 -0
  208. data/test/tc_usage.rb +8 -0
  209. data/test/tc_utils.rb +8 -11
  210. data/test/tc_vectorRepresentation.rb +13 -0
  211. data/test/tc_verticalExtent.rb +8 -0
  212. data/test/tc_voucher.rb +8 -0
  213. metadata +264 -57
  214. data/examples/contactRef.json +0 -12
  215. data/examples/coverageInfo.json +0 -148
  216. data/examples/dataDictionary.json +0 -549
  217. data/examples/dataQuality.json +0 -272
  218. data/examples/extent_linestring.json +0 -288
  219. data/examples/extent_point.json +0 -246
  220. data/examples/extent_polygon.json +0 -353
  221. data/examples/full_example.json +0 -3065
  222. data/examples/full_example2.json +0 -2325
  223. data/examples/geojson.json +0 -446
  224. data/examples/graphicOverview.json +0 -28
  225. data/examples/gridInfo.json +0 -23
  226. data/examples/hierarchyLevel.json +0 -90
  227. data/examples/keywords.json +0 -144
  228. data/examples/lcc_project_example.json +0 -326
  229. data/examples/legalConstraints.json +0 -17
  230. data/examples/maintInfo.json +0 -34
  231. data/examples/minimum_example.json +0 -35
  232. data/examples/resolution.json +0 -9
  233. data/examples/resourceMaintenance.json +0 -10
  234. data/examples/securityConstraints.json +0 -13
  235. data/examples/spatialRef.json +0 -14
  236. data/examples/temporalElement.json +0 -29
  237. data/schema/schema/contact.json +0 -262
  238. data/schema/schema/coverageInfo.json +0 -303
  239. data/schema/schema/dataDictionary.json +0 -335
  240. data/schema/schema/distributor.json +0 -216
  241. data/schema/schema/extent.json +0 -215
  242. data/schema/schema/geojson/crs.json +0 -99
  243. data/schema/schema/metadata.json +0 -188
  244. data/schema/schema/resolution.json +0 -51
  245. data/schema/schema/taxonomy.json +0 -122
  246. data/test/tc_schemas.rb +0 -243
  247. /data/schema/{schema/locale.json → locale.json} +0 -0
@@ -1,549 +0,0 @@
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
- "includedWithDataset": true
45
- },
46
- "domain": [
47
- {
48
- "domainId": "domainId1",
49
- "commonName": "commonName1",
50
- "codeName": "codeName1",
51
- "description": "description1",
52
- "member": [
53
- {
54
- "name": "name11",
55
- "value": "value11",
56
- "definition": "definition11"
57
- }, {
58
- "name": "name12",
59
- "value": "value12",
60
- "definition": "definition12"
61
- }
62
- ]
63
- }, {
64
- "domainId": "domainId2",
65
- "commonName": "commonName2",
66
- "codeName": "codeName2",
67
- "description": "description2",
68
- "member": [
69
- {
70
- "name": "name21",
71
- "value": "value21",
72
- "definition": "definition21"
73
- }, {
74
- "name": "name22",
75
- "value": "value22",
76
- "definition": "definition22"
77
- }
78
- ]
79
- }
80
- ],
81
- "entity": [
82
- {
83
- "entityId": "entityId1",
84
- "commonName": "commonName1",
85
- "codeName": "codeName1",
86
- "alias": ["alias11", "alias12"],
87
- "definition": "definition1",
88
- "primaryKeyAttributeCodeName": ["primaryKeyAttributeCodeName11", "primaryKeyAttributeCodeName12"],
89
- "index": [
90
- {
91
- "codeName": "codeName11",
92
- "allowDuplicates": false,
93
- "attributeCodeName": ["attributeCodeName111", "attributeCodeName112"]
94
- }, {
95
- "codeName": "codeName12",
96
- "allowDuplicates": false,
97
- "attributeCodeName": ["attributeCodeName121", "attributeCodeName122"]
98
- }
99
- ],
100
- "attribute": [
101
- {
102
- "commonName": "commonName11",
103
- "codeName": "codeName11",
104
- "alias": ["alias111", "alias112"],
105
- "definition": "definition11",
106
- "dataType": "dataType11",
107
- "allowNull": true,
108
- "units": "units11",
109
- "domainId": "domainId11",
110
- "minValue": "minValue11",
111
- "maxValue": "maxValue11"
112
- }, {
113
- "commonName": "commonName12",
114
- "codeName": "codeName12",
115
- "definition": "definition12",
116
- "dataType": "dataType12",
117
- "allowNull": true,
118
- "units": "units12",
119
- "domainId": "domainId12",
120
- "minValue": "minValue12",
121
- "maxValue": "maxValue12"
122
- }
123
- ],
124
- "foreignKey": [
125
- {
126
- "localAttributeCodeName": ["localAttributeCodeName111", "localAttributeCodeName112"],
127
- "referencedEntityCodeName": "referencedEntityCodeName11",
128
- "referencedAttributeCodeName": ["referencedAttributeCodeName111", "referencedAttributeCodeName112"]
129
- }, {
130
- "localAttributeCodeName": ["localAttributeCodeName121", "localAttributeCodeName122"],
131
- "referencedEntityCodeName": "referencedEntityCodeName12",
132
- "referencedAttributeCodeName": ["referencedAttributeCodeName121", "referencedAttributeCodeName122"]
133
- }
134
- ]
135
- }
136
- ]
137
- }, {
138
- "dictionaryInfo": {
139
- "citation": {
140
- "title": "Project Metadata Database",
141
- "date": [
142
- {
143
- "date": "2014-11-24",
144
- "dateType": "creation"
145
- }
146
- ],
147
- "edition": "14.0.2",
148
- "responsibleParty": [
149
- {
150
- "contactId": "8",
151
- "role": "author"
152
- }
153
- ]
154
- },
155
- "description": "Data dictionary for the ADIwg project metadata standard for 2011 based on the FGDC standard.",
156
- "resourceType": "database",
157
- "language": "eng; US",
158
- "includedWithDataset": false
159
- },
160
- "domain": [
161
- {
162
- "domainId": "domain001",
163
- "commonName": "agency type",
164
- "codeName": "AGENCY_TYPE",
165
- "description": "Legal classification for the organization.",
166
- "member": [
167
- {
168
- "name": "federal government",
169
- "value": "federal",
170
- "definition": "An organization withing the federal government."
171
- }, {
172
- "name": "state government",
173
- "value": "state",
174
- "definition": "An organization withing a state or provincial government."
175
- }, {
176
- "name": "local government",
177
- "value": "local",
178
- "definition": "An organization withing a local county, city, or municipal government."
179
- }, {
180
- "name": "private business",
181
- "value": "private",
182
- "definition": "A private for-profit business."
183
- }, {
184
- "name": "non-profit business",
185
- "value": "nonProfit",
186
- "definition": "A private non-profit business."
187
- }, {
188
- "name": "academic institute",
189
- "value": "academic",
190
- "definition": "An organization of higher learning such as a college or university."
191
- }, {
192
- "name": "military",
193
- "value": "military",
194
- "definition": "An organization within a recognized military structure such as the Army. Navy, or Air Force."
195
- }
196
- ]
197
- }, {
198
- "domainId": "domain002",
199
- "commonName": "agency address type",
200
- "codeName": "ADDRESS_TYPE",
201
- "description": "Type of agency address.",
202
- "member": [
203
- {
204
- "name": "mailing address",
205
- "value": "mailing",
206
- "definition": "The preferred address for receiving mail. May be a physical address or P.O. Box."
207
- }, {
208
- "name": "physical address",
209
- "value": "physical",
210
- "definition": "The street address of the agency."
211
- }
212
- ]
213
- }, {
214
- "domainId": "domain003",
215
- "commonName": "sky cover code",
216
- "codeName": "sky_cover_code",
217
- "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",
218
- "member": [
219
- {
220
- "name": "0",
221
- "value": "0",
222
- "definition": "clear skys"
223
- }, {
224
- "name": "1",
225
- "value": "1",
226
- "definition": "1 okta or less, 1/10 or less, but not zero"
227
- }, {
228
- "name": "2",
229
- "value": "2",
230
- "definition": "2 oktas 2/10 - 3/10"
231
- }, {
232
- "name": "7",
233
- "value": "7",
234
- "definition": "7 oktas or more, 9/10 or more, but not 8 oktas but not 10/10"
235
- }, {
236
- "name": "8",
237
- "value": "8",
238
- "definition": "8 oktas, 10/10"
239
- }, {
240
- "name": "9",
241
- "value": "9",
242
- "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."
243
- }
244
- ]
245
- }, {
246
- "domainId": "domain004",
247
- "commonName": "low cloud type",
248
- "codeName": "low_cloud_cover_type",
249
- "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",
250
- "member": [
251
- {
252
- "name": "0",
253
- "value": "0",
254
- "definition": "No CL clouds -- no cumulus, cumulonimbus, stratocumulus, or stratus."
255
- }, {
256
- "name": "3",
257
- "value": "3",
258
- "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."
259
- }, {
260
- "name": "4",
261
- "value": "4",
262
- "definition": "If no cumulonimbus present, CL=4 if stratocumulus formed by the spreading out of cumulus is present."
263
- }, {
264
- "name": "8",
265
- "value": "8",
266
- "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."
267
- }, {
268
- "name": "9",
269
- "value": "9",
270
- "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."
271
- }, {
272
- "name": "\/",
273
- "value": "\/",
274
- "definition": "CL clouds are not visible owing to fog or similar obscuring phenomena."
275
- }
276
- ]
277
- }
278
- ],
279
- "entity": [
280
- {
281
- "entityId": "entity001",
282
- "commonName": "agency",
283
- "codeName": "AGENCY",
284
- "definition": "Organizations providing some contribution to Alaska Science Center research.",
285
- "primaryKeyAttributeCodeName": ["agency_id"],
286
- "index": [
287
- {
288
- "codeName": "ui_agencyCode",
289
- "allowDuplicates": false,
290
- "attributeCodeName": ["agency_code"]
291
- }
292
- ],
293
- "attribute": [
294
- {
295
- "commonName": "agency ID",
296
- "codeName": "agency_id",
297
- "definition": "Unique sequential ID for the agency assigned by the database.",
298
- "dataType": "integer",
299
- "allowNull": false
300
- }, {
301
- "commonName": "agency code",
302
- "codeName": "agency_code",
303
- "definition": "Unique alphanumeric ID for the agency assigned by the data steward.",
304
- "dataType": "varchar(25)",
305
- "allowNull": false,
306
- "domainId": "domain001"
307
- }, {
308
- "commonName": "agency type code",
309
- "codeName": "agency_type_code",
310
- "definition": "Agency legal organization classification.",
311
- "dataType": "varchar(25)",
312
- "allowNull": false
313
- }, {
314
- "commonName": "agency name",
315
- "codeName": "agency_name",
316
- "definition": "Name of agency.",
317
- "dataType": "varchar(100)",
318
- "allowNull": false
319
- }, {
320
- "commonName": "agency comment",
321
- "codeName": "comment",
322
- "definition": "Supplemental information about the agency.",
323
- "dataType": "varchar(500)",
324
- "allowNull": true
325
- }, {
326
- "commonName": "time stamp",
327
- "codeName": "ts",
328
- "definition": "datetime of creation or latest update - maintained by system",
329
- "dataType": "datetime",
330
- "allowNull": false
331
- }
332
- ]
333
- }, {
334
- "entityId": "entity002",
335
- "commonName": "agency address",
336
- "codeName": "ADDRESS",
337
- "definition": "Addresses for an AGENCY",
338
- "primaryKeyAttributeCodeName": ["agency_id", "address_type_code"],
339
- "attribute": [
340
- {
341
- "commonName": "agency ID",
342
- "codeName": "agency_id",
343
- "definition": "Unique sequential ID for the agency assigned by the database.",
344
- "dataType": "integer",
345
- "allowNull": false
346
- }, {
347
- "commonName": "address type",
348
- "codeName": "address_type_code",
349
- "definition": "Type of address.",
350
- "dataType": "varchar(25)",
351
- "allowNull": false,
352
- "domainId": "domain002"
353
- }, {
354
- "commonName": "street address",
355
- "codeName": "street",
356
- "definition": "Street and street number or P.O. Box number.",
357
- "dataType": "varchar(100)",
358
- "allowNull": false
359
- }, {
360
- "commonName": "city",
361
- "codeName": "city",
362
- "definition": "City name.",
363
- "dataType": "varchar(50)",
364
- "allowNull": false
365
- }, {
366
- "commonName": "state",
367
- "codeName": "state_code",
368
- "definition": "State or province code",
369
- "dataType": "char(3)",
370
- "allowNull": false
371
- }, {
372
- "commonName": "zip code",
373
- "codeName": "postal_code",
374
- "definition": "Postal code.",
375
- "dataType": "char(9)",
376
- "allowNull": true
377
- }
378
- ],
379
- "foreignKey": [
380
- {
381
- "localAttributeCodeName": ["agency_id"],
382
- "referencedEntityCodeName": "AGENCY",
383
- "referencedAttributeCodeName": ["agency_id"]
384
- }
385
- ]
386
- }, {
387
- "entityId": "entity003",
388
- "commonName": "weather station",
389
- "codeName": "WEATHER_STATION",
390
- "definition": "Table describing weather permanent and semi-permanent weather all-season recording stations in Alaska.",
391
- "primaryKeyAttributeCodeName": ["station_id"],
392
- "attribute": [
393
- {
394
- "commonName": "weather station id",
395
- "codeName": "station_id",
396
- "definition": "Unique identifier for weather station.",
397
- "dataType": "integer",
398
- "allowNull": false
399
- }, {
400
- "commonName": "weather station name",
401
- "codeName": "station_name",
402
- "definition": "Common name for the weather station.",
403
- "dataType": "varchar(100)",
404
- "allowNull": false
405
- }, {
406
- "commonName": "station latitude",
407
- "codeName": "latitude",
408
- "definition": "Latitude of weather station.",
409
- "dataType": "decimal",
410
- "allowNull": false,
411
- "units": "degree",
412
- "minValue": "-90.0",
413
- "maxValue": "90.0"
414
- }, {
415
- "commonName": "station longitude",
416
- "codeName": "longitude",
417
- "definition": "Longitude of weather station.",
418
- "dataType": "decimal",
419
- "allowNull": false,
420
- "units": "degree",
421
- "minValue": "-180.0",
422
- "maxValue": "180.0"
423
- }, {
424
- "commonName": "station elevation",
425
- "codeName": "elevation_M",
426
- "definition": "Elevation of weather station above sea level in meters.",
427
- "dataType": "decimal",
428
- "allowNull": true,
429
- "units": "meter",
430
- "minValue": "0",
431
- "maxValue": "3000"
432
- }
433
- ]
434
- }, {
435
- "entityId": "entity004",
436
- "commonName": "weather station observation",
437
- "codeName": "WEATHER_STATION_OBSERVATION",
438
- "definition": "Table of discontinuous weather station observation records including temperature, humidity, wind, precipitation, and cloud cover.",
439
- "primaryKeyAttributeCodeName": ["obs_id"],
440
- "attribute": [
441
- {
442
- "commonName": "weather observation ID",
443
- "codeName": "obs_id",
444
- "definition": "Unique identifier of a single weather station observation record.",
445
- "dataType": "integer",
446
- "allowNull": false
447
- }, {
448
- "commonName": "weather station ID",
449
- "codeName": "station_id",
450
- "definition": "Unique identifier for weather station.",
451
- "dataType": "integer",
452
- "allowNull": false
453
- }, {
454
- "commonName": "observation date and time",
455
- "codeName": "obs_datetime",
456
- "definition": "Date and UTC with offset 24h time the weather observation was made.",
457
- "dataType": "datetime",
458
- "allowNull": false
459
- }, {
460
- "commonName": "ambient air temperature Celsius",
461
- "codeName": "air_temp_C",
462
- "definition": "Ambient air temperature recorded at weather station in degrees Celsius.",
463
- "dataType": "decimal",
464
- "allowNull": false,
465
- "units": "degC",
466
- "minValue": "-60",
467
- "maxValue": "50"
468
- }, {
469
- "commonName": "ambient air temperature Fahrenheit",
470
- "codeName": "air_temp_F",
471
- "definition": "Ambient air temperature recorded at weather station in degrees Fahrenheit.",
472
- "dataType": "decimal",
473
- "allowNull": false,
474
- "units": "degF",
475
- "minValue": "-100",
476
- "maxValue": "130"
477
- }, {
478
- "commonName": "daily precipitation",
479
- "codeName": "precipitation_IN",
480
- "definition": "The amount of rain fall or snow melt falling in a 24 hour period in inches.",
481
- "dataType": "decimal",
482
- "allowNull": false,
483
- "units": "inch",
484
- "minValue": "0",
485
- "maxValue": "25"
486
- }, {
487
- "commonName": "daily precipitation",
488
- "codeName": "precipitation_mm",
489
- "definition": "The amount of rain fall or snow melt falling in a 24 hour period in millimeters.",
490
- "dataType": "decimal",
491
- "allowNull": false,
492
- "units": "mm",
493
- "minValue": "0",
494
- "maxValue": "500"
495
- }, {
496
- "commonName": "wind direction",
497
- "codeName": "wind_direction_DEG",
498
- "definition": "Average direction wind is coming from in degrees. True north is 0 degrees.",
499
- "dataType": "integer",
500
- "allowNull": true,
501
- "units": "degree",
502
- "minValue": "0",
503
- "maxValue": "359"
504
- }, {
505
- "commonName": "wind speed",
506
- "codeName": "wind_speed_MPH",
507
- "definition": "Average wind speed in miles per hour (MPH).",
508
- "dataType": "integer",
509
- "allowNull": true,
510
- "units": "mph",
511
- "minValue": "0",
512
- "maxValue": "200"
513
- }, {
514
- "commonName": "wind speed",
515
- "codeName": "wind_speed_KPH",
516
- "definition": "Average wind speed in kilometers per hour (KPH).",
517
- "dataType": "integer",
518
- "allowNull": true,
519
- "units": "kph",
520
- "minValue": "0",
521
- "maxValue": "300"
522
- }, {
523
- "commonName": "sky cover code",
524
- "codeName": "sky_cover_code",
525
- "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",
526
- "dataType": "char(1)",
527
- "allowNull": true,
528
- "units": "sunnyDays",
529
- "domainId": "domain003"
530
- }, {
531
- "commonName": "low cloud type",
532
- "codeName": "low_cloud_cover_code",
533
- "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",
534
- "dataType": "char(1)",
535
- "allowNull": true,
536
- "domainId": "domain004"
537
- }
538
- ],
539
- "foreignKey": [
540
- {
541
- "localAttributeCodeName": ["station_id"],
542
- "referencedEntityCodeName": "WEATHER_STATION",
543
- "referencedAttributeCodeName": ["station_id"]
544
- }
545
- ]
546
- }
547
- ]
548
- }
549
- ]