adiwg-mdtranslator 1.0.0rc2 → 1.0.0rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/lib/adiwg/mdtranslator/version.rb +1 -1
  3. metadata +1 -149
  4. data/test/schemas/v1_0/.gitignore +0 -18
  5. data/test/schemas/v1_0/.travis.yml +0 -7
  6. data/test/schemas/v1_0/CREDITS +0 -3
  7. data/test/schemas/v1_0/Gemfile +0 -4
  8. data/test/schemas/v1_0/LICENSE +0 -24
  9. data/test/schemas/v1_0/README.md +0 -36
  10. data/test/schemas/v1_0/Rakefile +0 -12
  11. data/test/schemas/v1_0/adiwg-json_schemas.gemspec +0 -25
  12. data/test/schemas/v1_0/examples/additionalDocumentation.json +0 -61
  13. data/test/schemas/v1_0/examples/address.json +0 -10
  14. data/test/schemas/v1_0/examples/associatedResource.json +0 -119
  15. data/test/schemas/v1_0/examples/citation.json +0 -128
  16. data/test/schemas/v1_0/examples/contact.json +0 -205
  17. data/test/schemas/v1_0/examples/contactRef.json +0 -12
  18. data/test/schemas/v1_0/examples/dataDictionary.json +0 -547
  19. data/test/schemas/v1_0/examples/dataQuality.json +0 -272
  20. data/test/schemas/v1_0/examples/date.json +0 -19
  21. data/test/schemas/v1_0/examples/distributor.json +0 -113
  22. data/test/schemas/v1_0/examples/extent_linestring.json +0 -288
  23. data/test/schemas/v1_0/examples/extent_point.json +0 -246
  24. data/test/schemas/v1_0/examples/extent_polygon.json +0 -353
  25. data/test/schemas/v1_0/examples/format.json +0 -14
  26. data/test/schemas/v1_0/examples/full_example.json +0 -2844
  27. data/test/schemas/v1_0/examples/full_example2.json +0 -2325
  28. data/test/schemas/v1_0/examples/geojson.json +0 -446
  29. data/test/schemas/v1_0/examples/graphicOverview.json +0 -28
  30. data/test/schemas/v1_0/examples/hierarchyLevel.json +0 -90
  31. data/test/schemas/v1_0/examples/keywords.json +0 -144
  32. data/test/schemas/v1_0/examples/lcc_project_example.json +0 -326
  33. data/test/schemas/v1_0/examples/legalConstraints.json +0 -17
  34. data/test/schemas/v1_0/examples/maintInfo.json +0 -34
  35. data/test/schemas/v1_0/examples/metadataInfo.json +0 -103
  36. data/test/schemas/v1_0/examples/minimum_example.json +0 -35
  37. data/test/schemas/v1_0/examples/onlineResource.json +0 -17
  38. data/test/schemas/v1_0/examples/resolution.json +0 -9
  39. data/test/schemas/v1_0/examples/resourceInfo.json +0 -1264
  40. data/test/schemas/v1_0/examples/resourceMaintenance.json +0 -10
  41. data/test/schemas/v1_0/examples/securityConstraints.json +0 -13
  42. data/test/schemas/v1_0/examples/spatialRef.json +0 -14
  43. data/test/schemas/v1_0/examples/taxonomy.json +0 -197
  44. data/test/schemas/v1_0/examples/temporalElement.json +0 -29
  45. data/test/schemas/v1_0/examples/uri.json +0 -16
  46. data/test/schemas/v1_0/examples/usage.json +0 -35
  47. data/test/schemas/v1_0/examples/verticalExtent.json +0 -18
  48. data/test/schemas/v1_0/lib/adiwg-mdjson_schemas.rb +0 -1
  49. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas.rb +0 -7
  50. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/utils.rb +0 -20
  51. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/validator.rb +0 -42
  52. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/version.rb +0 -6
  53. data/test/schemas/v1_0/schema/schema.json +0 -64
  54. data/test/schemas/v1_0/schema/schema/citation.json +0 -186
  55. data/test/schemas/v1_0/schema/schema/contact.json +0 -255
  56. data/test/schemas/v1_0/schema/schema/dataDictionary.json +0 -209
  57. data/test/schemas/v1_0/schema/schema/dataQuality.json +0 -159
  58. data/test/schemas/v1_0/schema/schema/distributor.json +0 -171
  59. data/test/schemas/v1_0/schema/schema/extent.json +0 -214
  60. data/test/schemas/v1_0/schema/schema/geojson/bbox.json +0 -14
  61. data/test/schemas/v1_0/schema/schema/geojson/crs.json +0 -99
  62. data/test/schemas/v1_0/schema/schema/geojson/geojson.json +0 -194
  63. data/test/schemas/v1_0/schema/schema/geojson/geometry.json +0 -203
  64. data/test/schemas/v1_0/schema/schema/graphicOverview.json +0 -42
  65. data/test/schemas/v1_0/schema/schema/keyword.json +0 -39
  66. data/test/schemas/v1_0/schema/schema/maintInfo.json +0 -43
  67. data/test/schemas/v1_0/schema/schema/metadata.json +0 -173
  68. data/test/schemas/v1_0/schema/schema/onlineResource.json +0 -42
  69. data/test/schemas/v1_0/schema/schema/resolution.json +0 -51
  70. data/test/schemas/v1_0/schema/schema/resourceConstraint.json +0 -108
  71. data/test/schemas/v1_0/schema/schema/resourceInfo.json +0 -305
  72. data/test/schemas/v1_0/schema/schema/taxonomy.json +0 -122
  73. data/test/schemas/v1_0/schema/schema/usage.json +0 -39
  74. data/test/schemas/v1_0/templates/mdJson_template.json +0 -1065
  75. data/test/schemas/v1_0/test/draft-04.json +0 -189
  76. data/test/schemas/v1_0/test/tc_schemas.rb +0 -210
  77. data/test/schemas/v1_0/test/tc_utils.rb +0 -27
@@ -1,272 +0,0 @@
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
- ]
@@ -1,19 +0,0 @@
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
- ]
@@ -1,113 +0,0 @@
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
- ]
@@ -1,288 +0,0 @@
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
- ]