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.
@@ -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
- "$ref": "taxonomy.json"
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#"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.4.5",
4
+ "version": "2.4.7",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
@@ -35,6 +35,7 @@
35
35
  "scopeDescription": {
36
36
  "type": "object",
37
37
  "additionalProperties": true,
38
+ "minProperties": 1,
38
39
  "properties": {
39
40
  "dataset": {
40
41
  "type": "string",
@@ -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
- "taxonomicRank": {
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
- "latinName": {
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.).",
@@ -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.5
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-03-14 00:00:00.000000000 Z
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.7.0
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.7.0
54
+ version: 2.8.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement