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
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "geographicExtent.json#",
4
+ "type": "object",
5
+ "description": "Describes the spatial area of the resource",
6
+ "required": ["geographicElement"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "containsData": {
10
+ "type": "boolean",
11
+ "description": "Idication of whether the geographic element encompasses an area covered by the data or an area where data are not present.",
12
+ "example": "",
13
+ "translation": {}
14
+ },
15
+ "identifier": {
16
+ "$ref": "./identifier.json#",
17
+ "description": "Identifier representing a geographic area.",
18
+ "example": ""
19
+ },
20
+ "boundingBox": {
21
+ "$ref": "#/definitions/boundingBox",
22
+ "description": "General geographic position of the resource.",
23
+ "example": ""
24
+ },
25
+ "geographicElement": {
26
+ "type": "array",
27
+ "description": "An array of objects each describing a geographic boundary or location comprising all or a portion of the resource.",
28
+ "translation": {
29
+ "ISO 19115-2": ["EX_Extent > geographicElement"]
30
+ },
31
+ "items": {
32
+ "$ref": "#/definitions/geographicElement"
33
+ }
34
+ }
35
+ },
36
+ "definitions": {
37
+ "boundingBox": {
38
+ "type": "object",
39
+ "description": "The four sides of geodetic box defining the area of the resource",
40
+ "required": ["westLongitude",
41
+ "eastLongitude",
42
+ "southLatitude",
43
+ "northLatitude"
44
+ ],
45
+ "additionalProperties": true,
46
+ "properties": {
47
+ "westLongitude": {
48
+ "type": "number",
49
+ "description": "",
50
+ "example": "",
51
+ "translation": {}
52
+ },
53
+ "eastLongitude": {
54
+ "type": "number",
55
+ "description": "",
56
+ "example": "",
57
+ "translation": {}
58
+ },
59
+ "southLatitude": {
60
+ "type": "number",
61
+ "description": "",
62
+ "example": "",
63
+ "translation": {}
64
+ },
65
+ "northLatitude": {
66
+ "type": "number",
67
+ "description": "",
68
+ "example": "",
69
+ "translation": {}
70
+ }
71
+ }
72
+ },
73
+ "geographicElement": {
74
+ "type": "object",
75
+ "example": "",
76
+ "properties": {
77
+ "type": {
78
+ "enum": ["Feature", "FeatureCollection", "GeometryCollection", "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"],
79
+ "description": "The type of geographic object."
80
+ }
81
+ },
82
+ "oneOf": [{
83
+ "$ref": "geojson.json#"
84
+ }]
85
+ }
86
+ }
87
+ }
@@ -2,15 +2,11 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "id": "geojson.json#",
4
4
  "title": "GeoJSON object",
5
- "description": "GeoJSON is a format for encoding a variety of geographic data structures. A GeoJSON object may represent a geometry, a feature, or a collection of features. \n\nGeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features. \n\nSee http://geojson.org for the full specification.",
6
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
5
+ "description": "GeoJSON is a format for encoding a variety of geographic data structures. A GeoJSON object may represent a geometry, a feature, or a collection of features. \n\nGeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features. \n\n The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units of decimal degrees. This is equivalent to the coordinate reference system identified by the Open Geospatial Consortium (OGC) URN urn:ogc:def:crs:OGC::CRS84. \n\nSee http://geojson.org for the full specification.",
6
+ "example": "",
7
7
  "type": "object",
8
8
  "required": ["type"],
