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
data/schema/schema/extent.json
DELETED
@@ -1,215 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"id": "extent.json#",
|
3
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
-
"type": "object",
|
5
|
-
"description": "Information about the geographic, vertical, and temporal extent of a resource.",
|
6
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent",
|
7
|
-
"translation": {
|
8
|
-
"ISO 19115-2": ["EX_Extent"]
|
9
|
-
},
|
10
|
-
"additionalProperties": true,
|
11
|
-
"properties": {
|
12
|
-
"description": {
|
13
|
-
"type": "string",
|
14
|
-
"description": "Description of the geographic extent.",
|
15
|
-
"translation": {
|
16
|
-
"ISO 19115-2": ["EX_Extent > description"]
|
17
|
-
}
|
18
|
-
},
|
19
|
-
"geographicElement": {
|
20
|
-
"type": "array",
|
21
|
-
"description": "An array of objects each describing a geographic boundary or location comprising all or a portion of the resource.",
|
22
|
-
"translation": {
|
23
|
-
"ISO 19115-2": ["EX_Extent > geographicElement"]
|
24
|
-
},
|
25
|
-
"items": {
|
26
|
-
"type": "object",
|
27
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
|
28
|
-
"properties": {
|
29
|
-
"type": {
|
30
|
-
"enum": ["Feature", "FeatureCollection", "GeometryCollection", "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"],
|
31
|
-
"description": "The type of geographic object."
|
32
|
-
}
|
33
|
-
},
|
34
|
-
"oneOf": [
|
35
|
-
{
|
36
|
-
"$ref": "geojson/geojson.json#"
|
37
|
-
}
|
38
|
-
]
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"verticalElement": {
|
42
|
-
"type": "array",
|
43
|
-
"description": "An array of objects each describing a vertical boundary comprising all or a portion of the resource.",
|
44
|
-
"translation": {
|
45
|
-
"ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
|
46
|
-
},
|
47
|
-
"items": {
|
48
|
-
"$ref": "#/definitions/verticalExtent"
|
49
|
-
}
|
50
|
-
},
|
51
|
-
"temporalElement": {
|
52
|
-
"$ref": "#/definitions/temporalElement",
|
53
|
-
"description": "An array of objects each describing a temporal boundary comprising all or a portion of the resource."
|
54
|
-
}
|
55
|
-
},
|
56
|
-
"definitions": {
|
57
|
-
"timeInstant": {
|
58
|
-
"type": "object",
|
59
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent/0/temporalElement/timeInstant/0",
|
60
|
-
"required": ["timePosition"],
|
61
|
-
"additionalProperties": true,
|
62
|
-
"properties": {
|
63
|
-
"id": {
|
64
|
-
"type": "string",
|
65
|
-
"description": "A unique identifier for the timeInstant.",
|
66
|
-
"translation": {
|
67
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant @id"]
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"description": {
|
71
|
-
"type": "string",
|
72
|
-
"description": "A brief description providing relevant information about the date and time.",
|
73
|
-
"translation": {
|
74
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > description"]
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"timePosition": {
|
78
|
-
"translation": {
|
79
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > timePosition"]
|
80
|
-
},
|
81
|
-
"$ref": "../schema.json#/definitions/date"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
},
|
85
|
-
"timePeriod": {
|
86
|
-
"type": "object",
|
87
|
-
"description": "A span of time represented by a starting date-time and an ending date-time.",
|
88
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent/0/temporalElement/timePeriod/0",
|
89
|
-
"additionalProperties": true,
|
90
|
-
"properties": {
|
91
|
-
"id": {
|
92
|
-
"type": "string",
|
93
|
-
"description": "A unique identifier for a time period.",
|
94
|
-
"translation": {
|
95
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod @id"]
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"description": {
|
99
|
-
"type": "string",
|
100
|
-
"description": "A brief description providing relevant information about the time period.",
|
101
|
-
"translation": {
|
102
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > description "]
|
103
|
-
}
|
104
|
-
},
|
105
|
-
"beginPosition": {
|
106
|
-
"description": "Starting date, or date and time.",
|
107
|
-
"translation": {
|
108
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > beginPosition "],
|
109
|
-
"FGDC CSDGM": ["idinfo > timeperd > rngdates > begdate"]
|
110
|
-
},
|
111
|
-
"$ref": "../schema.json#/definitions/date"
|
112
|
-
},
|
113
|
-
"endPosition": {
|
114
|
-
"description": "Ending date, or date and time.",
|
115
|
-
"translation": {
|
116
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > endPosition"],
|
117
|
-
"FGDC CSDGM": ["idinfo > timeperd > rngdates > enddate"]
|
118
|
-
},
|
119
|
-
"$ref": "../schema.json#/definitions/date"
|
120
|
-
}
|
121
|
-
},
|
122
|
-
"anyOf": [
|
123
|
-
{
|
124
|
-
"title": "beginPosition required",
|
125
|
-
"required": ["beginPosition"]
|
126
|
-
}, {
|
127
|
-
"title": "endPosition required",
|
128
|
-
"required": ["endPosition"]
|
129
|
-
}
|
130
|
-
]
|
131
|
-
},
|
132
|
-
"temporalElement": {
|
133
|
-
"type": "object",
|
134
|
-
"description": "Temporal context for the resource.",
|
135
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/extent/0/temporalElement",
|
136
|
-
"translation": {
|
137
|
-
"ISO 19115-2": ["EX_Extent > temporalElement > EX_TemporalExtent"]
|
138
|
-
},
|
139
|
-
"additionalProperties": true,
|
140
|
-
"minProperties": 1,
|
141
|
-
"properties": {
|
142
|
-
"timeInstant": {
|
143
|
-
"type": "array",
|
144
|
-
"description": "A set of date-time instances, each with an associated identifier and description.",
|
145
|
-
"translation": {
|
146
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant"]
|
147
|
-
},
|
148
|
-
"items": {
|
149
|
-
"$ref": "#/definitions/timeInstant"
|
150
|
-
}
|
151
|
-
},
|
152
|
-
"timePeriod": {
|
153
|
-
"type": "array",
|
154
|
-
"description": "A set of time periods(a span of time represented by a starting date-time and an ending date-time).",
|
155
|
-
"translation": {
|
156
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod"]
|
157
|
-
},
|
158
|
-
"items": {
|
159
|
-
"$ref": "#/definitions/timePeriod"
|
160
|
-
}
|
161
|
-
},
|
162
|
-
"date": {
|
163
|
-
"type": "array",
|
164
|
-
"description": "A set of date-times.",
|
165
|
-
"translation": {
|
166
|
-
"ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > timePosition"]
|
167
|
-
},
|
168
|
-
"items": {
|
169
|
-
"$ref": "../schema.json#/definitions/date"
|
170
|
-
}
|
171
|
-
}
|
172
|
-
}
|
173
|
-
},
|
174
|
-
"verticalExtent": {
|
175
|
-
"type": "object",
|
176
|
-
"description": "Vertical element of an extent.",
|
177
|
-
"translation": {
|
178
|
-
"ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
|
179
|
-
},
|
180
|
-
"additionalProperties": true,
|
181
|
-
"required": ["minimumValue", "maximumValue", "verticalCRSTitle", "verticalCRSUri"],
|
182
|
-
"properties": {
|
183
|
-
"minimumValue": {
|
184
|
-
"type": "number",
|
185
|
-
"description": "Lowest vertical extent contained in the dataset.",
|
186
|
-
"translation": {
|
187
|
-
"ISO 19115-2": ["EX_VerticalExtent > minimumValue > Real "]
|
188
|
-
}
|
189
|
-
},
|
190
|
-
"maximumValue": {
|
191
|
-
"type": "number",
|
192
|
-
"description": "Highest vertical extent contained in the dataset.",
|
193
|
-
"translation": {
|
194
|
-
"ISO 19115-2": ["EX_VerticalExtent > maximumValue > Real "]
|
195
|
-
}
|
196
|
-
},
|
197
|
-
"verticalCRSTitle": {
|
198
|
-
"type": "string",
|
199
|
-
"description": "Name of a geographic reference system associated with a vertical extent.",
|
200
|
-
"translation": {
|
201
|
-
"ISO 19115-2": ["EX_VerticalExtent > verticalCRS @xlink:title "],
|
202
|
-
"FGDC CSDGM": ["spref > vertdef > altsys > altdatum"]
|
203
|
-
}
|
204
|
-
},
|
205
|
-
"verticalCRSUri": {
|
206
|
-
"description": "Web link to the parameters for a geographic reference system associated with a vertical extent.",
|
207
|
-
"translation": {
|
208
|
-
"ISO 19115-2": ["EX_VerticalExtent > verticalCRS @xlink:href "]
|
209
|
-
},
|
210
|
-
"$ref": "../schema.json#/definitions/uri"
|
211
|
-
}
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
@@ -1,99 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"id": "crs.json#",
|
4
|
-
"title": "crs",
|
5
|
-
"description": "A Coordinate Reference System object.",
|
6
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
|
7
|
-
"oneOf": [
|
8
|
-
{
|
9
|
-
"type": "object",
|
10
|
-
"description": "A Coordinate Reference System object.",
|
11
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
|
12
|
-
"required": ["type", "properties"],
|
13
|
-
"properties": {
|
14
|
-
"type": {
|
15
|
-
"type": "string",
|
16
|
-
"description": "The type of coordinate reference system."
|
17
|
-
},
|
18
|
-
"properties": {
|
19
|
-
"type": "object",
|
20
|
-
"description": "Coordinate reference system properties."
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"additionalProperties": false,
|
24
|
-
"oneOf": [
|
25
|
-
{
|
26
|
-
"$ref": "#/definitions/namedCrs"
|
27
|
-
}, {
|
28
|
-
"$ref": "#/definitions/linkedCrs"
|
29
|
-
}
|
30
|
-
]
|
31
|
-
}, {
|
32
|
-
"title": "null",
|
33
|
-
"type": "null"
|
34
|
-
}
|
35
|
-
],
|
36
|
-
"definitions": {
|
37
|
-
"namedCrs": {
|
38
|
-
"title": "namedCrs",
|
39
|
-
"type": "object",
|
40
|
-
"description": "A GeoJSON CRS object that indicates a coordinate reference system by name.",
|
41
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1/crs",
|
42
|
-
"properties": {
|
43
|
-
"type": {
|
44
|
-
"enum": ["name"],
|
45
|
-
"description": "A CRS object may indicate a coordinate reference system by name. In this case, the value of its \"type\" member must be the string \"name\"."
|
46
|
-
},
|
47
|
-
"properties": {
|
48
|
-
"type": "object",
|
49
|
-
"description": "Coordinate reference system properties.",
|
50
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1/crs",
|
51
|
-
"required": ["name"],
|
52
|
-
"additionalProperties": false,
|
53
|
-
"properties": {
|
54
|
-
"name": {
|
55
|
-
"type": "string",
|
56
|
-
"description": "The name of the coordinate reference system.",
|
57
|
-
"translation": {
|
58
|
-
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon, MultiGeometry] @srsName"]
|
59
|
-
},
|
60
|
-
"FIXME": "semantic validation necessary"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
},
|
66
|
-
"linkedObject": {
|
67
|
-
"type": "object",
|
68
|
-
"title": "linkedObject",
|
69
|
-
"description": "An object that links to a coordinate reference system definition.",
|
70
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0/crs",
|
71
|
-
"required": ["href"],
|
72
|
-
"properties": {
|
73
|
-
"href": {
|
74
|
-
"$ref": "../../schema.json#/definitions/url",
|
75
|
-
"description": "A dereferenceable URI that links to the parameters for the coordinate reference system."
|
76
|
-
},
|
77
|
-
"type": {
|
78
|
-
"type": "string",
|
79
|
-
"description": "A string that hints at the format used to represent CRS parameters at the provided URI. Suggested values are: \"proj4\", \"ogcwkt\", \"esriwkt\", but others can be used."
|
80
|
-
}
|
81
|
-
}
|
82
|
-
},
|
83
|
-
"linkedCrs": {
|
84
|
-
"title": "linkedCrs",
|
85
|
-
"type": "object",
|
86
|
-
"description": "A GeoJSON CRS object that links to coordinate reference system parameters on the Web.",
|
87
|
-
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0/crs",
|
88
|
-
"properties": {
|
89
|
-
"type": {
|
90
|
-
"enum": ["link"],
|
91
|
-
"description": "A CRS object may link to CRS parameters on the Web. In this case, the value of its \"type\" member must be the string \"link\"."
|
92
|
-
},
|
93
|
-
"properties": {
|
94
|
-
"$ref": "#/definitions/linkedObject"
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
data/schema/schema/metadata.json
DELETED
@@ -1,188 +0,0 @@
|
|
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": "../../examples/full_example.json#/metadata",
|
7
|
-
"translation": {
|
8
|
-
"ISO 19115-2": ["MI_Metadata"],
|
9
|
-
"FGDC CSDGM": ["metadata"]
|
10
|
-
},
|
11
|
-
"required": ["resourceInfo"],
|
12
|
-
"additionalProperties": true,
|
13
|
-
"properties": {
|
14
|
-
"metadataInfo": {
|
15
|
-
"type": "object",
|
16
|
-
"description": "General information about the metadata record.",
|
17
|
-
"example": "../../examples/full_example.json#/metadata/metadataInfo",
|
18
|
-
"required": ["metadataContact", "metadataCreationDate"],
|
19
|
-
"additionalProperties": true,
|
20
|
-
"properties": {
|
21
|
-
"metadataIdentifier": {
|
22
|
-
"description": "Unique identifier for this metadata file.",
|
23
|
-
"translation": {
|
24
|
-
"ISO 19115-2": ["MI_Metadata > fileIdentifier"]
|
25
|
-
},
|
26
|
-
"$ref": "citation.json#/definitions/identifier"
|
27
|
-
},
|
28
|
-
"parentMetadata": {
|
29
|
-
"description": "Identifier of the metadata to which this metadata is a subset (child).",
|
30
|
-
"translation": {
|
31
|
-
"ISO 19115-2": ["MI_Metadata > parentIdentifier"]
|
32
|
-
},
|
33
|
-
"$ref": "citation.json#/definitions/citationFull"
|
34
|
-
},
|
35
|
-
"metadataContact": {
|
36
|
-
"type": "array",
|
37
|
-
"description": "Person or organization responsible for metadata information (metadata custodian).",
|
38
|
-
"translation": {
|
39
|
-
"ISO 19115-2": ["MI_Metadata > contact > CI_Contact > responsibleParty > CI_ResponsibleParty"],
|
40
|
-
"FGDC CSDGM": ["metainfo > metc > cntinfo"]
|
41
|
-
},
|
42
|
-
"minItems": 1,
|
43
|
-
"items": {
|
44
|
-
"$ref": "contact.json#/definitions/contactRef"
|
45
|
-
}
|
46
|
-
},
|
47
|
-
"metadataCharacterSet": {
|
48
|
-
"type": "string",
|
49
|
-
"deprecated": true,
|
50
|
-
"description": "Full name of the character coding standard used for the metadata set. NOTE:This property has been deprecated in favor of 'metadataLocale'.",
|
51
|
-
"translation": {
|
52
|
-
"ISO 19115-2": ["MI_Metadata > characterSet [MD_CharacterSetCode]"]
|
53
|
-
}
|
54
|
-
},
|
55
|
-
"metadataLocale": {
|
56
|
-
"type": "array",
|
57
|
-
"description": "Localised language(s) and characterset(s) used within the metadata record.",
|
58
|
-
"items": {
|
59
|
-
"$ref": "locale.json"
|
60
|
-
}
|
61
|
-
},
|
62
|
-
"metadataCreationDate": {
|
63
|
-
"$ref": "../schema.json#/definitions/date",
|
64
|
-
"description": "Date that the metadata was created.",
|
65
|
-
"translation": {
|
66
|
-
"ISO 19115-2": ["MI_Metadata > dateStamp"],
|
67
|
-
"FGDC CSDGM": ["metainfo > metd"]
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"metadataLastUpdate": {
|
71
|
-
"$ref": "../schema.json#/definitions/date",
|
72
|
-
"description": "Date that the metadata was updated.",
|
73
|
-
"translation": {
|
74
|
-
"ISO 19115-2": ["MI_Metadata > dateStamp"],
|
75
|
-
"FGDC CSDGM": ["metainfo > metrd"]
|
76
|
-
}
|
77
|
-
},
|
78
|
-
"metadataUri": {
|
79
|
-
"$ref": "../schema.json#/definitions/uri",
|
80
|
-
"description": "Uniform Resource Identifier (URI) of the metadata record."
|
81
|
-
},
|
82
|
-
"metadataStatus": {
|
83
|
-
"type": "string",
|
84
|
-
"description": "Status of the metadata record."
|
85
|
-
},
|
86
|
-
"metadataMaintenance": {
|
87
|
-
"description": "Provides information about the frequency of metadata updates, and the scope of those updates.",
|
88
|
-
"translation": {
|
89
|
-
"ISO 19115-2": ["MI_Metadata > metadataMaintenance > MD_MaintenanceInformation"]
|
90
|
-
},
|
91
|
-
"$ref": "maintInfo.json#"
|
92
|
-
}
|
93
|
-
}
|
94
|
-
},
|
95
|
-
"resourceInfo": {
|
96
|
-
"translation": {
|
97
|
-
"ISO 19115-2": ["MD_Metadata > identificationInfo > MD_DataIdentification"],
|
98
|
-
"FGDC CSDGM": ["idinfo"]
|
99
|
-
},
|
100
|
-
"$ref": "resourceInfo.json#"
|
101
|
-
},
|
102
|
-
"distributionInfo": {
|
103
|
-
"type": "array",
|
104
|
-
"description": "Information about the distributor of and options for obtaining the resource.",
|
105
|
-
"example": "../../examples/full_example.json#/metadata/distributionInfo",
|
106
|
-
"translation": {
|
107
|
-
"ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
|
108
|
-
"FGDC CSDGM": ["distinfo"]
|
109
|
-
},
|
110
|
-
"items": {
|
111
|
-
"$ref": "distributor.json#"
|
112
|
-
}
|
113
|
-
},
|
114
|
-
"associatedResource": {
|
115
|
-
"type": "array",
|
116
|
-
"description": "Other resources which are directly related to the subject resource such as parent, child, or sibling datasets or projects.",
|
117
|
-
"example": "../../examples/full_example.json#/metadata/associatedResource",
|
118
|
-
"translation": {
|
119
|
-
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
|
120
|
-
"FGDC CSDGM": ["idinfo > crossref"]
|
121
|
-
},
|
122
|
-
"items": {
|
123
|
-
"type": "object",
|
124
|
-
"example": "../../examples/full_example.json#/metadata/associatedResource",
|
125
|
-
"required": ["associationType", "resourceType"],
|
126
|
-
"additionalProperties": true,
|
127
|
-
"properties": {
|
128
|
-
"associationType": {
|
129
|
-
"type": "string",
|
130
|
-
"description": "Identifies how the associated resource is related to the subject resource such as 'is a component of', 'larger work citation', 'cross reference', etc.",
|
131
|
-
"translation": {
|
132
|
-
"ISO 19115-2": ["MD_AggregateInformation > associationType [DS_AssociationTypeCode]"]
|
133
|
-
}
|
134
|
-
},
|
135
|
-
"initiativeType": {
|
136
|
-
"type": "string",
|
137
|
-
"description": "Identifies type of initiative under which the resource was produced - the activity that resulted in the resource.",
|
138
|
-
"translation": {
|
139
|
-
"ISO 19115-2": ["MD_AggregateInformation > initiativeType > [DS_InitiativeTypeCode]"]
|
140
|
-
}
|
141
|
-
},
|
142
|
-
"resourceType": {
|
143
|
-
"type": "string",
|
144
|
-
"description": "Identifies the type of resource, such as: a dataset, study, publication, etc.",
|
145
|
-
"translation": {
|
146
|
-
"ISO 19115-2": ["[MD_ScopeCode]"]
|
147
|
-
}
|
148
|
-
},
|
149
|
-
"resourceCitation": {
|
150
|
-
"description": "Citation for the associated resource.",
|
151
|
-
"translation": {
|
152
|
-
"ISO 19115-2": ["MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
|
153
|
-
"FGDC CSDGM": ["idinfo > crossref > citeinfo"]
|
154
|
-
},
|
155
|
-
"$ref": "citation.json#"
|
156
|
-
},
|
157
|
-
"metadataCitation": {
|
158
|
-
"description": "Citation for the associated resource metadata.",
|
159
|
-
"$ref": "citation.json#"
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
163
|
-
},
|
164
|
-
"additionalDocumentation": {
|
165
|
-
"type": "array",
|
166
|
-
"description": "Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.",
|
167
|
-
"translation": {
|
168
|
-
"ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
|
169
|
-
"FGDC CSDGM": ["idinfo > crossref "]
|
170
|
-
},
|
171
|
-
"items": {
|
172
|
-
"required": ["citation"],
|
173
|
-
"properties": {
|
174
|
-
"resourceType": {
|
175
|
-
"type": "string",
|
176
|
-
"description": "Identifies the type of resource, such as: userGuide, website, report, etc.",
|
177
|
-
"translation": {
|
178
|
-
"ISO 19115-2": ["[MD_ScopeCode]"]
|
179
|
-
}
|
180
|
-
},
|
181
|
-
"citation": {
|
182
|
-
"$ref": "citation.json#"
|
183
|
-
}
|
184
|
-
}
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"id": "resolution.json#",
|
3
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
-
"description": "Information about the scale of the geographic extent.",
|
5
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
|
6
|
-
"translation": {
|
7
|
-
"ISO 19115-2": ["MD_Resolution"]
|
8
|
-
},
|
9
|
-
"anyOf": [
|
10
|
-
{
|
11
|
-
"type": "object",
|
12
|
-
"title": "scaleFactor",
|
13
|
-
"description": "Scale of geographic extent",
|
14
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
|
15
|
-
"required": ["equivalentScale"],
|
16
|
-
"additionalProperties": true,
|
17
|
-
"properties": {
|
18
|
-
"equivalentScale": {
|
19
|
-
"type": "number",
|
20
|
-
"description": "Scale of geographic extent expressed in a hardcopy map scale fraction (denominator).",
|
21
|
-
"translation": {
|
22
|
-
"ISO 19115-2": ["MD_Resolution > equivalentScale > MD_RepresentativeFraction > denominator > Integer"]
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}, {
|
27
|
-
"type": "object",
|
28
|
-
"title": "distance",
|
29
|
-
"example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
|
30
|
-
"description": "Scale of geographic extent expressed in ground distance parameters.",
|
31
|
-
"required": ["distance"],
|
32
|
-
"additionalProperties": true,
|
33
|
-
"properties": {
|
34
|
-
"distance": {
|
35
|
-
"type": "number",
|
36
|
-
"description": "Ground distance measurement representing geographic extent.",
|
37
|
-
"translation": {
|
38
|
-
"ISO 19115-2": ["MD_Resolution > distance > Distance "]
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"uom": {
|
42
|
-
"type": "string",
|
43
|
-
"description": "Ground distance units of measure.",
|
44
|
-
"translation": {
|
45
|
-
"ISO 19115-2": ["MD_Resolution > distance > Distance @uom"]
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
]
|
51
|
-
}
|