adiwg-mdjson_schemas 1.1.3 → 2.0.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +14 -3
- data/adiwg-json_schemas.gemspec +2 -2
- data/bower.json +0 -1
- data/examples/additionalDocumentation.json +9 -60
- data/examples/address.json +14 -10
- data/examples/allocation.json +12 -0
- data/examples/associatedResource.json +10 -118
- data/examples/attribute.json +27 -0
- data/examples/attributeGroup.json +17 -0
- data/examples/boundingBox.json +6 -0
- data/examples/citation.json +69 -127
- data/examples/computedBbox.json +399 -0
- data/examples/constraint.json +62 -0
- data/examples/contact.json +40 -207
- data/examples/coverageDescription.json +21 -0
- data/examples/date.json +8 -19
- data/examples/dictionary.json +58 -0
- data/examples/dimension.json +11 -0
- data/examples/distribution.json +26 -0
- data/examples/distributor.json +22 -142
- data/examples/domain.json +29 -0
- data/examples/domainItem.json +11 -0
- data/examples/duration.json +17 -0
- data/examples/entity.json +48 -0
- data/examples/entityAttribute.json +31 -0
- data/examples/entityForeignKey.json +17 -0
- data/examples/entityIndex.json +8 -0
- data/examples/extent.json +60 -0
- data/examples/featureCollection.json +58 -0
- data/examples/featureProperties.json +16 -0
- data/examples/format.json +7 -14
- data/examples/funding.json +33 -0
- data/examples/geoJson.json +185 -0
- data/examples/geographicExtent.json +22 -0
- data/examples/geometryCollection.json +14 -0
- data/examples/geometryFeature.json +12 -0
- data/examples/geometryObject.json +90 -0
- data/examples/georectifiedRepresentation.json +28 -0
- data/examples/georeferencableRepresentation.json +25 -0
- data/examples/gmlIdentifier.json +8 -0
- data/examples/graphic.json +33 -0
- data/examples/gridRepresentation.json +14 -0
- data/examples/identifier.json +9 -0
- data/examples/imageDescription.json +15 -0
- data/examples/keyword.json +14 -0
- data/examples/keywordObject.json +12 -0
- data/examples/legalConstraint.json +21 -0
- data/examples/lineage.json +21 -0
- data/examples/locale.json +12 -3
- data/examples/maintenance.json +38 -0
- data/examples/mdJson.json +99 -0
- data/examples/measure.json +5 -0
- data/examples/medium.json +16 -0
- data/examples/metadata.json +102 -0
- data/examples/metadataInfo.json +68 -101
- data/examples/onlineResource.json +13 -17
- data/examples/orderProcess.json +6 -0
- data/examples/party.json +21 -0
- data/examples/phone.json +9 -0
- data/examples/processStep.json +34 -0
- data/examples/releasability.json +28 -0
- data/examples/resourceInfo.json +230 -1256
- data/examples/responsibleParty.json +31 -0
- data/examples/schema.json +8 -0
- data/examples/scope.json +33 -0
- data/examples/scopeDescription.json +8 -0
- data/examples/securityConstraint.json +13 -0
- data/examples/series.json +9 -0
- data/examples/source.json +23 -0
- data/examples/spatialReference.json +34 -0
- data/examples/spatialRepresentation.json +59 -0
- data/examples/spatialResolution.json +11 -0
- data/examples/taxonomicClassification.json +59 -0
- data/examples/taxonomicSystem.json +13 -0
- data/examples/taxonomy.json +79 -188
- data/examples/temporalExtent.json +11 -0
- data/examples/timeInstant.json +13 -0
- data/examples/timeInterval.json +8 -0
- data/examples/timePeriod.json +26 -0
- data/examples/transferOption.json +36 -0
- data/examples/usage.json +48 -33
- data/examples/vectorObject.json +4 -0
- data/examples/vectorRepresentation.json +10 -0
- data/examples/verticalExtent.json +10 -17
- data/examples/voucher.json +12 -0
- data/lib/adiwg/mdjson_schemas/utils.rb +45 -15
- data/lib/adiwg/mdjson_schemas/validator.rb +6 -7
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/lib/adiwg/mdjson_schemas.rb +4 -2
- data/schema/additionalDocumentation.json +29 -0
- data/schema/associatedResource.json +49 -0
- data/schema/attribute.json +157 -0
- data/schema/attributeGroup.json +29 -0
- data/schema/{schema/geojson/bbox.json → bbox.json} +2 -2
- data/schema/{schema/citation.json → citation.json} +73 -99
- data/schema/common.json +49 -0
- data/schema/{schema/resourceConstraint.json → constraint.json} +83 -13
- data/schema/contact.json +234 -0
- data/schema/coverageDescription.json +50 -0
- data/schema/dataDictionary.json +71 -0
- data/schema/distribution.json +35 -0
- data/schema/distributor.json +46 -0
- data/schema/domain.json +65 -0
- data/schema/entity.json +235 -0
- data/schema/extent.json +59 -0
- data/schema/format.json +37 -0
- data/schema/funding.json +67 -0
- data/schema/geographicExtent.json +87 -0
- data/schema/{schema/geojson/geojson.json → geojson.json} +16 -44
- data/schema/{schema/geojson/geometry.json → geometry.json} +2 -1
- data/schema/georectifiedRepresentation.json +89 -0
- data/schema/georeferencableRepresentation.json +49 -0
- data/schema/{schema/graphicOverview.json → graphic.json} +19 -6
- data/schema/{schema/gridInfo.json → gridRepresentation.json} +7 -13
- data/schema/identifier.json +47 -0
- data/schema/imageDescription.json +92 -0
- data/schema/{schema/keyword.json → keyword.json} +18 -4
- data/schema/{schema/dataQuality.json → lineage.json} +92 -57
- data/schema/{schema/maintInfo.json → maintInfo.json} +24 -6
- data/schema/measure.json +31 -0
- data/schema/medium.json +55 -0
- data/schema/metadata.json +77 -0
- data/schema/metadataInfo.json +112 -0
- data/schema/{schema/onlineResource.json → onlineResource.json} +1 -1
- data/schema/orderProcess.json +45 -0
- data/schema/releasability.json +42 -0
- data/schema/{schema/resourceInfo.json → resourceInfo.json} +112 -189
- data/schema/responsibility.json +56 -0
- data/schema/schema.json +16 -31
- data/schema/scope.json +55 -0
- data/schema/spatialReference.json +26 -0
- data/schema/spatialRepresentation.json +83 -0
- data/schema/spatialResolution.json +54 -0
- data/schema/taxonomy.json +178 -0
- data/schema/temporalExtent.json +42 -0
- data/schema/timeInstant.json +46 -0
- data/schema/timePeriod.json +126 -0
- data/schema/transferOption.json +61 -0
- data/schema/{schema/usage.json → usage.json} +34 -4
- data/schema/vectorRepresentation.json +51 -0
- data/schema/verticalExtent.json +37 -0
- data/test/helper.rb +32 -0
- data/test/tc_additionalDocumentation.rb +8 -0
- data/test/tc_address.rb +8 -0
- data/test/tc_associatedResource.rb +8 -0
- data/test/tc_attribute.rb +8 -0
- data/test/tc_attributeGroup.rb +8 -0
- data/test/tc_boundingBox.rb +8 -0
- data/test/tc_citation.rb +8 -0
- data/test/tc_constraint.rb +8 -0
- data/test/tc_contact.rb +8 -0
- data/test/tc_coverageDescription.rb +8 -0
- data/test/tc_dataDictionary.rb +8 -0
- data/test/tc_dimension.rb +8 -0
- data/test/tc_distribution.rb +8 -0
- data/test/tc_distributor.rb +8 -0
- data/test/tc_domain.rb +8 -0
- data/test/tc_domainItem.rb +8 -0
- data/test/tc_duration.rb +8 -0
- data/test/tc_entity.rb +20 -0
- data/test/tc_extent.rb +8 -0
- data/test/tc_featureCollection.rb +8 -0
- data/test/tc_featureProperties.rb +8 -0
- data/test/tc_format.rb +8 -0
- data/test/tc_funding.rb +8 -0
- data/test/tc_geographicElement.rb +12 -0
- data/test/tc_geographicExtent.rb +8 -0
- data/test/tc_geometryCollection.rb +8 -0
- data/test/tc_geometryFeature.rb +8 -0
- data/test/tc_geometryObject.rb +8 -0
- data/test/tc_georectifiedRepresentation.rb +8 -0
- data/test/tc_georeferencableRepresentation.rb +8 -0
- data/test/tc_graphic.rb +8 -0
- data/test/tc_gridRepresentation.rb +8 -0
- data/test/tc_identifier.rb +8 -0
- data/test/tc_imageDescription.rb +8 -0
- data/test/tc_jsonschema.rb +16 -0
- data/test/tc_keyword.rb +8 -0
- data/test/tc_lineage.rb +8 -0
- data/test/tc_maintInfo.rb +8 -0
- data/test/tc_measure.rb +8 -0
- data/test/tc_medium.rb +8 -0
- data/test/tc_metadata.rb +8 -0
- data/test/tc_metadataInfo.rb +8 -0
- data/test/tc_onlineResource.rb +8 -0
- data/test/tc_orderProcess.rb +8 -0
- data/test/tc_party.rb +8 -0
- data/test/tc_processStep.rb +8 -0
- data/test/tc_releasability.rb +8 -0
- data/test/tc_resourceInfo.rb +8 -0
- data/test/tc_responsibility.rb +8 -0
- data/test/tc_schema.rb +8 -0
- data/test/tc_scope.rb +8 -0
- data/test/tc_source.rb +8 -0
- data/test/tc_spatialReference.rb +8 -0
- data/test/tc_spatialRepresentation.rb +8 -0
- data/test/tc_spatialResolution.rb +8 -0
- data/test/tc_taxonomicClassification.rb +8 -0
- data/test/tc_taxonomicSystem.rb +8 -0
- data/test/tc_taxonomy.rb +8 -0
- data/test/tc_temporalExtent.rb +8 -0
- data/test/tc_timeInstant.rb +8 -0
- data/test/tc_timePeriod.rb +8 -0
- data/test/tc_transferOption.rb +8 -0
- data/test/tc_uri.rb +8 -0
- data/test/tc_usage.rb +8 -0
- data/test/tc_utils.rb +8 -11
- data/test/tc_vectorRepresentation.rb +13 -0
- data/test/tc_verticalExtent.rb +8 -0
- data/test/tc_voucher.rb +8 -0
- metadata +264 -57
- data/examples/contactRef.json +0 -12
- data/examples/coverageInfo.json +0 -148
- data/examples/dataDictionary.json +0 -549
- data/examples/dataQuality.json +0 -272
- data/examples/extent_linestring.json +0 -288
- data/examples/extent_point.json +0 -246
- data/examples/extent_polygon.json +0 -353
- data/examples/full_example.json +0 -3065
- data/examples/full_example2.json +0 -2325
- data/examples/geojson.json +0 -446
- data/examples/graphicOverview.json +0 -28
- data/examples/gridInfo.json +0 -23
- data/examples/hierarchyLevel.json +0 -90
- data/examples/keywords.json +0 -144
- data/examples/lcc_project_example.json +0 -326
- data/examples/legalConstraints.json +0 -17
- data/examples/maintInfo.json +0 -34
- data/examples/minimum_example.json +0 -35
- data/examples/resolution.json +0 -9
- data/examples/resourceMaintenance.json +0 -10
- data/examples/securityConstraints.json +0 -13
- data/examples/spatialRef.json +0 -14
- data/examples/temporalElement.json +0 -29
- data/schema/schema/contact.json +0 -262
- data/schema/schema/coverageInfo.json +0 -303
- data/schema/schema/dataDictionary.json +0 -335
- data/schema/schema/distributor.json +0 -216
- data/schema/schema/extent.json +0 -215
- data/schema/schema/geojson/crs.json +0 -99
- data/schema/schema/metadata.json +0 -188
- data/schema/schema/resolution.json +0 -51
- data/schema/schema/taxonomy.json +0 -122
- data/test/tc_schemas.rb +0 -243
- /data/schema/{schema/locale.json → locale.json} +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
"id": "keyword.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"description": "schema for a keyword entry",
|
5
|
-
"example": "
|
5
|
+
"example": "",
|
6
6
|
"type": "object",
|
7
7
|
"required": ["keyword"],
|
8
8
|
"additionalProperties": true,
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"FGDC CSDGM": ["idinfo>keywords>theme>themekey", "idinfo>keywords>place>placekey", "idinfo>keywords>temporal>tempkey", "idinfo>keywords>stratum>stratkey"]
|
16
16
|
},
|
17
17
|
"items": {
|
18
|
-
"
|
18
|
+
"$ref": "#/definitions/keywordObject"
|
19
19
|
},
|
20
20
|
"uniqueItems": true
|
21
21
|
},
|
@@ -28,12 +28,26 @@
|
|
28
28
|
},
|
29
29
|
"thesaurus": {
|
30
30
|
"description": "Name of the formally registered thesaurus or a similar authoritative source of keywords.",
|
31
|
-
"example": "
|
31
|
+
"example": "",
|
32
32
|
"translation": {
|
33
33
|
"ISO 19115-2": ["MD_Keywords > thesaurusName > CI_Citation"],
|
34
34
|
"FGDC CSDGM": ["idinfo>keywords>theme>themekt", "idinfo>keywords>place>placekt", "idinfo>keywords>temporal>tempkt", "idinfo>keywords>stratum>stratkt"]
|
35
35
|
},
|
36
36
|
"$ref": "citation.json#/definitions/citationFull"
|
37
37
|
}
|
38
|
+
},
|
39
|
+
"definitions": {
|
40
|
+
"keywordObject": {
|
41
|
+
"type" : "object",
|
42
|
+
"required" : ["keyword"],
|
43
|
+
"additionalProperties" : true,
|
44
|
+
"properties" : {"keyword":{
|
45
|
+
"type" : "string",
|
46
|
+
"description" : "Commonly used word(s) or formalized word(s) or phrase(s) used to describe the subject."
|
47
|
+
},"keywordId": {
|
48
|
+
"type" : "string",
|
49
|
+
"description" : "Identifier for the keyword."
|
50
|
+
}}
|
51
|
+
}
|
38
52
|
}
|
39
|
-
}
|
53
|
+
}
|
@@ -1,71 +1,76 @@
|
|
1
1
|
{
|
2
|
-
"id": "
|
2
|
+
"id": "lineage.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"type": "object",
|
5
|
-
"description": "Information
|
6
|
-
"example": "
|
5
|
+
"description": "Information on the history of the resource.",
|
6
|
+
"example": "",
|
7
7
|
"translation": {
|
8
|
-
"ISO 19115-2": ["
|
9
|
-
"FGDC CSDGM": ["dataqual"]
|
8
|
+
"ISO 19115-2": ["LI_Lineage"]
|
10
9
|
},
|
11
|
-
"required": ["scope"],
|
12
10
|
"additionalProperties": true,
|
11
|
+
"anyOf": [{
|
12
|
+
"title": "statement is required",
|
13
|
+
"required": ["statement"],
|
14
|
+
"description": "A statement is required."
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"title": "source is required",
|
18
|
+
"required": ["source"],
|
19
|
+
"description": "At least one source is required."
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"title": "processStep is required",
|
23
|
+
"required": ["processStep"],
|
24
|
+
"description": "At least one processStep is required."
|
25
|
+
}
|
26
|
+
],
|
13
27
|
"properties": {
|
14
|
-
"
|
28
|
+
"statement": {
|
15
29
|
"type": "string",
|
16
|
-
"description": "
|
30
|
+
"description": "A general statement of the actions taken to verify, transform, repair, and integrate the data within the data quality scope.",
|
17
31
|
"translation": {
|
18
|
-
"ISO 19115-2": ["
|
32
|
+
"ISO 19115-2": ["LI_Lineage > statement"]
|
19
33
|
}
|
20
34
|
},
|
21
|
-
"
|
35
|
+
"scope": {
|
36
|
+
"$ref": "./scope.json#",
|
37
|
+
"description": "Type of resource and/or extent to which the lineage information applies.",
|
38
|
+
"example": "",
|
39
|
+
"translation": {}
|
40
|
+
},
|
41
|
+
"citation": {
|
42
|
+
"type": "array",
|
43
|
+
"description": "Citation to a reference that describes the lineage.",
|
44
|
+
"example": "",
|
45
|
+
"translation": {},
|
46
|
+
"items": {
|
47
|
+
"$ref": "./citation.json#"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"processStep": {
|
51
|
+
"type": "array",
|
52
|
+
"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.",
|
22
53
|
"translation": {
|
23
|
-
"ISO 19115-2": ["
|
24
|
-
"FGDC CSDGM": ["dataqual > lineage"]
|
54
|
+
"ISO 19115-2": ["LI_Lineage > processStep > LI_ProcessStep"]
|
25
55
|
},
|
26
|
-
"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
"type": "
|
32
|
-
"description": "
|
33
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/dataQualityInfo/0/lineage",
|
56
|
+
"items": {
|
57
|
+
"$ref": "#/definitions/processStep"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"source": {
|
61
|
+
"type": "array",
|
62
|
+
"description": "Information about the source data used in creating the data identified by the data quality scope.",
|
34
63
|
"translation": {
|
35
|
-
"ISO 19115-2": ["LI_Lineage"]
|
64
|
+
"ISO 19115-2": ["LI_Lineage > source > LI_Source"],
|
65
|
+
"FGDC CSDGM": ["dataqual > lineage > srcinfo"]
|
36
66
|
},
|
37
|
-
"
|
38
|
-
|
39
|
-
"statement": {
|
40
|
-
"type": "string",
|
41
|
-
"description": "A general statement of the actions taken to verify, transform, repair, and integrate the data within the data quality scope.",
|
42
|
-
"translation": {
|
43
|
-
"ISO 19115-2": ["LI_Lineage > statement"]
|
44
|
-
}
|
45
|
-
},
|
46
|
-
"processStep": {
|
47
|
-
"type": "array",
|
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
|
-
"translation": {
|
50
|
-
"ISO 19115-2": ["LI_Lineage > processStep > LI_ProcessStep"]
|
51
|
-
},
|
52
|
-
"items": {
|
53
|
-
"$ref": "#/definitions/processStep"
|
54
|
-
}
|
55
|
-
},
|
56
|
-
"source": {
|
57
|
-
"type": "array",
|
58
|
-
"description": "Information about the source data used in creating the data identified by the data quality scope.",
|
59
|
-
"translation": {
|
60
|
-
"ISO 19115-2": ["LI_Lineage > source > LI_Source"],
|
61
|
-
"FGDC CSDGM": ["dataqual > lineage > srcinfo"]
|
62
|
-
},
|
63
|
-
"items": {
|
64
|
-
"$ref": "#/definitions/source"
|
65
|
-
}
|
66
|
-
}
|
67
|
+
"items": {
|
68
|
+
"$ref": "#/definitions/source"
|
67
69
|
}
|
68
|
-
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"definitions": {
|
73
|
+
|
69
74
|
"processStep": {
|
70
75
|
"type": "object",
|
71
76
|
"description": "Process or methodology steps applied to development of the resource.",
|
@@ -98,13 +103,13 @@
|
|
98
103
|
"ISO 19115-2": ["LI_ProcessStep > rationale"]
|
99
104
|
}
|
100
105
|
},
|
101
|
-
"
|
102
|
-
"description": "Date
|
106
|
+
"timePeriod": {
|
107
|
+
"description": "Date, datetime, or period at which the process or methodology step occurred.",
|
103
108
|
"translation": {
|
104
109
|
"ISO 19115-2": ["LI_ProcessStep > dateTime"],
|
105
110
|
"FGDC CSDGM": ["dataqual > lineage > procstep > procdate"]
|
106
111
|
},
|
107
|
-
"$ref": "
|
112
|
+
"$ref": "./timePeriod.json#"
|
108
113
|
},
|
109
114
|
"processor": {
|
110
115
|
"type": "array",
|
@@ -114,7 +119,16 @@
|
|
114
119
|
"FGDC CSDGM": ["dataqual > lineage > procstep > proccont > cntinfo"]
|
115
120
|
},
|
116
121
|
"items": {
|
117
|
-
"$ref": "
|
122
|
+
"$ref": "./responsibility.json#"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"reference": {
|
126
|
+
"type": "array",
|
127
|
+
"description": "Citation for process step documentation.",
|
128
|
+
"example": "",
|
129
|
+
"translation": {},
|
130
|
+
"items": {
|
131
|
+
"$ref": "./citation.json#"
|
118
132
|
}
|
119
133
|
}
|
120
134
|
}
|
@@ -143,6 +157,27 @@
|
|
143
157
|
},
|
144
158
|
"$ref": "citation.json#"
|
145
159
|
},
|
160
|
+
"metadataCitation": {
|
161
|
+
"type": "array",
|
162
|
+
"description": "Citation providing information about the metadata for the source.",
|
163
|
+
"example": "",
|
164
|
+
"translation": {},
|
165
|
+
"items": {
|
166
|
+
"$ref": "citation.json#"
|
167
|
+
}
|
168
|
+
},
|
169
|
+
"scaleDenominator": {
|
170
|
+
"type": "integer",
|
171
|
+
"description": "The number below the line in a vulgar fraction",
|
172
|
+
"example": "",
|
173
|
+
"translation": {}
|
174
|
+
},
|
175
|
+
"referenceSystem": {
|
176
|
+
"$ref": "./spatialReference.json#",
|
177
|
+
"description": "Spatial reference system used by the source.",
|
178
|
+
"example": "",
|
179
|
+
"translation": {}
|
180
|
+
},
|
146
181
|
"processStep": {
|
147
182
|
"type": "array",
|
148
183
|
"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.",
|
@@ -156,4 +191,4 @@
|
|
156
191
|
}
|
157
192
|
}
|
158
193
|
}
|
159
|
-
}
|
194
|
+
}
|
@@ -3,20 +3,38 @@
|
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
4
|
"type": "object",
|
5
5
|
"description": "Information about the maintenance of a resource.",
|
6
|
-
"example": "
|
6
|
+
"example": "",
|
7
7
|
"translation": {
|
8
8
|
"ISO 19115-2": ["MD_MaintenanceInformation"]
|
9
9
|
},
|
10
10
|
"additionalProperties": true,
|
11
11
|
"properties": {
|
12
|
-
"
|
12
|
+
"frequency": {
|
13
13
|
"type": "string",
|
14
14
|
"description": "Describes the frequency of additions and updates made to a resource.",
|
15
15
|
"translation": {
|
16
16
|
"ISO 19115-2": ["MD_MaintenanceInformation > maintenanceAndUpdateFrequency [MD_MaintenanceFrequencyCode]"]
|
17
17
|
}
|
18
18
|
},
|
19
|
-
"
|
19
|
+
"date": {
|
20
|
+
"type" : "array",
|
21
|
+
"description" : "Date related to resource maintenance.",
|
22
|
+
"example": "",
|
23
|
+
"translation": {},
|
24
|
+
"items" : {
|
25
|
+
"$ref": "common.json#/definitions/dateObject"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"scope": {
|
29
|
+
"type" : "array",
|
30
|
+
"description" : "Type of resource to which the maintenance information applies.",
|
31
|
+
"example": "",
|
32
|
+
"translation": {},
|
33
|
+
"items" : {
|
34
|
+
"$ref": "./scope.json#"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"note": {
|
20
38
|
"type": "array",
|
21
39
|
"description": "Notes regarding the maintenance of the resource.",
|
22
40
|
"translation": {
|
@@ -27,7 +45,7 @@
|
|
27
45
|
}
|
28
46
|
}
|
29
47
|
,
|
30
|
-
"
|
48
|
+
"contact": {
|
31
49
|
"type": "array",
|
32
50
|
"description": "Contact information for the maintainer of the resource.",
|
33
51
|
"translation": {
|
@@ -36,8 +54,8 @@
|
|
36
54
|
},
|
37
55
|
"uniqueItems": true,
|
38
56
|
"items": {
|
39
|
-
"$ref": "
|
57
|
+
"$ref": "./responsibility.json#"
|
40
58
|
}
|
41
59
|
}
|
42
60
|
}
|
43
|
-
}
|
61
|
+
}
|
data/schema/measure.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "measure.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "",
|
6
|
+
"description": "Number and type of units",
|
7
|
+
"required": ["type", "value", "unitOfMeasure"],
|
8
|
+
"additionalProperties": true,
|
9
|
+
"properties": {
|
10
|
+
"type": {
|
11
|
+
"type": "string",
|
12
|
+
"description": "The type of measurement.",
|
13
|
+
"example": "",
|
14
|
+
"translation": {},
|
15
|
+
"enum": ["distance", "length", "vertical", "angle"]
|
16
|
+
},
|
17
|
+
"value": {
|
18
|
+
"type": "number",
|
19
|
+
"description": "The number of units in the measurement.",
|
20
|
+
"example": "",
|
21
|
+
"translation": {}
|
22
|
+
},
|
23
|
+
"unitOfMeasure": {
|
24
|
+
"type": "string",
|
25
|
+
"description": "The type of units to associated with the value.",
|
26
|
+
"example": "",
|
27
|
+
"translation": {},
|
28
|
+
"minLength": 1
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
data/schema/medium.json
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "medium.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "medium",
|
6
|
+
"description": "Information about offline media on which the resource can be stored or distributed.",
|
7
|
+
"required": [],
|
8
|
+
"additionalProperties": true,
|
9
|
+
"properties": {
|
10
|
+
"mediumSpecification": {
|
11
|
+
"$ref": "./citation.json#",
|
12
|
+
"description": "Name of the formaton which the resource may be stored",
|
13
|
+
"translation": {
|
14
|
+
"ISO 19115-2": ["MD_Medium > name [MD_MediumNameCode]"],
|
15
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > offoptn > offmedia"]
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"density": {
|
19
|
+
"type": "number",
|
20
|
+
"description": "Density at which the data are recorded."
|
21
|
+
},
|
22
|
+
"units": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "Units of measure for the recording density."
|
25
|
+
},
|
26
|
+
"numberOfVolumes": {
|
27
|
+
"type": "integer",
|
28
|
+
"description": "The number of items identified in the media resource.",
|
29
|
+
"translation": {}
|
30
|
+
},
|
31
|
+
"mediumFormat": {
|
32
|
+
"type": "array",
|
33
|
+
"description": "Method used by the resource provider to write to the medium, such as: tar, iso9660, etc.",
|
34
|
+
"translation": {
|
35
|
+
"ISO 19115-2": ["MD_Medium > mediumFormat [MD_MediumFormatCode]"],
|
36
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > offoptn > recfmt"]
|
37
|
+
},
|
38
|
+
"items": {
|
39
|
+
"type": "string"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"note": {
|
43
|
+
"type": "string",
|
44
|
+
"description": "Description of other limitations or requirements for using the medium.",
|
45
|
+
"translation": {
|
46
|
+
"ISO 19115-2": ["MD_Medium > mediumNote"],
|
47
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > offoptn > compat"]
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"identifier": {
|
51
|
+
"$ref": "./identifier.json#",
|
52
|
+
"description": "Unique identifier for the medium."
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
{
|
2
|
+
"id": "metadata.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"description": "The main body of the metadata record.",
|
5
|
+
"type": "object",
|
6
|
+
"example": "",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["MI_Metadata"],
|
9
|
+
"FGDC CSDGM": ["metadata"]
|
10
|
+
},
|
11
|
+
"required": ["resourceInfo"],
|
12
|
+
"additionalProperties": false,
|
13
|
+
"properties": {
|
14
|
+
"metadataInfo": {
|
15
|
+
"$ref": "./metadataInfo.json#"
|
16
|
+
},
|
17
|
+
"resourceInfo": {
|
18
|
+
"translation": {
|
19
|
+
"ISO 19115-2": ["MD_Metadata > identificationInfo > MD_DataIdentification"],
|
20
|
+
"FGDC CSDGM": ["idinfo"]
|
21
|
+
},
|
22
|
+
"$ref": "resourceInfo.json#"
|
23
|
+
},
|
24
|
+
"resourceLineage": {
|
25
|
+
"type": "array",
|
26
|
+
"description": "Information on the history of the resource.",
|
27
|
+
"example": "",
|
28
|
+
"translation": {},
|
29
|
+
"items": {
|
30
|
+
"$ref": "./lineage.json#"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"resourceDistribution": {
|
34
|
+
"type": "array",
|
35
|
+
"description": "Information about the distributor of and options for obtaining the resource.",
|
36
|
+
"example": "",
|
37
|
+
"translation": {
|
38
|
+
"ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
|
39
|
+
"FGDC CSDGM": ["distinfo"]
|
40
|
+
},
|
41
|
+
"items": {
|
42
|
+
"$ref": "distribution.json#"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"associatedResource": {
|
46
|
+
"type": "array",
|
47
|
+
"description": "Other resources which are directly related to the subject resource such as parent, child, or sibling datasets or projects.",
|
48
|
+
"example": "",
|
49
|
+
"translation": {
|
50
|
+
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
|
51
|
+
"FGDC CSDGM": ["idinfo > crossref"]
|
52
|
+
},
|
53
|
+
"items": {
|
54
|
+
"$ref": "./associatedResource.json#"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"additionalDocumentation": {
|
58
|
+
"type": "array",
|
59
|
+
"description": "Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.",
|
60
|
+
"translation": {
|
61
|
+
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
|
62
|
+
"FGDC CSDGM": ["idinfo > crossref "]
|
63
|
+
},
|
64
|
+
"items": {
|
65
|
+
"$ref": "./additionalDocumentation.json#"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"funding": {
|
69
|
+
"type": "array",
|
70
|
+
"description": "Information about funding for the resource.",
|
71
|
+
"example": "",
|
72
|
+
"items": {
|
73
|
+
"$ref": "./funding.json#"
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "metadataInfo.json#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "General information about the metadata record.",
|
6
|
+
"example": "",
|
7
|
+
"required": ["metadataContact", "metadataDate"],
|
8
|
+
"additionalProperties": true,
|
9
|
+
"properties": {
|
10
|
+
"metadataIdentifier": {
|
11
|
+
"description": "Identifier for the metadata.",
|
12
|
+
"translation": {
|
13
|
+
"ISO 19115-2": ["MI_Metadata > fileIdentifier"]
|
14
|
+
},
|
15
|
+
"$ref": "./identifier.json#"
|
16
|
+
},
|
17
|
+
"parentMetadata": {
|
18
|
+
"description": "Identifier of the metadata to which this metadata is a subset (child).",
|
19
|
+
"translation": {
|
20
|
+
"ISO 19115-2": ["MI_Metadata > parentIdentifier"]
|
21
|
+
},
|
22
|
+
"$ref": "citation.json#/definitions/citationFull"
|
23
|
+
},
|
24
|
+
"defaultMetadataLocale": {
|
25
|
+
"description": "Main localised language and characterset used within the metadata record.",
|
26
|
+
"$ref": "locale.json"
|
27
|
+
},
|
28
|
+
"otherMetadataLocale": {
|
29
|
+
"type": "array",
|
30
|
+
"description": "Additional localised language(s) and characterset(s) used within the metadata record.",
|
31
|
+
"items": {
|
32
|
+
"$ref": "locale.json"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"scope": {
|
36
|
+
"type": "array",
|
37
|
+
"description": "The scope/type of resource for which metadata is provided.",
|
38
|
+
"example": "",
|
39
|
+
"translation": {},
|
40
|
+
"items": {
|
41
|
+
"$ref": "./scope.json#"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"metadataContact": {
|
45
|
+
"type": "array",
|
46
|
+
"description": "Person or organization responsible for metadata information (metadata custodian).",
|
47
|
+
"translation": {
|
48
|
+
"ISO 19115-2": ["MI_Metadata > contact > CI_Contact > responsibleParty > CI_ResponsibleParty"],
|
49
|
+
"FGDC CSDGM": ["metainfo > metc > cntinfo"]
|
50
|
+
},
|
51
|
+
"minItems": 1,
|
52
|
+
"items": {
|
53
|
+
"$ref": "./responsibility.json#"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
"metadataDate": {
|
57
|
+
"type": "array",
|
58
|
+
"description": "Date that the metadata was updated.",
|
59
|
+
"translation": {
|
60
|
+
"ISO 19115-2": ["MI_Metadata > dateStamp"],
|
61
|
+
"FGDC CSDGM": ["metainfo > metrd"]
|
62
|
+
},
|
63
|
+
"minItems": 1,
|
64
|
+
"items": {
|
65
|
+
"$ref": "common.json#/definitions/dateObject"
|
66
|
+
},
|
67
|
+
"allOf": [{
|
68
|
+
"type": "array",
|
69
|
+
"items": [{
|
70
|
+
"type": "object",
|
71
|
+
"title": "Creation date required.",
|
72
|
+
"description": "A creation date must be the first object in the array.",
|
73
|
+
"properties": {
|
74
|
+
"dateType": {
|
75
|
+
"type": "string",
|
76
|
+
"enum": ["creation"]
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}]
|
80
|
+
}]
|
81
|
+
},
|
82
|
+
"metadataOnlineResource": {
|
83
|
+
"type": "array",
|
84
|
+
"description": "Online location where the metadata is available.",
|
85
|
+
"example": "",
|
86
|
+
"translation": {},
|
87
|
+
"items": {
|
88
|
+
"$ref": "./onlineResource.json#"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"alternateMetadataReference": {
|
92
|
+
"type": "array",
|
93
|
+
"description": "Reference to alternative metadata for the resource.",
|
94
|
+
"example": "",
|
95
|
+
"translation": {},
|
96
|
+
"items": {
|
97
|
+
"$ref": "./citation.json#"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"metadataStatus": {
|
101
|
+
"type": "string",
|
102
|
+
"description": "Status of the metadata record."
|
103
|
+
},
|
104
|
+
"metadataMaintenance": {
|
105
|
+
"description": "Provides information about the frequency of metadata updates, and the scope of those updates.",
|
106
|
+
"translation": {
|
107
|
+
"ISO 19115-2": ["MI_Metadata > metadataMaintenance > MD_MaintenanceInformation"]
|
108
|
+
},
|
109
|
+
"$ref": "maintInfo.json#"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "orderProcess.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "orderProcess",
|
6
|
+
"description": "Provides information about how the resource may be obtained and related instructions and fee information.",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["MD_Distribution > distributor > MD_Distributor > distributionOrderProcess > MD_StandardOrderProcess"]
|
9
|
+
},
|
10
|
+
"example": "",
|
11
|
+
"additionalProperties": true,
|
12
|
+
"properties": {
|
13
|
+
"fees": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "Fees and terms for retrieving the resource, including monetary units.",
|
16
|
+
"translation": {
|
17
|
+
"ISO 19115-2": ["MD_StandardOrderProcess > fees"],
|
18
|
+
"FGDC CSDGM": ["distinfo > stdorder > fees"]
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"plannedAvailability": {
|
22
|
+
"description": "Date and time when the resource will be available.",
|
23
|
+
"translation": {
|
24
|
+
"ISO 19115-2": ["MD_StandardOrderProcess > plannedAvailabilityDateTime"]
|
25
|
+
},
|
26
|
+
"$ref": "common.json#/definitions/date"
|
27
|
+
},
|
28
|
+
"orderingInstructions": {
|
29
|
+
"type": "string",
|
30
|
+
"description": "General instructions, terms and services provided by the distributor.",
|
31
|
+
"translation": {
|
32
|
+
"ISO 19115-2": ["MD_StandardOrderProcess > orderingInstructions"],
|
33
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt > onlinopt > accinstr"]
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"turnaround": {
|
37
|
+
"type": "string",
|
38
|
+
"description": "Typical turnaround time for the filling of an order.",
|
39
|
+
"translation": {
|
40
|
+
"ISO 19115-2": ["MD_StandardOrderProcess > turnaround"],
|
41
|
+
"FGDC CSDGM": ["distinfo > stdorder > turnarnd"]
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|