9
9
  "properties": {
10
- "crs": {
11
- "description": "The coordinate reference system (CRS) of a GeoJSON object.",
12
- "$ref": "crs.json#"
13
- },
14
10
  "bbox": {
15
11
  "$ref": "bbox.json#"
16
12
  }
@@ -30,7 +26,7 @@
30
26
  "geometryCollection": {
31
27
  "title": "GeometryCollection",
32
28
  "description": "A collection of geometry objects",
33
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/1/geographicElement",
29
+ "example": "",
34
30
  "translation": {
35
31
  "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
36
32
  },
@@ -56,7 +52,7 @@
56
52
  "title": "Feature",
57
53
  "type": "object",
58
54
  "description": "A GeoJSON object with the type \"Feature\" is a feature object. A feature object has a geometry, properties, and an optional identifier.",
59
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
55
+ "example": "",
60
56
  "required": ["geometry", "properties"],
61
57
  "properties": {
62
58
  "type": {
@@ -72,6 +68,8 @@
72
68
  "description": "A feature object with no associated geometry. For example, a null value may be used when defining a bounding box only."
73
69
  }, {
74
70
  "$ref": "geometry.json#"
71
+ },{
72
+ "$ref": "#/definitions/geometryCollection"
75
73
  }
76
74
  ]
77
75
  },
@@ -91,27 +89,17 @@
91
89
  "title": "FeatureCollection",
92
90
  "type": "object",
93
91
  "description": "A GeoJSON object comprised of multiple Feature objects.",
94
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/3/geographicElement/0",
92
+ "example": "",
95
93
  "required": ["features"],
96
94
  "properties": {
97
95
  "type": {
98
96
  "enum": ["FeatureCollection"],
99
97
  "description": "Type of GeoJSON object."
100
98
  },
101
- "properties": {
102
- "$ref": "#/definitions/featureProperties"
103
- },
104
- "id": {
105
- "type": ["string", "number"],
106
- "description": "Unique identifier for the GeoJSON object.",
107
- "translation": {
108
- "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] @id"]
109
- }
110
- },
111
99
  "features": {
112
100
  "type": "array",
113
101
  "description": "Set of Features constituting the FeatureCollection.",
114
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement",
102
+ "example": "",
115
103
  "translation": {
116
104
  "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
117
105
  },
@@ -124,7 +112,7 @@
124
112
  "featureProperties": {
125
113
  "title": "FeatureProperties",
126
114
  "description": "JSON object containing information about a feature or collection.",
127
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
115
+ "example": "",
128
116
  "oneOf": [
129
117
  {
130
118
  "title": "null",
@@ -133,26 +121,8 @@
133
121
  }, {
134
122
  "type": "object",
135
123
  "title": "featureProperties",
136
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
124
+ "example": "",
137
125
  "properties": {
138
- "includesData": {
139
- "type": "boolean",
140
- "description": "A boolean indicating whether geographic object is defining an extent, or used to describe an area of exception, such as \"holes\" in polygons.",
141
- "translation": {
142
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_GeographicBoundingBox > extentTypeCode", "EX_Extent > geographicElement > EX_BoundingPolygon > extentTypeCode"]
143
- }
144
- },
145
- "temporalElement": {
146
- "description": "The temporal reference associated with a feature.",
147
- "$ref": "../extent.json#/definitions/temporalElement"
148
- },
149
- "verticalElement": {
150
- "type": "array",
151
- "description": "The vertical extent of the feature geometry.",
152
- "items": {
153
- "$ref": "../extent.json#/definitions/verticalExtent"
154
- }
155
- },
156
126
  "description": {
157
127
  "type": "string",
158
128
  "description": "A description of the feature.",
@@ -161,17 +131,20 @@
161
131
  }
162
132
  },
163
133
  "featureName": {
164
- "type": "string",
134
+ "type": "array",
165
135
  "description": "A title associated with a feature.",
166
136
  "translation": {
167
137
  "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] > name"]
138
+ },
139
+ "items": {
140
+ "type": "string"
168
141
  }
169
142
  },
170
143
  "featureScope": {
171
144
  "type": "string",
172
145
  "description": "A word or phrase identifying the type of object described by the feature."
173
146
  },
174
- "featureAcquisitionMethod": {
147
+ "acquisitionMethod": {
175
148
  "type": "string",
176
149
  "description": "Method used to establish the position of the geographic feature. "
177
150
  },
@@ -182,7 +155,7 @@
182
155
  "ISO 19115-2": ["geographicElement > EX_GeographicDescription > geographicIdentifier > MD_Identifier"]
183
156
  },
184
157
  "items": {
185
- "$ref": "../citation.json#/definitions/identifier"
158
+ "$ref": "./identifier.json#"
186
159
  }
187
160
  }
188
161
  }
@@ -191,4 +164,3 @@
191
164
  }
192
165
  }
