adiwg-mdjson_schemas 2.4.5 → 2.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -1
- data/adiwg-json_schemas.gemspec +1 -1
- data/examples/distribution.json +1 -0
- data/examples/duration.json +1 -4
- data/examples/format.json +2 -1
- data/examples/funding.json +27 -0
- data/examples/mdJson.json +960 -1343
- data/examples/metadataInfo.json +57 -1
- data/examples/resourceInfo.json +5 -5
- data/examples/taxonomicClassification.json +14 -14
- data/examples/taxonomy.json +2 -2
- data/examples/vectorRepresentation.json +10 -0
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/package-lock.json +21 -13
- data/package.json +3 -3
- data/schema/constraint.json +15 -5
- data/schema/dataDictionary.json +1 -0
- data/schema/distribution.json +19 -2
- data/schema/format.json +9 -0
- data/schema/funding.json +7 -0
- data/schema/metadataInfo.json +11 -1
- data/schema/resourceInfo.json +24 -2
- data/schema/schema.json +1 -1
- data/schema/scope.json +1 -0
- data/schema/taxonomy.json +28 -4
- data/schema/timePeriod.json +20 -1
- data/schema/vectorRepresentation.json +8 -0
- metadata +4 -4
data/schema/resourceInfo.json
CHANGED
@@ -173,11 +173,34 @@
|
|
173
173
|
}
|
174
174
|
},
|
175
175
|
"taxonomy": {
|
176
|
+
"description": "Information on the taxa (1 or more) included in the data set, including keywords, taxonomic system and coverage information, and taxonomic classification system.",
|
176
177
|
"translation": {
|
177
178
|
"ISO 19115-2": ["MD_DataIdentification > taxonomy"],
|
178
179
|
"FGDC CSDGM": ["idinfo > taxonomy"]
|
179
180
|
},
|
180
|
-
"
|
181
|
+
"oneOf": [{
|
182
|
+
"type": "array",
|
183
|
+
"title": "taxonomy",
|
184
|
+
"description": "An array of taxonomic objects",
|
185
|
+
"example": "../examples/taxonomy.json",
|
186
|
+
"translation": {
|
187
|
+
"ISO 19115-2": ["MD_TaxonSys"],
|
188
|
+
"FGDC CSDGM": ["idinfo > taxonomy"]
|
189
|
+
},
|
190
|
+
"items": {
|
191
|
+
"$ref": "taxonomy.json"
|
192
|
+
}
|
193
|
+
}, {
|
194
|
+
"type": "object",
|
195
|
+
"title": "taxonomy",
|
196
|
+
"description": "DEPRECATED, please use an array.",
|
197
|
+
"translation": {
|
198
|
+
"ISO 19115-2": ["MD_DataIdentification > taxonomy"],
|
199
|
+
"FGDC CSDGM": ["idinfo > taxonomy"]
|
200
|
+
},
|
201
|
+
"deprecated": true,
|
202
|
+
"$ref": "taxonomy.json"
|
203
|
+
}]
|
181
204
|
},
|
182
205
|
"graphicOverview": {
|
183
206
|
"type": "array",
|
@@ -195,7 +218,6 @@
|
|
195
218
|
"translation": {
|
196
219
|
"ISO 19115-2": ["MD_DataIdentification > resourceFormat > MD_Format"]
|
197
220
|
},
|
198
|
-
"minItems": 1,
|
199
221
|
"uniqueItems": true,
|
200
222
|
"items": {
|
201
223
|
"$ref": "./format.json#"
|
data/schema/schema.json
CHANGED
data/schema/scope.json
CHANGED
data/schema/taxonomy.json
CHANGED
@@ -34,7 +34,6 @@
|
|
34
34
|
"type": "array",
|
35
35
|
"description": "Information on any non-authoritative materials (e.g. field guides) useful for reconstructing the actual process.",
|
36
36
|
"translation": {},
|
37
|
-
"minItems": 1,
|
38
37
|
"items": {
|
39
38
|
"$ref": "./identifier.json#"
|
40
39
|
}
|
@@ -107,15 +106,22 @@
|
|
107
106
|
"ISO 19115-2": ["MD_TaxonSys > taxonCl > MD_TaxonCl"],
|
108
107
|
"FGDC CSDGM": ["idinfo > taxonomy > taxoncl"]
|
109
108
|
},
|
110
|
-
"required": ["latinName", "taxonomicRank"],
|
111
109
|
"additionalProperties": true,
|
110
|
+
"oneOf": [{
|
111
|
+
"title": "Requires taxonomicName and taxonomicLevel",
|
112
|
+
"required": ["taxonomicName", "taxonomicLevel"]
|
113
|
+
}, {
|
114
|
+
"title": "Requires latinName and taxonomicRank",
|
115
|
+
"deprecated": true,
|
116
|
+
"required": ["latinName", "taxonomicRank"]
|
117
|
+
}],
|
112
118
|
"properties": {
|
113
119
|
"taxonomicSystemId": {
|
114
120
|
"type": "string",
|
115
121
|
"description": "The ID assigned by the taxonomic system to the taxonomicRank.",
|
116
122
|
"minLength": 1
|
117
123
|
},
|
118
|
-
"
|
124
|
+
"taxonomicLevel": {
|
119
125
|
"type": "string",
|
120
126
|
"description": "Name of the taxonomic rank for which the taxonValue is provided. Example: \"Kingdom\", \"Division\", \"Phylum\", \"Subphylum\", \"SuperClass\", \"Class\", \"SubClass\", \"InfraClass\", \"Superorder\", \"Order\", \"Suborder\", \"Infraorder\", \"Superfamily\", \"Family\", \"Subfamily\", \"Tribe\", \"Subtribe\", \"Genus\", \"Species\".",
|
121
127
|
"translation": {
|
@@ -123,7 +129,16 @@
|
|
123
129
|
"FGDC CSDGM": ["idinfo > taxonomy > taxoncl > taxonrn"]
|
124
130
|
}
|
125
131
|
},
|
126
|
-
"
|
132
|
+
"taxonomicRank": {
|
133
|
+
"type": "string",
|
134
|
+
"deprecated": true,
|
135
|
+
"description": "DEPRECATED, use taxonomicLevel",
|
136
|
+
"translation": {
|
137
|
+
"ISO 19115-2": [" MD_TaxonCl > taxonrn"],
|
138
|
+
"FGDC CSDGM": ["idinfo > taxonomy > taxoncl > taxonrn"]
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"taxonomicName": {
|
127
142
|
"type": "string",
|
128
143
|
"description": "Taxonomic rank value of the taxon being described.",
|
129
144
|
"translation": {
|
@@ -131,6 +146,15 @@
|
|
131
146
|
"FGDC CSDGM": ["idinfo > taxonomy > taxoncl > taxonrv"]
|
132
147
|
}
|
133
148
|
},
|
149
|
+
"latinName": {
|
150
|
+
"type": "string",
|
151
|
+
"deprecated": true,
|
152
|
+
"description": "DEPRECATED, use taxonomicName",
|
153
|
+
"translation": {
|
154
|
+
"ISO 19115-2": ["MD_TaxonCl > taxonrv"],
|
155
|
+
"FGDC CSDGM": ["idinfo > taxonomy > taxoncl > taxonrv"]
|
156
|
+
}
|
157
|
+
},
|
134
158
|
"commonName": {
|
135
159
|
"type": "array",
|
136
160
|
"description": "Specification of applicable common names. These common names may be general descriptions of a group of organisms if appropriate (e.g. insects, vertebrate, grasses, waterfowl, vascular plants, etc.).",
|
data/schema/timePeriod.json
CHANGED
@@ -91,7 +91,26 @@
|
|
91
91
|
"seconds": {
|
92
92
|
"$ref": "#/definitions/durationPart"
|
93
93
|
}
|
94
|
-
}
|
94
|
+
},
|
95
|
+
"anyOf": [{
|
96
|
+
"title": "years is required",
|
97
|
+
"required": ["years"]
|
98
|
+
}, {
|
99
|
+
"title": "months is required",
|
100
|
+
"required": ["months"]
|
101
|
+
}, {
|
102
|
+
"title": "days is required",
|
103
|
+
"required": ["days"]
|
104
|
+
}, {
|
105
|
+
"title": "hours is required",
|
106
|
+
"required": ["hours"]
|
107
|
+
}, {
|
108
|
+
"title": "minutes is required",
|
109
|
+
"required": ["minutes"]
|
110
|
+
}, {
|
111
|
+
"title": "seconds is required",
|
112
|
+
"required": ["seconds"]
|
113
|
+
}]
|
95
114
|
},
|
96
115
|
"durationPart": {
|
97
116
|
"type": "integer"
|
@@ -14,6 +14,7 @@
|
|
14
14
|
},
|
15
15
|
"vectorObject": {
|
16
16
|
"type": "array",
|
17
|
+
"minItems": 1,
|
17
18
|
"description": "Information about the geometric objects used in the resource",
|
18
19
|
"translation": {},
|
19
20
|
"items": {
|
@@ -21,6 +22,13 @@
|
|
21
22
|
}
|
22
23
|
}
|
23
24
|
},
|
25
|
+
"anyOf": [{
|
26
|
+
"title": "vectorObject is required",
|
27
|
+
"required": ["vectorObject"]
|
28
|
+
}, {
|
29
|
+
"title": "topologyLevel is required",
|
30
|
+
"required": ["topologyLevel"]
|
31
|
+
}],
|
24
32
|
"definitions": {
|
25
33
|
"vectorObject": {
|
26
34
|
"type": "object",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-mdjson_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bradley, Stan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.8.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.8.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|