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,272 @@
1
+ [
2
+ {
3
+ "scope": "scope",
4
+ "lineage": {
5
+ "statement": "statement",
6
+ "processStep": [
7
+ {
8
+ "stepId": "stepId1",
9
+ "description": "description1",
10
+ "rationale": "rationale1",
11
+ "dateTime": "1111-11-11",
12
+ "processor": [
13
+ {
14
+ "contactId": "contactId11",
15
+ "role": "role11"
16
+ }, {
17
+ "contactId": "contactId12",
18
+ "role": "role12"
19
+ }
20
+ ]
21
+ }, {
22
+ "stepId": "stepId2",
23
+ "description": "description2",
24
+ "rationale": "rationale2",
25
+ "dateTime": "1112-11-11",
26
+ "processor": [
27
+ {
28
+ "contactId": "contactId21",
29
+ "role": "role21"
30
+ }, {
31
+ "contactId": "contactId22",
32
+ "role": "role22"
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ "source": [
38
+ {
39
+ "description": "description1",
40
+ "citation": {
41
+ "title": "title",
42
+ "date": [
43
+ {
44
+ "date": "1111-11-11",
45
+ "dateType": "dateType1"
46
+ }, {
47
+ "date": "1112-11-11",
48
+ "dateType": "dateType2"
49
+ }
50
+ ],
51
+ "edition": "edition",
52
+ "responsibleParty": [
53
+ {
54
+ "contactId": "contactId1",
55
+ "role": "role1"
56
+ }, {
57
+ "contactId": "contactId2",
58
+ "role": "role2"
59
+ }
60
+ ],
61
+ "presentationForm": ["presentationForm1", "presentationForm2"],
62
+ "identifier": [
63
+ {
64
+ "identifier": "identifier1",
65
+ "type": "type1",
66
+ "authority": {
67
+ "title": "title",
68
+ "date": [
69
+ {
70
+ "date": "1111-11-11",
71
+ "dateType": "dateType1"
72
+ }
73
+ ],
74
+ "responsibleParty": [
75
+ {
76
+ "contactId": "contactId1",
77
+ "role": "role1"
78
+ }
79
+ ],
80
+ "onlineResource": [
81
+ {
82
+ "uri": "http://thisisanexample1.com",
83
+ "protocol": "protocol1",
84
+ "name": "name1",
85
+ "description": "description1",
86
+ "function": "function1"
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ ],
92
+ "onlineResource": [
93
+ {
94
+ "uri": "http://thisisanexample1.com",
95
+ "protocol": "protocol1",
96
+ "name": "name1",
97
+ "description": "description1",
98
+ "function": "function1"
99
+ }, {
100
+ "uri": "http://thisisanexample2.com",
101
+ "protocol": "protocol2",
102
+ "name": "name2",
103
+ "description": "description2",
104
+ "function": "function2"
105
+ }
106
+ ]
107
+ },
108
+ "processStep": [
109
+ {
110
+ "stepId": "stepId11",
111
+ "description": "description11",
112
+ "rationale": "rationale11",
113
+ "dateTime": "1111-11-11",
114
+ "processor": [
115
+ {
116
+ "contactId": "contactId111",
117
+ "role": "role111"
118
+ }, {
119
+ "contactId": "contactId112",
120
+ "role": "role112"
121
+ }
122
+ ]
123
+ }, {
124
+ "stepId": "stepId22",
125
+ "description": "description22",
126
+ "rationale": "rationale22",
127
+ "dateTime": "1122-11-11",
128
+ "processor": [
129
+ {
130
+ "contactId": "contactId221",
131
+ "role": "role221"
132
+ }, {
133
+ "contactId": "contactId222",
134
+ "role": "role222"
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ }
142
+ }, {
143
+ "scope": "dataset",
144
+ "lineage": {
145
+ "statement": "derived from that other dataset",
146
+ "processStep": [
147
+ {
148
+ "stepId": "135b",
149
+ "description": "Manually combed through to find obvious junk data values, changed value to 9999",
150
+ "rationale": "It had to be done!",
151
+ "dateTime": "2011-08-23",
152
+ "processor": [
153
+ {
154
+ "contactId": "3",
155
+ "role": "processor"
156
+ }, {
157
+ "contactId": "2",
158
+ "role": "publisher"
159
+ }
160
+ ]
161
+ }, {
162
+ "description": "changed junk data value to 9999",
163
+ "rationale": "Way too many 9's that first time.",
164
+ "dateTime": "2013-08-28",
165
+ "processor": [
166
+ {
167
+ "contactId": "4",
168
+ "role": "processor"
169
+ }
170
+ ]
171
+ }
172
+ ],
173
+ "source": [
174
+ {
175
+ "description": "For this work, a mesoscale numerical model (WRF) will be initialized using the National Centers for Environmental Prediction (NCEP) North American Regional Reanalysis (NARR) output at 32-km resolution. The NARR data provides the “best-guess” analysis of atmospheric conditions for use in historical studies. The NARR domain covers all of North and Central America, much of the northeastern Pacific and northern Atlantic Oceans, including Alaska and Hawaii. Ten years of NARR data will be used (1 Jan 2000 – 31 Dec 2009).",
176
+ "citation": {
177
+ "title": "Very High-Resolution Dynamic Downscaling of Regional Climate and Hydrology",
178
+ "date": [
179
+ {
180
+ "date": "2000-01-21",
181
+ "dateType": "publication"
182
+ }
183
+ ],
184
+ "edition": "version 1.2.0",
185
+ "responsibleParty": [
186
+ {
187
+ "contactId": "1",
188
+ "role": "originator"
189
+ }
190
+ ],
191
+ "presentationForm": ["documentDigital"],
192
+ "additionalIdentifier": {
193
+ "isbn": "HB12365.214",
194
+ "issn": "0ab4-dd983c01"
195
+ }
196
+ },
197
+ "processStep": [
198
+ {
199
+ "stepId": "135bc",
200
+ "description": "The NARR data will be used to initialize the WRF model. The NARR data cannot be used by the WRF directly. Instead, WRF-required initial data and lateral data will be created from the NARR data using the WRF Preprocessing System (WPS) utilities. In addition, the 32-km grid resolution of the NARR data will be objectively analyzed to the WRF 4-km grid. ",
201
+ "rationale": "It had to be done!",
202
+ "dateTime": "2013-08-13",
203
+ "processor": [
204
+ {
205
+ "contactId": "3",
206
+ "role": "processor"
207
+ }
208
+ ]
209
+ }, {
210
+ "stepId": "135bd",
211
+ "description": "The Hawaii Forest Bird Survey Vegetation Database includes data for over 40,400 vegetation plots that were sampled on the island of Hawaii in 1977. This database records with cover data that can be used for modeling their distribution abundance.",
212
+ "rationale": "It had to be done!",
213
+ "dateTime": "2013-08-13",
214
+ "processor": [
215
+ {
216
+ "contactId": "3",
217
+ "role": "processor"
218
+ }
219
+ ]
220
+ }
221
+ ]
222
+ }, {
223
+ "description": "We got this dataset from those guys in Fairbanks."
224
+ }
225
+ ]
226
+ }
227
+ }, {
228
+ "scope": "dataset",
229
+ "lineage": {
230
+ "statement": "This is that other dataset that you might have heard about.",
231
+ "source": [
232
+ {
233
+ "description": "This dataset came from somewhere. It was collected by so and so.",
234
+ "citation": {
235
+ "title": "Example_dataset_20111009_turner_v1-12.csv",
236
+ "date": [
237
+ {
238
+ "date": "2011-10-09",
239
+ "dateType": "creation"
240
+ }
241
+ ]
242
+ }
243
+ }
244
+ ]
245
+ }
246
+ }, {
247
+ "scope": "series",
248
+ "lineage": {
249
+ "statement": "This series is made up of those datasets."
250
+ }
251
+ }, {
252
+ "scope": "dataset",
253
+ "lineage": {
254
+ "statement": "This another ctd datas from the GAK1 location.",
255
+ "processStep": [
256
+ {
257
+ "description": "This is how this dataset was processed."
258
+ }
259
+ ]
260
+ }
261
+ }, {
262
+ "scope": "dataset",
263
+ "lineage": {
264
+ "statement": "This series is made up of those datasets.",
265
+ "source": [
266
+ {
267
+ "description": "We got this dataset from those guys in Fairbanks."
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ ]
@@ -0,0 +1,19 @@
1
+ [
2
+ "2013",
3
+ "2013-09",
4
+ "2013-09-06",
5
+ "2013-09-10T05",
6
+ "2013-09-11T02:36",
7
+ "2013-09-11T02:37:16",
8
+ "2013-09-11T13Z",
9
+ "2013-09-11T03-08:00",
10
+ "2013-09-11T02:40Z",
11
+ "2013-09-11T02:38-08",
12
+ "2013-09-11T02:39-09:00",
13
+ "2013-09-11T02:38:22Z",
14
+ "2013-09-11T12:38:22-08",
15
+ "2013-09-11T02:39:44-09:00",
16
+ "2013-09-11T22:58:09+06:15",
17
+ "2012-07-15T08:05:00.000001+09:00",
18
+ "2012-08-16T08:06:00.0+09:00"
19
+ ]
@@ -0,0 +1,113 @@
1
+ [
2
+ {
3
+ "distributorContact": {
4
+ "contactId": "contactId",
5
+ "role": "role"
6
+ },
7
+ "distributionOrderProcess": [
8
+ {
9
+ "fees": "fees1",
10
+ "plannedAvailabilityDateTime": "1111-11-11",
11
+ "orderingInstructions": "orderingInstructions1",
12
+ "turnaround": "turnaround1"
13
+ }, {
14
+ "fees": "fees2",
15
+ "plannedAvailabilityDateTime": "1112-11-11",
16
+ "orderingInstructions": "orderingInstructions2",
17
+ "turnaround": "turnaround2"
18
+ }
19
+ ],
20
+ "distributorFormat": [
21
+ {
22
+ "formatName": "formatName1",
23
+ "version": "version1"
24
+ }, {
25
+ "formatName": "formatName2",
26
+ "version": "version2"
27
+ }
28
+ ],
29
+ "distributorTransferOptions": [
30
+ {
31
+ "online": [
32
+ {
33
+ "uri": "http://thisisanexample11.com",
34
+ "protocol": "protocol11",
35
+ "name": "name11",
36
+ "description": "description11",
37
+ "function": "function11"
38
+ }
39
+ ],
40
+ "offline": {
41
+ "name": "name1",
42
+ "mediumFormat": "mediumFormat1",
43
+ "mediumNote": "mediumNote1"
44
+ }
45
+ }, {
46
+ "online": [
47
+ {
48
+ "uri": "http://thisisanexample21.com",
49
+ "protocol": "protocol21",
50
+ "name": "name21",
51
+ "description": "description21",
52
+ "function": "function21"
53
+ }
54
+ ],
55
+ "offline": {
56
+ "name": "name2",
57
+ "mediumFormat": "mediumFormat2",
58
+ "mediumNote": "mediumNote2"
59
+ }
60
+ }
61
+ ]
62
+ }, {
63
+ "distributorContact": {
64
+ "contactId": "4",
65
+ "role": "custodian"
66
+ },
67
+ "distributionOrderProcess": [
68
+ {
69
+ "fees": "0.00USD",
70
+ "plannedAvailabilityDateTime": "2013-06-21",
71
+ "orderingInstructions": "Send an e-mail",
72
+ "turnaround": "up to 3 hours"
73
+ }, {
74
+ "fees": "3.00USD",
75
+ "turnaround": "immediate"
76
+ }
77
+ ],
78
+ "distributorFormat": [
79
+ {
80
+ "formatName": "netCDF",
81
+ "version": "4.0"
82
+ }, {
83
+ "formatName": "Excel Spreadsheet",
84
+ "version": "xlsx"
85
+ }
86
+ ],
87
+ "distributorTransferOptions": [
88
+ {
89
+ "online": [
90
+ {
91
+ "uri": "http://aoos.org/aoos-data-resources",
92
+ "name": "Aoos Data Resources",
93
+ "description": "This page provides links to interactive maps and data discovery tools.",
94
+ "function": "information"
95
+ }, {
96
+ "uri": "http://aoos.org/fake_resource_location",
97
+ "function": "download"
98
+ }
99
+ ],
100
+ "offline": {
101
+ "name": "dvd",
102
+ "mediumFormat": "iso9660",
103
+ "mediumNote": "To receive a dvd in the mail, contact the distributor POC."
104
+ }
105
+ }
106
+ ]
107
+ }, {
108
+ "distributorContact": {
109
+ "contactId": "5",
110
+ "role": "distributor"
111
+ }
112
+ }
113
+ ]
@@ -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
+ ]