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,90 @@
1
+ "metadata": {
2
+ {
3
+ "hierarchyLevel": "attribute"
4
+ }
5
+ }
6
+
7
+ "metadata": {
8
+ {
9
+ "hierarchyLevel": "attributeType"
10
+ }
11
+ }
12
+
13
+
14
+ "metadata": {
15
+ {
16
+ "hierarchyLevel": "collectionHardware"
17
+ }
18
+ }
19
+
20
+ "metadata": {
21
+ {
22
+ "hierarchyLevel": "collectionSession"
23
+ }
24
+ }
25
+
26
+ "metadata": {
27
+ {
28
+ "hierarchyLevel": "dataset"
29
+ }
30
+ }
31
+
32
+ "metadata": {
33
+ {
34
+ "hierarchyLevel": "nonGeographicDataset"
35
+ }
36
+ }
37
+
38
+ "metadata": {
39
+ {
40
+ "hierarchyLevel": "dimensionGroup"
41
+ }
42
+ }
43
+
44
+ "metadata": {
45
+ {
46
+ "hierarchyLevel": "feature"
47
+ }
48
+ }
49
+
50
+ "metadata": {
51
+ {
52
+ "hierarchyLevel": "featureType"
53
+ }
54
+ }
55
+
56
+ "metadata": {
57
+ {
58
+ "hierarchyLevel": "propertyType"
59
+ }
60
+ }
61
+
62
+ "metadata": {
63
+ {
64
+ "hierarchyLevel": "fieldSession"
65
+ }
66
+ }
67
+
68
+ "metadata": {
69
+ {
70
+ "hierarchyLevel": "software"
71
+ }
72
+ }
73
+
74
+ "metadata": {
75
+ {
76
+ "hierarchyLevel": "service"
77
+ }
78
+ }
79
+
80
+ "metadata": {
81
+ {
82
+ "hierarchyLevel": "model"
83
+ }
84
+ }
85
+
86
+ "metadata": {
87
+ {
88
+ "hierarchyLevel": "tile"
89
+ }
90
+ }
@@ -0,0 +1,144 @@
1
+ [
2
+ {
3
+ "keyword": ["keyword1", "keyword2"],
4
+ "keywordType": "keywordType",
5
+ "thesaurus": {
6
+ "title": "title",
7
+ "date": [
8
+ {
9
+ "date": "1111-11-11",
10
+ "dateType": "dateType1"
11
+ }, {
12
+ "date": "1112-11-11",
13
+ "dateType": "dateType2"
14
+ }
15
+ ],
16
+ "edition": "edition",
17
+ "responsibleParty": [
18
+ {
19
+ "contactId": "contactId1",
20
+ "role": "role1"
21
+ }, {
22
+ "contactId": "contactId2",
23
+ "role": "role2"
24
+ }
25
+ ],
26
+ "presentationForm": ["presentationForm1", "presentationForm2"],
27
+ "identifier": [
28
+ {
29
+ "identifier": "identifier1",
30
+ "type": "type1",
31
+ "authority": {
32
+ "title": "title",
33
+ "date": [
34
+ {
35
+ "date": "1111-11-11",
36
+ "dateType": "dateType1"
37
+ }
38
+ ],
39
+ "responsibleParty": [
40
+ {
41
+ "contactId": "contactId1",
42
+ "role": "role1"
43
+ }
44
+ ],
45
+ "onlineResource": [
46
+ {
47
+ "uri": "http://thisisanexample1.com",
48
+ "protocol": "protocol1",
49
+ "name": "name1",
50
+ "description": "description1",
51
+ "function": "function1"
52
+ }
53
+ ]
54
+ }
55
+ }
56
+ ],
57
+ "onlineResource": [
58
+ {
59
+ "uri": "http://thisisanexample1.com",
60
+ "protocol": "protocol1",
61
+ "name": "name1",
62
+ "description": "description1",
63
+ "function": "function1"
64
+ }, {
65
+ "uri": "http://thisisanexample2.com",
66
+ "protocol": "protocol2",
67
+ "name": "name2",
68
+ "description": "description2",
69
+ "function": "function2"
70
+ }
71
+ ]
72
+ }
73
+ }, {
74
+ "keyword": ["Oceans > Ocean temperature > Thermocline", "Oceans > Ocean Temperature > Water Temperature", "Oceans > Ocean Heat Budget > Heat Flux"],
75
+ "keywordType": "theme",
76
+ "thesaurus": {
77
+ "title": "NASA/Global Change Master Directory (GCMD) Earth Science Keywords.",
78
+ "date": [
79
+ {
80
+ "date": "2013-09-19",
81
+ "dateType": "revision"
82
+ }
83
+ ],
84
+ "onlineResource": [
85
+ {
86
+ "uri": "http://gcmdservices.gsfc.nasa.gov/static/kms/sciencekeywords/sciencekeywords.csv"
87
+ }
88
+ ],
89
+ "edition": "Version 8.0.0.0.0",
90
+ "responsibleParty": [
91
+ {
92
+ "contactId": "1",
93
+ "role": "originator"
94
+ }, {
95
+ "contactId": "2",
96
+ "role": "owner"
97
+ }
98
+ ],
99
+ "presentationForm": ["documentDigital"],
100
+ "identifier": [
101
+ {
102
+ "type": "isbn",
103
+ "identifier": "HB12365.214"
104
+ }, {
105
+ "type": "issn",
106
+ "identifier": "0ab4-dd983c01"
107
+ }
108
+ ]
109
+ }
110
+ }, {
111
+ "keyword": ["Oceans > Ocean temperature > Thermocline", "Oceans > Ocean Temperature > Water Temperature", "Oceans > Ocean Heat Budget > Heat Flux"],
112
+ "keywordType": "theme",
113
+ "thesaurus": {
114
+ "title": "NASA/Global Change Master Directory (GCMD) Earth Science Keywords.",
115
+ "date": [
116
+ {
117
+ "date": "2013-09-19",
118
+ "dateType": "revision"
119
+ }
120
+ ],
121
+ "onlineResource": [
122
+ {
123
+ "uri": "http://gcmdservices.gsfc.nasa.gov/static/kms/sciencekeywords/sciencekeywords.csv"
124
+ }
125
+ ]
126
+ }
127
+ }, {
128
+ "keyword": ["In Situ/Laboratory Instruments > Temperature/Humidity Sensors > Thermometers"],
129
+ "keywordType": "instrument",
130
+ "thesaurus": {
131
+ "title": "NASA/Global Change Master Directory (GCMD) Earth Science Keywords."
132
+ }
133
+ }, {
134
+ "keyword": ["In Situ/Laboratory Instruments > Temperature/Humidity Sensors > Thermometers"],
135
+ "keywordType": "instrument"
136
+ }, {
137
+ "keyword": ["In Situ/Laboratory Instruments > Temperature/Humidity Sensors > Thermometers"],
138
+ "thesaurus": {
139
+ "title": "NASA/Global Change Master Directory (GCMD) Earth Science Keywords."
140
+ }
141
+ }, {
142
+ "keyword": ["thermocline", "sea surface temperature"]
143
+ }
144
+ ]
@@ -0,0 +1,326 @@
1
+ {
2
+ "version":{
3
+ "name":"mdJson",
4
+ "version":"1.0.0"
5
+ },
6
+ "contact":[
7
+ {
8
+ "contactId":"1",
9
+ "organizationName":"Arctic Landscape Conservation Cooperative",
10
+ "onlineResource":[
11
+ {
12
+ "uri":"http://arcticlcc.org",
13
+ "name":"Arctic LCC website",
14
+ "description":"Website for the Arctic Landscape Conservation Cooperative",
15
+ "function":"information"
16
+ }
17
+ ],
18
+ "phoneBook":[
19
+ {
20
+ "phoneName":"office",
21
+ "phoneNumber":"907-786-3605",
22
+ "service":[
23
+ "voice",
24
+ "fax"
25
+ ]
26
+ },
27
+ {
28
+ "phoneName":"mobile",
29
+ "phoneNumber":"907-306-1895",
30
+ "service":[
31
+ "voice",
32
+ "sms"
33
+ ]
34
+ },
35
+ {
36
+ "phoneName":"fax",
37
+ "phoneNumber":"907-786-3592",
38
+ "service":[
39
+ "fax"
40
+ ]
41
+ }
42
+ ],
43
+ "address":{
44
+ "deliveryPoint":[
45
+ "1011 E. Tudor Rd"
46
+ ],
47
+ "city":"Anchorage",
48
+ "administrativeArea":"AK",
49
+ "postalCode":"99503",
50
+ "country":"USA",
51
+ "electronicMailAddress":[
52
+ "staff@arcticlcc.org"
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "contactId":"2",
58
+ "individualName":"Scott Rupp",
59
+ "organizationName":"University of Alaska - Fairbanks -> Scenarios Network for Alaska & Arctic Planning",
60
+ "address":{
61
+ "electronicMailAddress":[
62
+ "tsrupp@alaska.edu"
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "contactId":"3",
68
+ "individualName":"David McGuire",
69
+ "organizationName":"Alaska Cooperative Fish and Wildlife Research Unit",
70
+ "address":{
71
+ "electronicMailAddress":[
72
+ "admcguire@alaska.edu"
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "contactId":"4",
78
+ "organizationName":"Western Alaska Landscape Conservation Cooperative"
79
+ },
80
+ {
81
+ "contactId":"5",
82
+ "organizationName":"Alaska Climate Science Center"
83
+ },
84
+ {
85
+ "contactId":"6",
86
+ "organizationName":"Northwest Boreal Landscape Conservation Cooperative"
87
+ },
88
+ {
89
+ "contactId":"7",
90
+ "organizationName":"U.S. Fish and Wildlife Service"
91
+ }
92
+ ],
93
+ "metadata":{
94
+ "metadataInfo":{
95
+ "metadataIdentifier":{
96
+ "identifier":"D5D16D06-CEEB-E011-8260-000C2952247E",
97
+ "type":"uuid"
98
+ },
99
+ "metadataContact":[
100
+ {
101
+ "contactId":"1",
102
+ "role":"custodian"
103
+ }
104
+ ],
105
+ "metadataCreationDate":"2014-04-28",
106
+ "metadataLastUpdate":"2014-04-28",
107
+ "metadataUri":"http://arcticlcc.org/metadata/project/ALCC2010-05",
108
+ "metadataStatus":"onGoing",
109
+ "metadataMaintenance":{
110
+ "maintenanceFrequency":"asNeeded",
111
+ "maintenanceNote":[
112
+ "Metadata records are generated on request from current database"
113
+ ],
114
+ "maintenanceContact":[
115
+ {
116
+ "contactId":"1",
117
+ "role":"publisher"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "resourceInfo":{
123
+ "resourceType":"project",
124
+ "citation":{
125
+ "title":"Integrated Ecosystem Model (AIEM) for Alaska",
126
+ "date":[
127
+ {
128
+ "date":"2010-02-15",
129
+ "dateType":"projectStart"
130
+ },
131
+ {
132
+ "date":"2016-08-31",
133
+ "dateType":"projectEnd"
134
+ }
135
+ ],
136
+ "responsibleParty":[
137
+ {
138
+ "contactId":"1",
139
+ "role":"primaryLCC",
140
+ "funding":[
141
+ {
142
+ "fiscalYear":2010,
143
+ "originalSource":{
144
+ "contactId":"7"
145
+ },
146
+ "amount":410000
147
+ },
148
+ {
149
+ "fiscalYear":2011,
150
+ "originalSource":{
151
+ "contactId":"7"
152
+ },
153
+ "amount":410000
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "contactId":"2",
159
+ "role":"principalInvestigator"
160
+ },
161
+ {
162
+ "contactId":"3",
163
+ "role":"principalInvestigator"
164
+ },
165
+ {
166
+ "contactId":"5",
167
+ "role":"collaborator"
168
+ },
169
+ {
170
+ "contactId":"4",
171
+ "role":"partnerLCC",
172
+ "funding":[
173
+ {
174
+ "fiscalYear":2011,
175
+ "amount":50000
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "contactId":"6",
181
+ "role":"partnerLCC",
182
+ "funding":[
183
+ {
184
+ "fiscalYear":2011,
185
+ "amount":15000,
186
+ "comment":"This is an example."
187
+ }
188
+ ]
189
+ }
190
+ ],
191
+ "identifier":[
192
+ {
193
+ "authority":{
194
+ "title":"Arctic LCC Project",
195
+ "responsibleParty":[
196
+ {
197
+ "contactId":"1",
198
+ "role":"originator"
199
+ }
200
+ ]
201
+ },
202
+ "identifier":"ALCC2010-05"
203
+ },
204
+ {
205
+ "authority":{
206
+ "title":"WA LCC Project",
207
+ "responsibleParty":[
208
+ {
209
+ "contactId":"4",
210
+ "role":"collaborator"
211
+ }
212
+ ],
213
+ "onlineResource":[
214
+ {
215
+ "uri":"http://thisisanexample.com"
216
+ }
217
+ ]
218
+ },
219
+ "identifier":"WA2011_09"
220
+ },
221
+ {
222
+ "authority":{
223
+ "title":"NWB LCC Project",
224
+ "responsibleParty":[
225
+ {
226
+ "contactId":"4",
227
+ "role":"collaborator"
228
+ }
229
+ ]
230
+ },
231
+ "identifier":"NWB-002"
232
+ }
233
+ ],
234
+ "onlineResource":[
235
+ {
236
+ "uri":"http://arcticlcc.org/projects/ALCC2010-05",
237
+ "protocol":"http",
238
+ "name":"Project website",
239
+ "description":"Main project website",
240
+ "function":"information"
241
+ },
242
+ {
243
+ "uri":"https://www.sciencebase.gov/catalog/folder/52b4afa2e4b0260bc327ef6d",
244
+ "protocol":"http",
245
+ "name":"Project ScienceBase Page",
246
+ "description":"Fake ScienceBase link",
247
+ "function":"scienceBase"
248
+ }
249
+ ]
250
+ },
251
+ "pointOfContact":[
252
+ {
253
+ "contactId":"1",
254
+ "role":"pointOfContact"
255
+ }
256
+ ],
257
+ "abstract":"Project with SNAP to develop a framework that will couple models of disturbance and vegetation succession (ALFRESCO), biogeochemistry (TEM), and permafrost (GIPL).",
258
+ "shortAbstract":"",
259
+ "status":"onGoing",
260
+ "resourceSpecificUsage":[
261
+ {
262
+ "specificUsage":"Broad variety of datasets for use by land and resource managers as well as researchers.",
263
+ "userContactInfo":[
264
+ {
265
+ "contactId":"1",
266
+ "role":"pointOfContact"
267
+ }
268
+ ]
269
+ }
270
+ ],
271
+ "language":[
272
+ "eng; USA"
273
+ ],
274
+ "keyword":[
275
+ {
276
+ "keyword":[
277
+ "EARTH SCIENCE -> TERRESTRIAL HYDROSPHERE -> SURFACE WATER -> WETLANDS",
278
+ "EARTH SCIENCE -> CRYOSPHERE -> FROZEN GROUND -> SOIL TEMPERATURE",
279
+ "EARTH SCIENCE -> CRYOSPHERE -> FROZEN GROUND -> PERMAFROST",
280
+ "EARTH SCIENCE SERVICES -> MODELS -> DYNAMIC VEGETATION/ECOSYSTEM MODELS",
281
+ "EARTH SCIENCE -> LAND SURFACE -> LAND USE/LAND COVER -> LAND COVER",
282
+ "EARTH SCIENCE -> LAND SURFACE -> LANDSCAPE -> LANDSCAPE ECOLOGY",
283
+ "EARTH SCIENCE -> LAND SURFACE -> LANDSCAPE -> LANDSCAPE PROCESSES"
284
+ ],
285
+ "keywordType":"theme",
286
+ "thesaurus":{
287
+ "title":"NASA/Global Change Master Directory (GCMD) Earth Science Keywords.",
288
+ "date":[
289
+ {
290
+ "date":"2013-09-19",
291
+ "dateType":"revision"
292
+ }
293
+ ],
294
+ "onlineResource":[
295
+ {
296
+ "uri":"http://gcmdservices.gsfc.nasa.gov/static/kms/sciencekeywords/sciencekeywords.csv"
297
+ }
298
+ ],
299
+ "edition":"Version 8.0.0.0.0",
300
+ "presentationForm":[
301
+ "documentDigital"
302
+ ]
303
+ }
304
+ },
305
+ {
306
+ "keyword":[
307
+ "Population & Habitat Evaluation/Projection",
308
+ "Vulnerability Assessment"
309
+ ],
310
+ "keywordType":"project",
311
+ "thesaurus":{
312
+ "title":"LCC Project Category Vocabulary",
313
+ "onlineResource":[
314
+ {
315
+ "uri":"https://www.sciencebase.gov/vocab/vocabulary/52dee7c5e4b0dee2a6cd6b18"
316
+ }
317
+ ],
318
+ "presentationForm":[
319
+ "documentDigital"
320
+ ]
321
+ }
322
+ }
323
+ ]
324
+ }
325
+ }
326
+ }