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.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/README.md +14 -3
  4. data/adiwg-json_schemas.gemspec +2 -2
  5. data/bower.json +0 -1
  6. data/examples/additionalDocumentation.json +9 -60
  7. data/examples/address.json +14 -10
  8. data/examples/allocation.json +12 -0
  9. data/examples/associatedResource.json +10 -118
  10. data/examples/attribute.json +27 -0
  11. data/examples/attributeGroup.json +17 -0
  12. data/examples/boundingBox.json +6 -0
  13. data/examples/citation.json +69 -127
  14. data/examples/computedBbox.json +399 -0
  15. data/examples/constraint.json +62 -0
  16. data/examples/contact.json +40 -207
  17. data/examples/coverageDescription.json +21 -0
  18. data/examples/date.json +8 -19
  19. data/examples/dictionary.json +58 -0
  20. data/examples/dimension.json +11 -0
  21. data/examples/distribution.json +26 -0
  22. data/examples/distributor.json +22 -142
  23. data/examples/domain.json +29 -0
  24. data/examples/domainItem.json +11 -0
  25. data/examples/duration.json +17 -0
  26. data/examples/entity.json +48 -0
  27. data/examples/entityAttribute.json +31 -0
  28. data/examples/entityForeignKey.json +17 -0
  29. data/examples/entityIndex.json +8 -0
  30. data/examples/extent.json +60 -0
  31. data/examples/featureCollection.json +58 -0
  32. data/examples/featureProperties.json +16 -0
  33. data/examples/format.json +7 -14
  34. data/examples/funding.json +33 -0
  35. data/examples/geoJson.json +185 -0
  36. data/examples/geographicExtent.json +22 -0
  37. data/examples/geometryCollection.json +14 -0
  38. data/examples/geometryFeature.json +12 -0
  39. data/examples/geometryObject.json +90 -0
  40. data/examples/georectifiedRepresentation.json +28 -0
  41. data/examples/georeferencableRepresentation.json +25 -0
  42. data/examples/gmlIdentifier.json +8 -0
  43. data/examples/graphic.json +33 -0
  44. data/examples/gridRepresentation.json +14 -0
  45. data/examples/identifier.json +9 -0
  46. data/examples/imageDescription.json +15 -0
  47. data/examples/keyword.json +14 -0
  48. data/examples/keywordObject.json +12 -0
  49. data/examples/legalConstraint.json +21 -0
  50. data/examples/lineage.json +21 -0
  51. data/examples/locale.json +12 -3
  52. data/examples/maintenance.json +38 -0
  53. data/examples/mdJson.json +99 -0
  54. data/examples/measure.json +5 -0
  55. data/examples/medium.json +16 -0
  56. data/examples/metadata.json +102 -0
  57. data/examples/metadataInfo.json +68 -101
  58. data/examples/onlineResource.json +13 -17
  59. data/examples/orderProcess.json +6 -0
  60. data/examples/party.json +21 -0
  61. data/examples/phone.json +9 -0
  62. data/examples/processStep.json +34 -0
  63. data/examples/releasability.json +28 -0
  64. data/examples/resourceInfo.json +230 -1256
  65. data/examples/responsibleParty.json +31 -0
  66. data/examples/schema.json +8 -0
  67. data/examples/scope.json +33 -0
  68. data/examples/scopeDescription.json +8 -0
  69. data/examples/securityConstraint.json +13 -0
  70. data/examples/series.json +9 -0
  71. data/examples/source.json +23 -0
  72. data/examples/spatialReference.json +34 -0
  73. data/examples/spatialRepresentation.json +59 -0
  74. data/examples/spatialResolution.json +11 -0
  75. data/examples/taxonomicClassification.json +59 -0
  76. data/examples/taxonomicSystem.json +13 -0
  77. data/examples/taxonomy.json +79 -188
  78. data/examples/temporalExtent.json +11 -0
  79. data/examples/timeInstant.json +13 -0
  80. data/examples/timeInterval.json +8 -0
  81. data/examples/timePeriod.json +26 -0
  82. data/examples/transferOption.json +36 -0
  83. data/examples/usage.json +48 -33
  84. data/examples/vectorObject.json +4 -0
  85. data/examples/vectorRepresentation.json +10 -0
  86. data/examples/verticalExtent.json +10 -17
  87. data/examples/voucher.json +12 -0
  88. data/lib/adiwg/mdjson_schemas/utils.rb +45 -15
  89. data/lib/adiwg/mdjson_schemas/validator.rb +6 -7
  90. data/lib/adiwg/mdjson_schemas/version.rb +1 -1
  91. data/lib/adiwg/mdjson_schemas.rb +4 -2
  92. data/schema/additionalDocumentation.json +29 -0
  93. data/schema/associatedResource.json +49 -0
  94. data/schema/attribute.json +157 -0
  95. data/schema/attributeGroup.json +29 -0
  96. data/schema/{schema/geojson/bbox.json → bbox.json} +2 -2
  97. data/schema/{schema/citation.json → citation.json} +73 -99
  98. data/schema/common.json +49 -0
  99. data/schema/{schema/resourceConstraint.json → constraint.json} +83 -13
  100. data/schema/contact.json +234 -0
  101. data/schema/coverageDescription.json +50 -0
  102. data/schema/dataDictionary.json +71 -0
  103. data/schema/distribution.json +35 -0
  104. data/schema/distributor.json +46 -0
  105. data/schema/domain.json +65 -0
  106. data/schema/entity.json +235 -0
  107. data/schema/extent.json +59 -0
  108. data/schema/format.json +37 -0
  109. data/schema/funding.json +67 -0
  110. data/schema/geographicExtent.json +87 -0
  111. data/schema/{schema/geojson/geojson.json → geojson.json} +16 -44
  112. data/schema/{schema/geojson/geometry.json → geometry.json} +2 -1
  113. data/schema/georectifiedRepresentation.json +89 -0
  114. data/schema/georeferencableRepresentation.json +49 -0
  115. data/schema/{schema/graphicOverview.json → graphic.json} +19 -6
  116. data/schema/{schema/gridInfo.json → gridRepresentation.json} +7 -13
  117. data/schema/identifier.json +47 -0
  118. data/schema/imageDescription.json +92 -0
  119. data/schema/{schema/keyword.json → keyword.json} +18 -4
  120. data/schema/{schema/dataQuality.json → lineage.json} +92 -57
  121. data/schema/{schema/maintInfo.json → maintInfo.json} +24 -6
  122. data/schema/measure.json +31 -0
  123. data/schema/medium.json +55 -0
  124. data/schema/metadata.json +77 -0
  125. data/schema/metadataInfo.json +112 -0
  126. data/schema/{schema/onlineResource.json → onlineResource.json} +1 -1
  127. data/schema/orderProcess.json +45 -0
  128. data/schema/releasability.json +42 -0
  129. data/schema/{schema/resourceInfo.json → resourceInfo.json} +112 -189
  130. data/schema/responsibility.json +56 -0
  131. data/schema/schema.json +16 -31
  132. data/schema/scope.json +55 -0
  133. data/schema/spatialReference.json +26 -0
  134. data/schema/spatialRepresentation.json +83 -0
  135. data/schema/spatialResolution.json +54 -0
  136. data/schema/taxonomy.json +178 -0
  137. data/schema/temporalExtent.json +42 -0
  138. data/schema/timeInstant.json +46 -0
  139. data/schema/timePeriod.json +126 -0
  140. data/schema/transferOption.json +61 -0
  141. data/schema/{schema/usage.json → usage.json} +34 -4
  142. data/schema/vectorRepresentation.json +51 -0
  143. data/schema/verticalExtent.json +37 -0
  144. data/test/helper.rb +32 -0
  145. data/test/tc_additionalDocumentation.rb +8 -0
  146. data/test/tc_address.rb +8 -0
  147. data/test/tc_associatedResource.rb +8 -0
  148. data/test/tc_attribute.rb +8 -0
  149. data/test/tc_attributeGroup.rb +8 -0
  150. data/test/tc_boundingBox.rb +8 -0
  151. data/test/tc_citation.rb +8 -0
  152. data/test/tc_constraint.rb +8 -0
  153. data/test/tc_contact.rb +8 -0
  154. data/test/tc_coverageDescription.rb +8 -0
  155. data/test/tc_dataDictionary.rb +8 -0
  156. data/test/tc_dimension.rb +8 -0
  157. data/test/tc_distribution.rb +8 -0
  158. data/test/tc_distributor.rb +8 -0
  159. data/test/tc_domain.rb +8 -0
  160. data/test/tc_domainItem.rb +8 -0
  161. data/test/tc_duration.rb +8 -0
  162. data/test/tc_entity.rb +20 -0
  163. data/test/tc_extent.rb +8 -0
  164. data/test/tc_featureCollection.rb +8 -0
  165. data/test/tc_featureProperties.rb +8 -0
  166. data/test/tc_format.rb +8 -0
  167. data/test/tc_funding.rb +8 -0
  168. data/test/tc_geographicElement.rb +12 -0
  169. data/test/tc_geographicExtent.rb +8 -0
  170. data/test/tc_geometryCollection.rb +8 -0
  171. data/test/tc_geometryFeature.rb +8 -0
  172. data/test/tc_geometryObject.rb +8 -0
  173. data/test/tc_georectifiedRepresentation.rb +8 -0
  174. data/test/tc_georeferencableRepresentation.rb +8 -0
  175. data/test/tc_graphic.rb +8 -0
  176. data/test/tc_gridRepresentation.rb +8 -0
  177. data/test/tc_identifier.rb +8 -0
  178. data/test/tc_imageDescription.rb +8 -0
  179. data/test/tc_jsonschema.rb +16 -0
  180. data/test/tc_keyword.rb +8 -0
  181. data/test/tc_lineage.rb +8 -0
  182. data/test/tc_maintInfo.rb +8 -0
  183. data/test/tc_measure.rb +8 -0
  184. data/test/tc_medium.rb +8 -0
  185. data/test/tc_metadata.rb +8 -0
  186. data/test/tc_metadataInfo.rb +8 -0
  187. data/test/tc_onlineResource.rb +8 -0
  188. data/test/tc_orderProcess.rb +8 -0
  189. data/test/tc_party.rb +8 -0
  190. data/test/tc_processStep.rb +8 -0
  191. data/test/tc_releasability.rb +8 -0
  192. data/test/tc_resourceInfo.rb +8 -0
  193. data/test/tc_responsibility.rb +8 -0
  194. data/test/tc_schema.rb +8 -0
  195. data/test/tc_scope.rb +8 -0
  196. data/test/tc_source.rb +8 -0
  197. data/test/tc_spatialReference.rb +8 -0
  198. data/test/tc_spatialRepresentation.rb +8 -0
  199. data/test/tc_spatialResolution.rb +8 -0
  200. data/test/tc_taxonomicClassification.rb +8 -0
  201. data/test/tc_taxonomicSystem.rb +8 -0
  202. data/test/tc_taxonomy.rb +8 -0
  203. data/test/tc_temporalExtent.rb +8 -0
  204. data/test/tc_timeInstant.rb +8 -0
  205. data/test/tc_timePeriod.rb +8 -0
  206. data/test/tc_transferOption.rb +8 -0
  207. data/test/tc_uri.rb +8 -0
  208. data/test/tc_usage.rb +8 -0
  209. data/test/tc_utils.rb +8 -11
  210. data/test/tc_vectorRepresentation.rb +13 -0
  211. data/test/tc_verticalExtent.rb +8 -0
  212. data/test/tc_voucher.rb +8 -0
  213. metadata +264 -57
  214. data/examples/contactRef.json +0 -12
  215. data/examples/coverageInfo.json +0 -148
  216. data/examples/dataDictionary.json +0 -549
  217. data/examples/dataQuality.json +0 -272
  218. data/examples/extent_linestring.json +0 -288
  219. data/examples/extent_point.json +0 -246
  220. data/examples/extent_polygon.json +0 -353
  221. data/examples/full_example.json +0 -3065
  222. data/examples/full_example2.json +0 -2325
  223. data/examples/geojson.json +0 -446
  224. data/examples/graphicOverview.json +0 -28
  225. data/examples/gridInfo.json +0 -23
  226. data/examples/hierarchyLevel.json +0 -90
  227. data/examples/keywords.json +0 -144
  228. data/examples/lcc_project_example.json +0 -326
  229. data/examples/legalConstraints.json +0 -17
  230. data/examples/maintInfo.json +0 -34
  231. data/examples/minimum_example.json +0 -35
  232. data/examples/resolution.json +0 -9
  233. data/examples/resourceMaintenance.json +0 -10
  234. data/examples/securityConstraints.json +0 -13
  235. data/examples/spatialRef.json +0 -14
  236. data/examples/temporalElement.json +0 -29
  237. data/schema/schema/contact.json +0 -262
  238. data/schema/schema/coverageInfo.json +0 -303
  239. data/schema/schema/dataDictionary.json +0 -335
  240. data/schema/schema/distributor.json +0 -216
  241. data/schema/schema/extent.json +0 -215
  242. data/schema/schema/geojson/crs.json +0 -99
  243. data/schema/schema/metadata.json +0 -188
  244. data/schema/schema/resolution.json +0 -51
  245. data/schema/schema/taxonomy.json +0 -122
  246. data/test/tc_schemas.rb +0 -243
  247. /data/schema/{schema/locale.json → locale.json} +0 -0
@@ -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
- }
@@ -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
- }