193
166
  }
194
-
@@ -148,6 +148,7 @@
148
148
  "description": "A position is the fundamental geometry construct. A position is represented by an array of numbers following x, y, z order (easting, northing, altitude for coordinates in a projected coordinate reference system, or longitude, latitude, altitude for coordinates in a geographic coordinate reference system).",
149
149
  "type": "array",
150
150
  "minItems": 2,
151
+ "maxItems": 3,
151
152
  "items": {
152
153
  "type": "number"
153
154
  }
@@ -200,4 +201,4 @@
200
201
  }
201
202
  }
202
203
  }
203
- }
204
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "georectifiedRepresentation.json#",
4
+ "type": "object",
5
+ "title": "",
6
+ "description": "A grid whose cells are regularly spaced in a geographic (i.e. lat/long) or map coordinate system defined in the SpatialReferencing System (SRS) so that any cell in the grid can be geolocated given its grid coordinates and the grid origin, cell spacing, and orientation.",
7
+ "required": ["gridRepresentation", "checkPointAvailable", "cornerPoints", "pointInPixel"],
8
+ "additionalProperties": true,
9
+ "properties": {
10
+ "gridRepresentation": {
11
+ "$ref": "./gridRepresentation.json#"
12
+ },
13
+ "checkPointAvailable": {
14
+ "type": "boolean",
15
+ "description": "Idication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.",
16
+ "example": "",
17
+ "translation": {}
18
+ },
19
+ "checkPointDescription": {
20
+ "type": "string",
21
+ "description": "Description of geographic positions points used to test the accuracy of the georeferenced grid data.",
22
+ "example": "",
23
+ "translation": {},
24
+ "minLength": 1
25
+ },
26
+ "cornerPoints": {
27
+ "description": "The earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cells at opposite ends of grid coverage along two diagonals in the grid spatial dimensions. Note: There are four corner points in a georectified grid; at least two corner points along one diagonal are required. The first corner point corresponds to the origin of the grid.",
28
+ "example": "",
29
+ "translation": {},
30
+ "oneOf": [{
31
+ "type": "array",
32
+ "title": "2 coordinate points",
33
+ "description": "",
34
+ "example": "",
35
+ "minItems": 2,
36
+ "maxItems": 2,
37
+ "items": {
38
+ "$ref": "#/definitions/point"
39
+ }
40
+ }, {
41
+ "type": "array",
42
+ "title": "4 coordinate points",
43
+ "description": "",
44
+ "example": "",
45
+ "minItems": 4,
46
+ "maxItems": 4,
47
+ "items": {
48
+ "$ref": "#/definitions/point"
49
+ }
50
+ }]
51
+ },
52
+ "centerPoint": {
53
+ "type": "array",
54
+ "description": "The earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cell halfway between opposite ends of the grid in the spatial dimensions.",
55
+ "example": "",
56
+ "$ref": "#/definitions/point"
57
+ },
58
+ "pointInPixel": {
59
+ "type": "string",
60
+ "description": "Point in a pixel corresponding to the Earth location of the pixel.",
61
+ "example": "",
62
+ "translation": {},
63
+ "minLength": 1
64
+ },
65
+ "transformationDimensionDescription": {
66
+ "type": "string",
67
+ "description": "Point in a pixel corresponding to the Earth location of the pixel.",
68
+ "example": "",
69
+ "translation": {},
70
+ "minLength": 1
71
+ },
72
+ "transformationDimensionMapping": {
73
+ "type": "string",
74
+ "description": "Point in a pixel corresponding to the Earth location of the pixel.",
75
+ "example": "",
76
+ "translation": {},
77
+ "minLength": 1
78
+ }
79
+ },
80
+ "definitions": {
81
+ "point": {
82
+ "type": "array",
83
+ "minItems": 2,
84
+ "items": {
85
+ "type": "number"
86
+ }
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id" : "georeferencableRepresentation.json#",
4
+ "type" : "object",
5
+ "title" : "georeferencableRepresentation",
6
+ "description" : "Grid with cells irregularly spaced in any given geographic/map projection coordinate system, whose individual cells can be geolocated using geolocation information supplied with the data but cannot be geolocated from the grid properties alone.",
7
+ "required" : ["controlPointAvailable","orientationParameterAvailable","georeferencedParameter"],
8
+ "additionalProperties" : true,
9
+ "properties" : {
10
+ "gridRepresentation": {
11
+ "$ref" : "./gridRepresentation.json#"
12
+ },
13
+ "controlPointAvailable": {
14
+ "type" : "boolean",
15
+ "description" : "Indication of whether or not control point(s) exist.",
16
+ "example": "",
17
+ "translation": {}
18
+ },
19
+ "orientationParameterAvailable": {
20
+ "type" : "boolean",
21
+ "description" : "Description of the parameters used to describe sensor orientation.",
22
+ "example": "",
23
+ "translation": {}
24
+ },
25
+ "orientationParameterDescription": {
26
+ "type" : "string",
27
+ "description" : "Description of parameters used to describe sensor orientation.",
28
+ "example": "",
29
+ "translation": {},
30
+ "minLength" : 1
31
+ },
32
+ "georeferencedParameter": {
33
+ "type" : "string",
34
+ "title" : "",
35
+ "description" : "Information which support grid data georeferencing.",
36
+ "example": "",
37
+ "translation": {}
38
+ },
39
+ "parameterCitation": {
40
+ "type" : "array",
41
+ "description" : "Reference providing description of the parameters.",
42
+ "example": "",
43
+ "translation": {},
44
+ "items" : {
45
+ "$ref" : "./citation.json#"
46
+ }
47
+ }
48
+ }
49
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
- "id": "graphicOverview.json#",
2
+ "id": "graphic.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "title": "graphic",
4
5
  "example": "../../examples/full_example.json#/metadata/resourceInfo/graphicOverview/0",
5
6
  "description": "Provides a path or link to images, maps, flow charts, models, etc. that illustrate the resource.",
6
7
  "type": "object",
@@ -9,7 +10,7 @@
9
10
  "properties": {
10
11
  "fileName": {
11
12
  "type": "string",
12
- "description": "Name of the file that contains a graphic overview of the resource.",
13
+ "description": "Name of the file that contains a graphic describing the resource.",
13
14
  "translation": {
14
15
  "ISO 19115-2": ["MD_BrowseGraphic > filename"],
15
16
  "FGDC CSDGM": ["idinfo > browse > browsen"]
@@ -17,7 +18,7 @@
17
18
  },
18
19
  "fileDescription": {
19
20
  "type": "string",
20
- "description": "Description of the graphic overview.",
21
+ "description": "Description of the graphic.",
21
22
  "translation": {
22
23
  "ISO 19115-2": ["MD_BrowseGraphic > fileDescription"],
23
24
  "FGDC CSDGM": ["idinfo > browse > browsed"]
@@ -31,12 +32,24 @@
31
32
  "FGDC CSDGM": ["idinfo > browse > browset"]
32
33
  }
33
34
  },
35
+ "fileConstraint": {
36
+ "type": "array",
37
+ "description": "Identifies, legal, security, and other constraint requirements associated with use and distribution of the graphic",
38
+ "example": "../../examples/",
39
+ "translation": {},
40
+ "items": {
41
+ "$ref": "constraint.json#"
42
+ }
43
+ },
34
44
  "fileUri": {
35
- "description": "URI of the graphic overview.",
45
+ "type": "array",
46
+ "description": "URI of the graphic.",
36
47
  "translation": {
37
48
  "ISO 19115-2": ["MD_BrowseGraphic > filename @xlink:href"]
38
49
  },
39
- "$ref": "../schema.json#/definitions/uri"
50
+ "items": {
51
+ "$ref": "onlineResource.json#"
52
+ }
40
53
  }
41
54
  }
42
- }
55
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
- "id": "gridInfo.json#",
2
+ "id": "gridRepresentation.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "example": "../../examples/full_example.json#/metadata/resourceInfo/gridInfo/0",
4
+ "example": "",
5
5
  "description": "Information about grid objects in the resource.",
6
6
  "translation": {
7
7
  "ISO 19115-2": ["MD_GridSpatialRepresentation"]
@@ -35,7 +35,7 @@
35
35
  "ISO 19115-2": ["MD_GridSpatialRepresentation > cellGeometry"]
36
36
  }
37
37
  },
38
- "transformationParameterAvailability": {
38
+ "transformationParameterAvailable": {
39
39
  "type": "boolean",
40
40
  "description": "An indication of whether or not parameters for transformation between image coordinates and geographic or map coordinates exist (are available).",
41
41
  "translation": {
@@ -47,6 +47,7 @@
47
47
  "dimension": {
48
48
  "type": "object",
49
49
  "required": ["dimensionType", "dimensionSize"],
50
+ "additionalProperties": true,
50
51
  "properties": {
51
52
  "dimensionType": {
52
53
  "type": "string",
@@ -63,19 +64,12 @@
63
64
  }
64
65
  },
65
66
  "resolution": {
66
- "type": "number",
67
- "description": "Numeric Value that defines the degree of detail in the grid.",
67
+ "$ref": "./measure.json#",
68
+ "description": "The degree of detail in the grid.",
68
69
  "translation": {
69
70
  "ISO 19115-2": ["MD_GridSpatialRepresentation > axisDimensionProperties > MD_Dimension > resolution"]
70
71
  }
71
72
  },
72
- "resolutionUnit": {
73
- "type": "string",
74
- "description": "Unit of measure for the resolution.",
75
- "translation": {
76
- "ISO 19115-2": ["MD_GridSpatialRepresentation > axisDimensionProperties > MD_Dimension > resolution @uom"]
77
- }
78
- },
79
73
  "dimensionTitle": {
80
74
  "type": "string",
81
75
  "description": "The name of the axis.",
@@ -93,4 +87,4 @@
93
87
  }
94
88
  }
95
89
  }
96
- }
90
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id" : "identifier.json#",
4
+ "title": "identifier",
5
+ "description": "Assigned identifier for a resource.",
6
+ "example": "",
7
+ "translation": {
8
+ "ISO 19115-2": ["MD_Identifier"]
9
+ },
10
+ "type": "object",
11
+ "required": ["identifier"],
12
+ "properties": {
13
+ "identifier": {
14
+ "type": "string",
15
+ "description": "A name that is used to identify the resource.",
16
+ "translation": {
17
+ "ISO 19115-2": ["MD_Identifier > code"]
18
+ }
19
+ },
20
+ "namespace": {
21
+ "type": "string",
22
+ "description": "A string which unambiguously defines the namespace for the identifier.",
23
+ "translation": {
24
+ "ISO 19115-2": ["RS_Identifier > codeSpace"]
25
+ }
26
+ },
27
+ "version": {
28
+ "type": "string",
29
+ "description": "The version of the identifier.",
30
+ "translation": {
31
+ "ISO 19115-2": ["RS_Identifier > version"]
32
+ }
33
+ },
34
+ "description": {
35
+ "type": "string",
36
+ "description": "A natural language description of the meaning of the identifier value."
37
+ },
38
+ "authority": {
39
+ "description": "Citation for the authority issuing the identifier.",
40
+ "example": "",
41
+ "translation": {
42
+ "ISO 19115-2": ["MD_Identifier > authority > CI_Citation"]
43
+ },
44
+ "$ref": "./citation.json#/definitions/citationFull"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "imageDescription.json#",
4
+
5
+ "type": "object",
6
+ "description": "Information about an image's suitability for use.",
7
+ "translation": {
8
+ "ISO 19115-2": ["MI_ImageDescription"]
9
+ },
10
+ "required": [],
11
+ "additionalProperties": true,
12
+ "properties": {
13
+ "illuminationElevationAngle": {
14
+ "type": "number",
15
+ "description": "Illumination elevation measured in degrees clockwise from the target plane at intersection of the optical line of sight with the Earth’s surface. For images from a scanning device, refer to the centre pixel of the image.",
16
+ "translation": {
17
+ "ISO 19115-2": ["MI_ImageDescription > illiminationElevationAngle"]
18
+ }
19
+ },
20
+ "illuminationAzimuthAngle": {
21
+ "type": "number",
22
+ "description": "Illumination azimuth measured in degrees clockwise from true north at the time the image is taken. For images from a scanning device, refer to the centre pixel of the image",
23
+ "translation": {
24
+ "ISO 19115-2": ["MI_ImageDescription > illuminationAzimuthAngle"]
25
+ }
26
+ },
27
+ "imagingCondition": {
28
+ "type": "string",
29
+ "description": "Code which indicates conditions which may affect the image.",
30
+ "translation": {
31
+ "ISO 19115-2": ["MI_ImageDescription > imageCondition > MD_ImageConditionCode"]
32
+ }
33
+ },
34
+ "imageQualityCode": {
35
+ "description": "Specifies the image quality.",
36
+ "translation": {
37
+ "ISO 19115-2": ["MI_ImageDescription > imageQualityCode > RS_Identifier"]
38
+ },
39
+ "$ref": "./identifier.json#"
40
+ },
41
+ "cloudCoverPercent": {
42
+ "type": "number",
43
+ "maximum": 100,
44
+ "description": "Area of the dataset obscured by clouds, expressed as a percentage of the spatial extent.",
45
+ "translation": {
46
+ "ISO 19115-2": ["MI_ImageDescription > cloudCoverPercentage"]
47
+ }
48
+ },
49
+ "compressionQuantity": {
50
+ "type": "number",
51
+ "description": "Count of the number of lossy compression cycles performed on the image.",
52
+ "translation": {
53
+ "ISO 19115-2": ["MI_ImageDescription > compressionGenerationQuality"]
54
+ }
55
+ },
56
+ "triangulationIndicator": {
57
+ "type": "boolean",
58
+ "description": "Indication of whether or not triangulation has been performed upon the image.",
59
+ "translation": {
60
+ "ISO 19115-2": ["MI_ImageDescription > triangulationIndicator"]
61
+ }
62
+ },
63
+ "radiometricCalibrationAvailable": {
64
+ "type": "boolean",
65
+ "description": "Indication of whether or not the radiometric calibration information for generating the radiometrically calibrated standard data product is available.",
66
+ "translation": {
67
+ "ISO 19115-2": ["MI_ImageDescription > radiometricCalibrationDataAvailability"]
68
+ }
69
+ },
70
+ "cameraCalibrationAvailable": {
71
+ "type": "boolean",
72
+ "description": "Indication of whether or not constants are available which allow for camera calibration corrections.",
73
+ "translation": {
74
+ "ISO 19115-2": ["MI_ImageDescription > camerCalibrationInformationAvailability"]
75
+ }
76
+ },
77
+ "filmDistortionAvailable": {
78
+ "type": "boolean",
79
+ "description": "Indication of whether or not Calibration Reseau information is available",
80
+ "translation": {
81
+ "ISO 19115-2": ["MI_ImageDescription > filmDistrotionInformationAvailability"]
82
+ }
83
+ },
84
+ "lensDistortionAvailable": {
85
+ "type": "boolean",
86
+ "description": "Indication of whether or not lens aberration correction information is available.",
87
+ "translation": {
88
+ "ISO 19115-2": ["MI_ImageDescription > lensDistortionInformationAvailability"]
89
+ }
90
+ }
91
+ }
92
+ }