adiwg-mdjson_schemas 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/schema/schema.json +5 -1
- data/schema/schema/citation.json +4 -5
- data/schema/schema/contact.json +2 -0
- data/schema/schema/dataDictionary.json +148 -29
- data/schema/schema/dataQuality.json +9 -9
- data/schema/schema/distributor.json +5 -5
- data/schema/schema/extent.json +13 -12
- data/schema/schema/geojson/geojson.json +2 -2
- data/schema/schema/graphicOverview.json +5 -5
- data/schema/schema/metadata.json +3 -3
- data/schema/schema/resourceConstraint.json +2 -2
- data/schema/schema/resourceInfo.json +6 -3
- data/schema/schema/taxonomy.json +1 -1
- data/schema/schema/usage.json +3 -3
- data/test/tc_utils.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17bbedf59ae8674ce3f6fd3512e1fd6472004df4
|
4
|
+
data.tar.gz: d80064b5eac8984bfa8e4cec4cf7c3a420970e68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37da50fc5dcf290c3a85493ba8d445675e0d8b554c5ad534009a624a653a1edd3226c568baa35bce23f0ace5aec9f083a43641444a560f6fff646d8fc4a364e
|
7
|
+
data.tar.gz: 12e82d450f43c3d9a85447b502e918c9770afd27a3609c3c8be683562ccc31914d44fca4e01eec01ff97405e8918a994eea1a542c78d271f1d167127158aaa09
|
data/schema/schema.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"id": "schema.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.1",
|
5
5
|
"description": "schema for ADIwg mdJSON metadata",
|
6
6
|
"type": "object",
|
7
7
|
"required": ["version", "contact", "metadata"],
|
@@ -34,6 +34,10 @@
|
|
34
34
|
},
|
35
35
|
"dataDictionary": {
|
36
36
|
"type": "array",
|
37
|
+
"description": "A description of the contents, format and structure of the physical objects in a data resource.",
|
38
|
+
"translation": {
|
39
|
+
"ISO 19115-2": ["FC_FeatureCatalogue"]
|
40
|
+
},
|
37
41
|
"example": "../examples/full_example.json#/dataDictionary",
|
38
42
|
"items": {
|
39
43
|
"$ref": "schema/dataDictionary.json"
|
data/schema/schema/citation.json
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
"type": "string",
|
28
28
|
"description": "Name by which the cited resource is known.",
|
29
29
|
"translation": {
|
30
|
-
"ISO 19115-2": ["CI_Citation > title"],
|
30
|
+
"ISO 19115-2": ["CI_Citation > title", "FC_FeatureCatalogue > name"],
|
31
31
|
"FGDC CSDGM": ["idinfo > citation > citeinfo > title"]
|
32
32
|
}
|
33
33
|
},
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"properties": {
|
46
46
|
"date": {
|
47
47
|
"translation": {
|
48
|
-
"ISO 19115-2": ["CI_Date > date"],
|
48
|
+
"ISO 19115-2": ["CI_Date > date", "FC_FeatureCatalogue > versionDate"],
|
49
49
|
"FGDC CSDGM": ["idinfo > citation > citeinfo > pubdate"]
|
50
50
|
},
|
51
51
|
"$ref": "../schema.json#/definitions/date"
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"type": "array",
|
65
65
|
"description": "Identification of, and means of communication with, person(s) and organization(s) associated with the cited resource.",
|
66
66
|
"translation": {
|
67
|
-
"ISO 19115-2": ["CI_Citation > citedResponsibleParty > CI_ResponsibleParty"],
|
67
|
+
"ISO 19115-2": ["CI_Citation > citedResponsibleParty > CI_ResponsibleParty", "FC_FeatureCatalogue > producer > CI_ResponisbleParty"],
|
68
68
|
"FGDC CSDGM": ["idinfo > ptcontac > cntinfo"]
|
69
69
|
},
|
70
70
|
"minItems": 1,
|
@@ -171,8 +171,7 @@
|
|
171
171
|
"type": "string",
|
172
172
|
"description": "Version identifier for the dictionary.",
|
173
173
|
"translation": {
|
174
|
-
"ISO 19115-2": ["
|
175
|
-
"FGDC CSDGM": ["idinfo > citation > edition"]
|
174
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > versionNumber"]
|
176
175
|
}
|
177
176
|
}
|
178
177
|
},
|
data/schema/schema/contact.json
CHANGED
@@ -128,6 +128,7 @@
|
|
128
128
|
"properties": {
|
129
129
|
"contactId": {
|
130
130
|
"type": "string",
|
131
|
+
"description": "Unique identifier for the contact.",
|
131
132
|
"example": "../../examples/full_example.json#/contact/1"
|
132
133
|
},
|
133
134
|
"positionName": {
|
@@ -209,6 +210,7 @@
|
|
209
210
|
"type": "object",
|
210
211
|
"title": "organization",
|
211
212
|
"example": "../../examples/full_example.json#/contact/0",
|
213
|
+
"description": "Contact information for an organization.",
|
212
214
|
"translation": {
|
213
215
|
"ISO 19115-2": ["Contact > CI_ResponsibleParty"],
|
214
216
|
"FGDC CSDGM": ["cntinfo > cntorgp"]
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"properties": {
|
10
10
|
"dictionaryInfo": {
|
11
11
|
"type": "object",
|
12
|
-
"description": "
|
12
|
+
"description": "Identification, description, and contact information for the data dictionary.",
|
13
13
|
"example": "../../examples/full_example.json#/dataDictionary/0/dictionaryInfo",
|
14
14
|
"required": ["resourceType", "citation", "description"],
|
15
15
|
"additionalProperties": true,
|
@@ -21,41 +21,55 @@
|
|
21
21
|
},
|
22
22
|
"resourceType": {
|
23
23
|
"type": "string",
|
24
|
-
"description": "
|
24
|
+
"description": "Identifies the scope of the data dictionary. E.g. 'database', 'dataset', 'table'.",
|
25
|
+
"translation": {
|
26
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > scope"]
|
27
|
+
}
|
25
28
|
},
|
26
29
|
"description": {
|
27
30
|
"type": "string",
|
28
|
-
"description": "
|
31
|
+
"description": "A brief description of the data dictionary and its source.",
|
32
|
+
"translation": {
|
33
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > fieldOfApplication > CharacterString"]
|
34
|
+
}
|
29
35
|
},
|
30
36
|
"language": {
|
31
37
|
"type": "string",
|
32
|
-
"description": "
|
38
|
+
"description": "Defines the language and country of origin in which the data dictionary is written. E.g. 'eng; USA', 'eng; UK', 'esp; MEX'.",
|
39
|
+
"translation": {
|
40
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > language"]
|
41
|
+
}
|
33
42
|
}
|
34
43
|
}
|
35
44
|
},
|
36
45
|
"domain": {
|
37
46
|
"type": "array",
|
47
|
+
"description": "A list of permissable values used to constrain an attribute's value. A single domain may be assigned to multiple attributes in a table or database.",
|
48
|
+
"example": "../../examples/full_example.json#/dataDictionary/0/domain/0",
|
38
49
|
"items": {
|
39
50
|
"type": "object",
|
40
|
-
"description": "Information describing an enumerated list of values.",
|
41
|
-
"example": "../../examples/full_example.json#/dataDictionary/0/domain/0",
|
42
51
|
"required": ["domainId", "codeName", "description", "member"],
|
43
52
|
"additionalProperties": true,
|
44
53
|
"properties": {
|
45
54
|
"domainId": {
|
46
|
-
"type": "string"
|
55
|
+
"type": "string",
|
56
|
+
"description": "A user provided unique ID for this domain. The ID will be used to locate the domain in the domain array."
|
47
57
|
},
|
48
58
|
"commonName": {
|
49
|
-
"type": "string"
|
59
|
+
"type": "string",
|
60
|
+
"description": "A short common name for the domain."
|
50
61
|
},
|
51
62
|
"codeName": {
|
52
|
-
"type": "string"
|
63
|
+
"type": "string",
|
64
|
+
"description": "The code or 'lookup table' name for the domin used in the database schema definitions."
|
53
65
|
},
|
54
66
|
"description": {
|
55
|
-
"type": "string"
|
67
|
+
"type": "string",
|
68
|
+
"description": "A brief description of the domain including identification of any established sources used in creating the list of domain items."
|
56
69
|
},
|
57
70
|
"member": {
|
58
71
|
"type": "array",
|
72
|
+
"description": "An array of member objects that enumerate and define the valid values for a domain.",
|
59
73
|
"items": {
|
60
74
|
"type": "object",
|
61
75
|
"example": "../../examples/full_example.json#/dataDictionary/0/domain/0/member",
|
@@ -63,13 +77,25 @@
|
|
63
77
|
"additionalProperties": true,
|
64
78
|
"properties": {
|
65
79
|
"name": {
|
66
|
-
"type": "string"
|
80
|
+
"type": "string",
|
81
|
+
"description": "A descriptive name associated with a domain value",
|
82
|
+
"translation": {
|
83
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > label"]
|
84
|
+
}
|
67
85
|
},
|
68
86
|
"value": {
|
69
|
-
"type": "string"
|
87
|
+
"type": "string",
|
88
|
+
"description": "A descriptive name associated with a domain value",
|
89
|
+
"translation": {
|
90
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > label"]
|
91
|
+
}
|
70
92
|
},
|
71
93
|
"definition": {
|
72
|
-
"type": "string"
|
94
|
+
"type": "string",
|
95
|
+
"description": "A brief definition for the domain item",
|
96
|
+
"translation": {
|
97
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > definition"]
|
98
|
+
}
|
73
99
|
}
|
74
100
|
}
|
75
101
|
}
|
@@ -79,38 +105,71 @@
|
|
79
105
|
},
|
80
106
|
"entity": {
|
81
107
|
"type": "array",
|
108
|
+
"description": "Defines the structure of a discrete data object within the data resource. The data object may be a table, dataset, or single sheet of a spreadsheet.",
|
109
|
+
"translation": {
|
110
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"]
|
111
|
+
},
|
82
112
|
"items": {
|
83
113
|
"type": "object",
|
114
|
+
|
84
115
|
"example": "../../examples/full_example.json#/dataDictionary/0/entity/1",
|
85
116
|
"required": ["entityId", "codeName", "definition"],
|
86
117
|
"additionalProperties": true,
|
87
118
|
"properties": {
|
88
119
|
"entityId": {
|
89
|
-
"type": "string"
|
120
|
+
"type": "string",
|
121
|
+
"description": "A user provided unique ID for this entity. ",
|
122
|
+
"translation": {
|
123
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType#id=''"]
|
124
|
+
}
|
90
125
|
},
|
91
126
|
"commonName": {
|
92
|
-
"type": "string"
|
127
|
+
"type": "string",
|
128
|
+
"description": "The name commonly used to identify this entity",
|
129
|
+
"translation": {
|
130
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > typeName > localName"]
|
131
|
+
}
|
93
132
|
},
|
94
133
|
"codeName": {
|
95
|
-
"type": "string"
|
134
|
+
"type": "string",
|
135
|
+
"description": "The code name used to identify this entity in a database schema or application software. For spreasheets this would likely be the sheet name. ",
|
136
|
+
"translation": {
|
137
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > code > CharacterString"]
|
138
|
+
}
|
96
139
|
},
|
97
140
|
"alias": {
|
98
141
|
"type": "array",
|
142
|
+
"description": "An array of quoted strings providing alternalte names used to identify this entity",
|
143
|
+
"translation": {
|
144
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > aliases > localName"]
|
145
|
+
},
|
99
146
|
"items": {
|
100
147
|
"type": "string"
|
101
148
|
}
|
102
149
|
},
|
103
150
|
"definition": {
|
104
|
-
"type": "string"
|
151
|
+
"type": "string",
|
152
|
+
"description": "A brief definition for the entity",
|
153
|
+
"translation": {
|
154
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > definition"]
|
155
|
+
}
|
105
156
|
},
|
106
157
|
"primaryKeyAttributeCodeName": {
|
107
158
|
"type": "array",
|
159
|
+
"description": "An array of quoted attribute code names that together compose the primary key set for the entity",
|
160
|
+
"translation": {
|
161
|
+
"ISO 19115-2": ["Note: the primary key is written as a text description into FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description"]
|
162
|
+
},
|
108
163
|
"items": {
|
109
164
|
"type": "string"
|
110
165
|
}
|
111
166
|
},
|
112
167
|
"index": {
|
113
168
|
"type": "array",
|
169
|
+
"description": "An array of objects describing alternate indexes for the entity",
|
170
|
+
"translation": {
|
171
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > Note: the index is written as a text description into featureType > FC_FeatureType > constrainedBy > FC_Constraint > description"]
|
172
|
+
},
|
114
173
|
"items": {
|
115
174
|
"type": "object",
|
116
175
|
"example": "../../examples/full_example.json#/dataDictionary/0/entity/1/index",
|
@@ -118,13 +177,25 @@
|
|
118
177
|
"additionalProperties": true,
|
119
178
|
"properties": {
|
120
179
|
"codeName": {
|
121
|
-
"type": "string"
|
180
|
+
"type": "string",
|
181
|
+
"description": "The code name used to define the alternate index on the entity",
|
182
|
+
"translation": {
|
183
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
184
|
+
}
|
122
185
|
},
|
123
186
|
"allowDuplicates": {
|
124
|
-
"type": "boolean"
|
187
|
+
"type": "boolean",
|
188
|
+
"description": "Indicates whether the index allows duplicates or values are required to be unique. true = allow duplicates; false = values must be unique.",
|
189
|
+
"translation": {
|
190
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
191
|
+
}
|
125
192
|
},
|
126
193
|
"attributeCodeName": {
|
127
194
|
"type": "array",
|
195
|
+
"description": "An array of quoted attribute code names that together compose an alternate key set for the entity",
|
196
|
+
"translation": {
|
197
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
198
|
+
},
|
128
199
|
"items": {
|
129
200
|
"type": "string"
|
130
201
|
}
|
@@ -134,6 +205,10 @@
|
|
134
205
|
},
|
135
206
|
"attribute": {
|
136
207
|
"type": "array",
|
208
|
+
"description": "An array of objects defining the attributes for the entity",
|
209
|
+
"translation": {
|
210
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute"]
|
211
|
+
},
|
137
212
|
"items": {
|
138
213
|
"type": "object",
|
139
214
|
"example": "../../examples/full_example.json#/dataDictionary/0/entity/1/attribute",
|
@@ -141,43 +216,75 @@
|
|
141
216
|
"additionalProperties": true,
|
142
217
|
"properties": {
|
143
218
|
"commonName": {
|
144
|
-
"type": "string"
|
219
|
+
"type": "string",
|
220
|
+
"description": "The common name used to identify this attribute",
|
221
|
+
"translation": {
|
222
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > memberName > localName"]
|
223
|
+
}
|
145
224
|
},
|
146
225
|
"codeName": {
|
147
|
-
"type": "string"
|
226
|
+
"type": "string",
|
227
|
+
"description": "The code used to identify this attribute. Most often this will be the table or spreadsheet column name",
|
228
|
+
"translation": {
|
229
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > code > CharacterString"]
|
230
|
+
}
|
148
231
|
},
|
149
232
|
"alias": {
|
150
233
|
"type": "array",
|
234
|
+
"description": "An array of quoted strings providing alternate names by which the attribute is known",
|
151
235
|
"items": {
|
152
236
|
"type": "string"
|
153
237
|
}
|
154
238
|
},
|
155
239
|
"definition": {
|
156
|
-
"type": "string"
|
240
|
+
"type": "string",
|
241
|
+
"description": "A succinct but comprehensive definition for the attribute",
|
242
|
+
"translation": {
|
243
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > definition > CharacterString"]
|
244
|
+
}
|
157
245
|
},
|
158
246
|
"dataType": {
|
159
|
-
"type": "string"
|
247
|
+
"type": "string",
|
248
|
+
"description": "The datatype for the attribute. Names for datatypes vary widely by database management system. Use the datatype name associated with the database system that implemented the entity. E.g. 'integer', 'boolean', 'decimal(8,5)', 'varchar(200)'",
|
249
|
+
"translation": {
|
250
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > valueType > TypeName > aName > CharacterString"]
|
251
|
+
}
|
160
252
|
},
|
161
253
|
"allowNull": {
|
162
|
-
"type": "boolean"
|
254
|
+
"type": "boolean",
|
255
|
+
"description": "Indicates whether null values are allowed for the attribute",
|
256
|
+
"translation": {
|
257
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > cardinality > Multiplicity > range > MultiplicityRange > lower > integer[0=optional | 1=required]"]
|
258
|
+
}
|
163
259
|
},
|
164
260
|
"units": {
|
165
|
-
"type": "string"
|
261
|
+
"type": "string",
|
262
|
+
"description": "A unit-of-measure for the attribute. E.g. 'meters', 'atmospheres', 'liters'",
|
263
|
+
"translation": {
|
264
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > valueMeasurementUnit > [UnitDefinition > identifier | ConversionalUnit > identifier,name,catalogSystem,conversionToPreferredUnit,formula | BaseUnit > identifier,name,catalogSymbol,unitSystem | DerivedUnit > identifier,name,remarks,catalogSymbol,derivationUnitTerm]"]
|
265
|
+
}
|
166
266
|
},
|
167
267
|
"domainId": {
|
168
|
-
"type": "string"
|
268
|
+
"type": "string",
|
269
|
+
"description": "Provides the domain ID for the dictionary Domain containing the list of permissable values for this attribute"
|
169
270
|
},
|
170
271
|
"minValue": {
|
171
|
-
"type": "string"
|
272
|
+
"type": "string",
|
273
|
+
"description": "The minimum range value permissible for this attribute"
|
172
274
|
},
|
173
275
|
"maxValue": {
|
174
|
-
"type": "string"
|
276
|
+
"type": "string",
|
277
|
+
"description": "The maximum range value permissible for this attribute"
|
175
278
|
}
|
176
279
|
}
|
177
280
|
}
|
178
281
|
},
|
179
282
|
"foreignKey": {
|
180
283
|
"type": "array",
|
284
|
+
"description": "An array of objects describing attributes whose values are restricted to values found in the domain of an attribute belonging to another table or dataset",
|
285
|
+
"translation": {
|
286
|
+
"ISO 19115-2": ["Note: the foreign key is written as a text description into FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint"]
|
287
|
+
},
|
181
288
|
"items": {
|
182
289
|
"type": "object",
|
183
290
|
"example": "../../examples/full_example.json#/dataDictionary/0/entity/1/foreignKey",
|
@@ -186,15 +293,27 @@
|
|
186
293
|
"properties": {
|
187
294
|
"localAttributeCodeName": {
|
188
295
|
"type": "array",
|
296
|
+
"description": "An array of local (referencing or child) attribute code names for this foreign key",
|
297
|
+
"translation": {
|
298
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
299
|
+
},
|
189
300
|
"items": {
|
190
301
|
"type": "string"
|
191
302
|
}
|
192
303
|
},
|
193
304
|
"referencedEntityCodeName": {
|
194
|
-
"type": "string"
|
305
|
+
"type": "string",
|
306
|
+
"description": "The entityID for the referenced (or parent) entity for this foreign key",
|
307
|
+
"translation": {
|
308
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
309
|
+
}
|
195
310
|
},
|
196
311
|
"referencedAttributeCodeName": {
|
197
312
|
"type": "array",
|
313
|
+
"description": "An array of referenced (or parent) attribute code names for this foreign key. If the foreign key is compound key (more than one attribute compose the key) the order of the referenced attributes must allign precicely with the order and number of local attributes.",
|
314
|
+
"translation": {
|
315
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
316
|
+
},
|
198
317
|
"items": {
|
199
318
|
"type": "string"
|
200
319
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"id": "dataQuality.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"type": "object",
|
5
|
-
"description": "Information
|
5
|
+
"description": "Information that describes the data quality, lineage, and/or processing steps that were applied to the whole or part of the data resource.",
|
6
6
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/dataQualityInfo",
|
7
7
|
"translation": {
|
8
8
|
"ISO 19115-2": ["DQ_DataQuality"],
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"definitions": {
|
30
30
|
"lineage": {
|
31
31
|
"type": "object",
|
32
|
-
"description": "
|
32
|
+
"description": "Procedural (non-quantitative) data quality information about the portion of the data resource identified by the data quality scope.",
|
33
33
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/dataQualityInfo/0/lineage",
|
34
34
|
"translation": {
|
35
35
|
"ISO 19115-2": ["LI_Lineage"]
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"properties": {
|
39
39
|
"statement": {
|
40
40
|
"type": "string",
|
41
|
-
"description": "
|
41
|
+
"description": "A general statement of the actions taken to verify, transform, repair, and integrate the data within the data quality scope.",
|
42
42
|
"translation": {
|
43
43
|
"ISO 19115-2": ["LI_Lineage > statement"]
|
44
44
|
}
|
45
45
|
},
|
46
46
|
"processStep": {
|
47
47
|
"type": "array",
|
48
|
-
"description": "
|
48
|
+
"description": "A brief statement describing an individual, non-trivial process or methodology step taken in development of the resource data within the data quality scope.",
|
49
49
|
"translation": {
|
50
50
|
"ISO 19115-2": ["LI_Lineage > processStep > LI_ProcessStep"]
|
51
51
|
},
|
@@ -55,7 +55,7 @@
|
|
55
55
|
},
|
56
56
|
"source": {
|
57
57
|
"type": "array",
|
58
|
-
"description": "Information about the source
|
58
|
+
"description": "Information about the source data used in creating the data identified by the data quality scope.",
|
59
59
|
"translation": {
|
60
60
|
"ISO 19115-2": ["LI_Lineage > source > LI_Source"],
|
61
61
|
"FGDC CSDGM": ["dataqual > lineage > srcinfo"]
|
@@ -121,7 +121,7 @@
|
|
121
121
|
},
|
122
122
|
"source": {
|
123
123
|
"type": "object",
|
124
|
-
"description": "Information about the source
|
124
|
+
"description": "Information about the source data used in creating the data identified by the data quality scope.",
|
125
125
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/dataQualityInfo/0/lineage/source",
|
126
126
|
"translation": {
|
127
127
|
"ISO 19115-2": ["LI_Source"]
|
@@ -130,13 +130,13 @@
|
|
130
130
|
"properties": {
|
131
131
|
"description": {
|
132
132
|
"type": "string",
|
133
|
-
"description": "
|
133
|
+
"description": "A brief description about the source dataset used in creating the data identified by the data quality scope.",
|
134
134
|
"translation": {
|
135
135
|
"ISO 19115-2": ["LI_Source > description"]
|
136
136
|
}
|
137
137
|
},
|
138
138
|
"citation": {
|
139
|
-
"description": "
|
139
|
+
"description": "A citation providing information about the source dataset, including an online resource or other access instructions.",
|
140
140
|
"translation": {
|
141
141
|
"ISO 19115-2": ["LI_Source > sourceCitation > CI_Citation"],
|
142
142
|
"FGDC CSDGM": ["dataqual > lineage > srcinfo > srccite > citeinfo"]
|
@@ -145,7 +145,7 @@
|
|
145
145
|
},
|
146
146
|
"processStep": {
|
147
147
|
"type": "array",
|
148
|
-
"description": "
|
148
|
+
"description": "A description of a non-trivial event or transformation taken to prepare the source data for use in creating the data identified by the data quality scope.",
|
149
149
|
"translation": {
|
150
150
|
"ISO 19115-2": ["LI_Source > sourceStep > LI_ProcessStep"]
|
151
151
|
},
|
@@ -75,13 +75,13 @@
|
|
75
75
|
},
|
76
76
|
"distributorTransferOptions": {
|
77
77
|
"type": "array",
|
78
|
+
"description": "Describes method and media by which a resource is obtained from the distributor.",
|
79
|
+
"translation": {
|
80
|
+
"ISO 19115-2": ["MD_Distributor > distributorTransferOptions > MD_DigitalTransferOptions"],
|
81
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt"]
|
82
|
+
},
|
78
83
|
"items": {
|
79
84
|
"type": "object",
|
80
|
-
"description": "Identifier whether resource is available on-line or by off-line procedure.",
|
81
|
-
"translation": {
|
82
|
-
"ISO 19115-2": ["MD_Distributor > distributorTransferOptions > MD_DigitalTransferOptions"],
|
83
|
-
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt"]
|
84
|
-
},
|
85
85
|
"additionalProperties": true,
|
86
86
|
|
87
87
|
"properties": {
|
data/schema/schema/extent.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"id": "extent.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"type": "object",
|
5
|
-
"description": "Information about the geographic extent of
|
5
|
+
"description": "Information about the geographic, vertical, and temporal extent of a resource.",
|
6
6
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent",
|
7
7
|
"translation": {
|
8
8
|
"ISO 19115-2": ["EX_Extent"]
|
@@ -18,7 +18,7 @@
|
|
18
18
|
},
|
19
19
|
"geographicElement": {
|
20
20
|
"type": "array",
|
21
|
-
"description": "
|
21
|
+
"description": "An array of objects each describing a geographic boundary or location comprising all or a portion of the resource.",
|
22
22
|
"translation": {
|
23
23
|
"ISO 19115-2": ["EX_Extent > geographicElement"]
|
24
24
|
},
|
@@ -40,7 +40,7 @@
|
|
40
40
|
},
|
41
41
|
"verticalElement": {
|
42
42
|
"type": "array",
|
43
|
-
"description": "
|
43
|
+
"description": "An array of objects each describing a vertical boundary comprising all or a portion of the resource.",
|
44
44
|
"translation": {
|
45
45
|
"ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
|
46
46
|
},
|
@@ -49,7 +49,8 @@
|
|
49
49
|
}
|
50
50
|
},
|
51
51
|
"temporalElement": {
|
52
|
-
"$ref": "#/definitions/temporalElement"
|
52
|
+
"$ref": "#/definitions/temporalElement",
|
53
|
+
"description": "An array of objects each describing a temporal boundary comprising all or a portion of the resource."
|
53
54
|
}
|
54
55
|
},
|
55
56
|
"definitions": {
|
@@ -61,14 +62,14 @@
|
|
61
62
|
"properties": {
|
62
63
|
"id": {
|
63
64
|
"type": "string",
|
64
|
-
"description": "A unique identifier for
|
65
|
+
"description": "A unique identifier for the timeInstant.",
|
65
66
|
"translation": {
|
66
67
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant @id"]
|
67
68
|
}
|
68
69
|
},
|
69
70
|
"description": {
|
70
71
|
"type": "string",
|
71
|
-
"description": "
|
72
|
+
"description": "A brief description providing relevant information about the date and time.",
|
72
73
|
"translation": {
|
73
74
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > description"]
|
74
75
|
}
|
@@ -83,20 +84,20 @@
|
|
83
84
|
},
|
84
85
|
"timePeriod": {
|
85
86
|
"type": "object",
|
86
|
-
"description": "A span of time represented by a
|
87
|
+
"description": "A span of time represented by a starting date-time and an ending date-time.",
|
87
88
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent/0/temporalElement/timePeriod/0",
|
88
89
|
"additionalProperties": true,
|
89
90
|
"properties": {
|
90
91
|
"id": {
|
91
92
|
"type": "string",
|
92
|
-
"description": "A unique identifier for a
|
93
|
+
"description": "A unique identifier for a time period.",
|
93
94
|
"translation": {
|
94
95
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod @id"]
|
95
96
|
}
|
96
97
|
},
|
97
98
|
"description": {
|
98
99
|
"type": "string",
|
99
|
-
"description": "
|
100
|
+
"description": "A brief description providing relevant information about the time period.",
|
100
101
|
"translation": {
|
101
102
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > description "]
|
102
103
|
}
|
@@ -140,7 +141,7 @@
|
|
140
141
|
"properties": {
|
141
142
|
"timeInstant": {
|
142
143
|
"type": "array",
|
143
|
-
"description": "A set of date
|
144
|
+
"description": "A set of date-time instances, each with an associated identifier and description.",
|
144
145
|
"translation": {
|
145
146
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant"]
|
146
147
|
},
|
@@ -150,7 +151,7 @@
|
|
150
151
|
},
|
151
152
|
"timePeriod": {
|
152
153
|
"type": "array",
|
153
|
-
"description": "A set of time periods.",
|
154
|
+
"description": "A set of time periods(a span of time represented by a starting date-time and an ending date-time).",
|
154
155
|
"translation": {
|
155
156
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod"]
|
156
157
|
},
|
@@ -160,7 +161,7 @@
|
|
160
161
|
},
|
161
162
|
"date": {
|
162
163
|
"type": "array",
|
163
|
-
"description": "A set of date
|
164
|
+
"description": "A set of date-times.",
|
164
165
|
"translation": {
|
165
166
|
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > timePosition"]
|
166
167
|
},
|
@@ -143,7 +143,7 @@
|
|
143
143
|
}
|
144
144
|
},
|
145
145
|
"temporalElement": {
|
146
|
-
"description": "The temporal reference associated with
|
146
|
+
"description": "The temporal reference associated with a feature.",
|
147
147
|
"$ref": "../extent.json#/definitions/temporalElement"
|
148
148
|
},
|
149
149
|
"verticalElement": {
|
@@ -169,7 +169,7 @@
|
|
169
169
|
},
|
170
170
|
"featureScope": {
|
171
171
|
"type": "string",
|
172
|
-
"description": "
|
172
|
+
"description": "A word or phrase identifying the type of object described by the feature."
|
173
173
|
},
|
174
174
|
"featureAcquisitionMethod": {
|
175
175
|
"type": "string",
|
@@ -2,14 +2,14 @@
|
|
2
2
|
"id": "graphicOverview.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/graphicOverview/0",
|
5
|
-
"description": "
|
5
|
+
"description": "Provides a path or link to images, maps, flow charts, models, etc. that illustrate the resource.",
|
6
6
|
"type": "object",
|
7
7
|
"required": ["fileName"],
|
8
8
|
"additionalProperties": true,
|
9
9
|
"properties": {
|
10
10
|
"fileName": {
|
11
11
|
"type": "string",
|
12
|
-
"description": "Name of the file that contains a
|
12
|
+
"description": "Name of the file that contains a graphic overview of the resource.",
|
13
13
|
"translation": {
|
14
14
|
"ISO 19115-2": ["MD_BrowseGraphic > filename"],
|
15
15
|
"FGDC CSDGM": ["idinfo > browse > browsen"]
|
@@ -17,7 +17,7 @@
|
|
17
17
|
},
|
18
18
|
"fileDescription": {
|
19
19
|
"type": "string",
|
20
|
-
"description": "Description of the
|
20
|
+
"description": "Description of the graphic overview.",
|
21
21
|
"translation": {
|
22
22
|
"ISO 19115-2": ["MD_BrowseGraphic > fileDescription"],
|
23
23
|
"FGDC CSDGM": ["idinfo > browse > browsed"]
|
@@ -25,14 +25,14 @@
|
|
25
25
|
},
|
26
26
|
"fileType": {
|
27
27
|
"type": "string",
|
28
|
-
"description": "
|
28
|
+
"description": "The format in which the illustration is encoded such as GIF, JPEG, PBM, PS, TIFF.",
|
29
29
|
"translation": {
|
30
30
|
"ISO 19115-2": ["MD_BrowseGraphic > fileType"],
|
31
31
|
"FGDC CSDGM": ["idinfo > browse > browset"]
|
32
32
|
}
|
33
33
|
},
|
34
34
|
"fileUri": {
|
35
|
-
"description": "URI of the
|
35
|
+
"description": "URI of the graphic overview.",
|
36
36
|
"translation": {
|
37
37
|
"ISO 19115-2": ["MD_BrowseGraphic > filename @xlink:href"]
|
38
38
|
},
|
data/schema/schema/metadata.json
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
},
|
106
106
|
"associatedResource": {
|
107
107
|
"type": "array",
|
108
|
-
"description": "
|
108
|
+
"description": "Other resources which are directly related to the subject resource such as parent, child, or sibling datasets or projects.",
|
109
109
|
"example": "../../examples/full_example.json#/metadata/associatedResource",
|
110
110
|
"translation": {
|
111
111
|
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
|
@@ -118,7 +118,7 @@
|
|
118
118
|
"properties": {
|
119
119
|
"associationType": {
|
120
120
|
"type": "string",
|
121
|
-
"description": "Identifies the
|
121
|
+
"description": "Identifies how the associated resource is related to the subject resource such as 'is a component of', 'larger work citation', 'cross reference', etc.",
|
122
122
|
"translation": {
|
123
123
|
"ISO 19115-2": ["MD_AggregateInformation > associationType [DS_AssociationTypeCode]"]
|
124
124
|
}
|
@@ -151,7 +151,7 @@
|
|
151
151
|
},
|
152
152
|
"additionalDocumentation": {
|
153
153
|
"type": "array",
|
154
|
-
"description": "
|
154
|
+
"description": "Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.",
|
155
155
|
"translation": {
|
156
156
|
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
|
157
157
|
"FGDC CSDGM": ["idinfo > crossref "]
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"useLimitation": {
|
17
17
|
"type": "string",
|
18
18
|
"description": "Limitation affecting the fitness for use of the resource or metadata. For example, \"not to be used for navigation\".",
|
19
|
-
|
19
|
+
"example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/useLimitation",
|
20
20
|
"translation": {
|
21
21
|
"ISO 19115-2": ["MD_Constraints > useLimitation"]
|
22
22
|
}
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"legalConstraint": {
|
25
25
|
"type": "object",
|
26
26
|
"description": "Restrictions and legal prerequisites for accessing and using the resource or metadata.",
|
27
|
-
|
27
|
+
"example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/legalConstraint",
|
28
28
|
"translation": {
|
29
29
|
"ISO 19115-2": ["MD_LegalConstraints"]
|
30
30
|
},
|
@@ -167,7 +167,7 @@
|
|
167
167
|
},
|
168
168
|
"graphicOverview": {
|
169
169
|
"type": "array",
|
170
|
-
"description": "
|
170
|
+
"description": "Provides a path or link to images, maps, flow charts, models, etc. that illustrate the resource.",
|
171
171
|
"translation": {
|
172
172
|
"ISO 19115-2": ["MD_DataIdentification > graphicOverview > MD_BrowseGraphic"]
|
173
173
|
},
|
@@ -184,6 +184,7 @@
|
|
184
184
|
"properties": {
|
185
185
|
"useLimitation": {
|
186
186
|
"type": "array",
|
187
|
+
"description": "Limitation affecting the fitness for use of the resource or metadata. For example, \"not to be used for navigation\".",
|
187
188
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/constraint",
|
188
189
|
"translation": {
|
189
190
|
"ISO 19115-2": ["MD_DataIdentification > resourceConstraints > MD_Constraints[useLimitation]"]
|
@@ -194,6 +195,7 @@
|
|
194
195
|
},
|
195
196
|
"legalConstraint": {
|
196
197
|
"type": "array",
|
198
|
+
"description": "Restrictions and legal prerequisites for accessing and using the resource or metadata.",
|
197
199
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/legalConstraint",
|
198
200
|
"translation": {
|
199
201
|
"ISO 19115-2": ["MI_Metadata > resourceConstraints > MD_LegalConstraints"]
|
@@ -204,6 +206,7 @@
|
|
204
206
|
},
|
205
207
|
"securityConstraint": {
|
206
208
|
"type": "array",
|
209
|
+
"description": "Handling restrictions imposed on the resource or metadata for national security or similar security concerns.",
|
207
210
|
"example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/securityConstraint",
|
208
211
|
"translation": {
|
209
212
|
"ISO 19115-2": ["MI_Metadata > resourceConstraints > MD_SecurityConstraints"]
|
@@ -275,7 +278,7 @@
|
|
275
278
|
},
|
276
279
|
"extent": {
|
277
280
|
"type": "array",
|
278
|
-
"description": "Information about the geographic extent of the resource. A resource may have multiple extents.",
|
281
|
+
"description": "Information about the geographic, vertical, and temporal extent of the resource. A resource may have multiple extents.",
|
279
282
|
"translation": {
|
280
283
|
"ISO 19115-2": ["MD_DataIdentification > extent > EX_Extent"]
|
281
284
|
},
|
@@ -285,7 +288,7 @@
|
|
285
288
|
},
|
286
289
|
"dataQualityInfo": {
|
287
290
|
"type": "array",
|
288
|
-
"description": "Information
|
291
|
+
"description": "Information that describes the data quality, lineage, and/or processing steps that were applied to the whole or part of the data resource.",
|
289
292
|
"translation": {
|
290
293
|
"ISO 19115-2": ["MI_Metadata > dataQualityInfo > DQ_DataQuality"],
|
291
294
|
"FGDC CSDGM": ["dataqual"]
|
data/schema/schema/taxonomy.json
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
"properties": {
|
61
61
|
"specimen": {
|
62
62
|
"type": "string",
|
63
|
-
"description": "Word or phrase describing the type of specimen collected (e.g. herbarium specimens, blood samples, photographs, individuals, or batches).
|
63
|
+
"description": "Word or phrase describing the type of specimen collected (e.g. 'herbarium specimens', 'blood samples', 'photographs', 'individuals', or 'batches').",
|
64
64
|
"translation": {
|
65
65
|
"ISO 19115-2": ["MD_Vouchers > specimen"],
|
66
66
|
"FGDC CSDGM": ["idinfo > taxonomy > taxonsys > vouchers > specimens"]
|
data/schema/schema/usage.json
CHANGED
@@ -12,21 +12,21 @@
|
|
12
12
|
"properties": {
|
13
13
|
"specificUsage": {
|
14
14
|
"type": "string",
|
15
|
-
"description": "
|
15
|
+
"description": "A brief description about how the resource is being used.",
|
16
16
|
"translation": {
|
17
17
|
"ISO 19115-2": ["MD_Usage > specific usage"]
|
18
18
|
}
|
19
19
|
},
|
20
20
|
"userDeterminedLimitation": {
|
21
21
|
"type": "string",
|
22
|
-
"description": "
|
22
|
+
"description": "A brief description of applications, determined by the user, for which the resource is not suitable.",
|
23
23
|
"translation": {
|
24
24
|
"ISO 19115-2": ["MD_Usage > userDeterminedLimitations"]
|
25
25
|
}
|
26
26
|
},
|
27
27
|
"userContactInfo": {
|
28
28
|
"type": "array",
|
29
|
-
"description": "Identification of
|
29
|
+
"description": "Identification of the persons and/or organizations that are using the resource.",
|
30
30
|
"translation": {
|
31
31
|
"ISO 19115-2": ["MD_Usage > userContactInfo"]
|
32
32
|
},
|
data/test/tc_utils.rb
CHANGED
@@ -10,7 +10,6 @@ require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-mdjson_schemas.rb')
|
|
10
10
|
|
11
11
|
class TestUtils < Minitest::Test
|
12
12
|
def test_examples_dir
|
13
|
-
puts ADIWG::MdjsonSchemas::Utils.examples_dir
|
14
13
|
errors = File.exist?(ADIWG::MdjsonSchemas::Utils.examples_dir)
|
15
14
|
assert_equal( true, errors, failure_message = 'Examples directory does not exist.')
|
16
15
|
end
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
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: 2015-
|
11
|
+
date: 2015-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|