adiwg-mdjson_schemas 2.0.0.pre.alpha.1 → 2.0.0.pre.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/examples/address.json +1 -0
  3. data/examples/allocation.json +8 -12
  4. data/examples/computedBbox.json +363 -376
  5. data/examples/legalConstraint.json +14 -21
  6. data/examples/locale.json +11 -14
  7. data/examples/phone.json +5 -9
  8. data/examples/securityConstraint.json +6 -13
  9. data/examples/series.json +5 -9
  10. data/examples/timeInterval.json +4 -8
  11. data/lib/adiwg/mdjson_schemas/version.rb +1 -1
  12. data/schema/additionalDocumentation.json +1 -0
  13. data/schema/associatedResource.json +44 -44
  14. data/schema/attribute.json +2 -3
  15. data/schema/attributeGroup.json +1 -1
  16. data/schema/bbox.json +1 -0
  17. data/schema/citation.json +4 -5
  18. data/schema/common.json +1 -2
  19. data/schema/constraint.json +7 -12
  20. data/schema/contact.json +13 -14
  21. data/schema/coverageDescription.json +1 -3
  22. data/schema/dataDictionary.json +1 -3
  23. data/schema/distribution.json +2 -5
  24. data/schema/distributor.json +1 -2
  25. data/schema/domain.json +2 -1
  26. data/schema/entity.json +8 -8
  27. data/schema/extent.json +1 -1
  28. data/schema/format.json +12 -13
  29. data/schema/funding.json +41 -35
  30. data/schema/geographicExtent.json +5 -10
  31. data/schema/geojson.json +63 -71
  32. data/schema/geometry.json +125 -132
  33. data/schema/georectifiedRepresentation.json +1 -9
  34. data/schema/georeferencableRepresentation.json +41 -45
  35. data/schema/graphic.json +1 -2
  36. data/schema/gridRepresentation.json +1 -1
  37. data/schema/identifier.json +1 -1
  38. data/schema/imageDescription.json +1 -1
  39. data/schema/keyword.json +15 -12
  40. data/schema/lineage.json +3 -9
  41. data/schema/locale.json +2 -2
  42. data/schema/maintInfo.json +14 -17
  43. data/schema/measure.json +5 -8
  44. data/schema/medium.json +1 -0
  45. data/schema/metadata.json +1 -5
  46. data/schema/metadataInfo.json +1 -4
  47. data/schema/onlineResource.json +2 -2
  48. data/schema/orderProcess.json +1 -1
  49. data/schema/releasability.json +4 -6
  50. data/schema/resourceInfo.json +1 -2
  51. data/schema/responsibility.json +1 -3
  52. data/schema/schema.json +2 -4
  53. data/schema/scope.json +1 -5
  54. data/schema/spatialReference.json +3 -5
  55. data/schema/spatialRepresentation.json +5 -6
  56. data/schema/spatialResolution.json +4 -4
  57. data/schema/taxonomy.json +4 -7
  58. data/schema/temporalExtent.json +1 -0
  59. data/schema/timeInstant.json +2 -4
  60. data/schema/timePeriod.json +6 -10
  61. data/schema/transferOption.json +7 -10
  62. data/schema/usage.json +2 -4
  63. data/schema/vectorRepresentation.json +42 -45
  64. data/schema/verticalExtent.json +2 -3
  65. data/test/tc_allocation.rb +8 -0
  66. data/test/tc_geographicExtent.rb +4 -0
  67. data/test/tc_legalConstraint.rb +8 -0
  68. data/test/tc_locale.rb +8 -0
  69. data/test/tc_phone.rb +8 -0
  70. data/test/tc_securityConstraint.rb +8 -0
  71. data/test/tc_series.rb +8 -0
  72. data/test/tc_timePeriod.rb +4 -0
  73. metadata +14 -6
  74. data/examples/gmlIdentifier.json +0 -8
  75. data/examples/keywordObject.json +0 -12
  76. data/examples/schema.json +0 -8
  77. data/examples/scopeDescription.json +0 -8
data/schema/geometry.json CHANGED
@@ -3,145 +3,143 @@
3
3
  "id": "geometry.json#",
4
4
  "title": "geometry",
5
5
  "description": "A geometry is a GeoJSON object where the type member's value is one of the following strings: \"Point\", \"MultiPoint\", \"LineString\", \"MultiLineString\", \"Polygon\", \"MultiPolygon\", or \"GeometryCollection\".\n\nA GeoJSON geometry object of any type other than \"GeometryCollection\" must have a member with the name \"coordinates\". The value of the coordinates member is always an array. The structure for the elements in this array is determined by the type of geometry.",
6
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
6
+ "example": "../examples/geometryObject.json",
7
7
  "translation": {
8
8
  "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > [Point | LineString | Polygon > [interior | exterior] | MultiGeometry]"]
9
9
  },
10
10
  "type": "object",
11
11
  "required": ["type", "coordinates"],
12
- "oneOf": [
13
- {
14
- "title": "Point",
15
- "type": "object",
12
+ "oneOf": [{
13
+ "title": "Point",
14
+ "type": "object",
16
15
 
17
- "description": "A point geometry object.",
18
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0",
19
- "translation": {
20
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point"]
16
+ "description": "A point geometry object.",
17
+ "example": "../examples/geometryObject.json",
18
+ "translation": {
19
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point"]
20
+ },
21
+ "properties": {
22
+ "type": {
23
+ "enum": ["Point"],
24
+ "description": "Type of geometry object."
21
25
  },
22
- "properties": {
23
- "type": {
24
- "enum": ["Point"],
25
- "description": "Type of geometry object."
26
+ "coordinates": {
27
+ "description": "The position representing a point, 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).",
28
+ "translation": {
29
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point > coordinates"]
26
30
  },
27
- "coordinates": {
28
- "description": "The position representing a point, 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).",
29
- "translation": {
30
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point > coordinates"]
31
- },
32
- "$ref": "#/definitions/position"
33
- }
31
+ "$ref": "#/definitions/position"
34
32
  }
35
- }, {
36
- "title": "MultiPoint",
37
- "type": "object",
33
+ }
34
+ }, {
35
+ "title": "MultiPoint",
36
+ "type": "object",
38
37
 
39
- "description": "A geographic object comprised of multiple points.",
40
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/3",
41
- "translation": {
42
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ]"]
38
+ "description": "A geographic object comprised of multiple points.",
39
+ "example": "../examples/geometryObject.json",
40
+ "translation": {
41
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ]"]
42
+ },
43
+ "properties": {
44
+ "type": {
45
+ "enum": ["MultiPoint"],
46
+ "description": "Type of geometry object."
43
47
  },
44
- "properties": {
45
- "type": {
46
- "enum": ["MultiPoint"],
47
- "description": "Type of geometry object."
48
+ "coordinates": {
49
+ "description": "The set of positions that constitute the MultiPoint geometry.",
50
+ "translation": {
51
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ] > coordinates"]
48
52
  },
49
- "coordinates": {
50
- "description": "The set of positions that constitute the MultiPoint geometry.",
51
- "translation": {
52
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ] > coordinates"]
53
- },
54
- "$ref": "#/definitions/positionArray"
55
- }
53
+ "$ref": "#/definitions/positionArray"
56
54
  }
57
- }, {
58
- "title": "LineString",
59
- "type": "object",
60
- "description": "A geometry object comprised of a minimum of two positions.",
61
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1",
62
- "translation": {
63
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString"]
55
+ }
56
+ }, {
57
+ "title": "LineString",
58
+ "type": "object",
59
+ "description": "A geometry object comprised of a minimum of two positions.",
60
+ "example": "../examples/geometryObject.json",
61
+ "translation": {
62
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString"]
63
+ },
64
+ "properties": {
65
+ "type": {
66
+ "enum": ["LineString"],
67
+ "description": "Type of geometry object."
64
68
  },
65
- "properties": {
66
- "type": {
67
- "enum": ["LineString"],
68
- "description": "Type of geometry object."
69
+ "coordinates": {
70
+ "description": "The set of positions that constitute the LineString geometry.",
71
+ "translation": {
72
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString > coordinates"]
69
73
  },
70
- "coordinates": {
71
- "description": "The set of positions that constitute the LineString geometry.",
72
- "translation": {
73
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString > coordinates"]
74
- },
75
- "$ref": "#/definitions/lineString"
76
- }
74
+ "$ref": "#/definitions/lineString"
77
75
  }
78
- }, {
79
- "title": "MultiLineString",
80
- "type": "object",
81
- "description": "A geometry object comprised of one or more LineStrings.",
82
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/4",
83
- "translation": {
84
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ]"]
76
+ }
77
+ }, {
78
+ "title": "MultiLineString",
79
+ "type": "object",
80
+ "description": "A geometry object comprised of one or more LineStrings.",
81
+ "example": "../examples/geometryObject.json",
82
+ "translation": {
83
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ]"]
84
+ },
85
+ "properties": {
86
+ "type": {
87
+ "enum": ["MultiLineString"],
88
+ "description": "Type of geometry object."
85
89
  },
86
- "properties": {
87
- "type": {
88
- "enum": ["MultiLineString"],
89
- "description": "Type of geometry object."
90
+ "coordinates": {
91
+ "type": "array",
92
+ "description": "The set of LineString(s) that constitute the MultiLineString.",
93
+ "translation": {
94
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ] > coordinates"]
90
95
  },
91
- "coordinates": {
92
- "type": "array",
93
- "description": "The set of LineString(s) that constitute the MultiLineString.",
94
- "translation": {
95
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ] > coordinates"]
96
- },
97
- "items": {
98
- "$ref": "#/definitions/lineString"
99
- }
96
+ "items": {
97
+ "$ref": "#/definitions/lineString"
100
98
  }
101
99
  }
102
- }, {
103
- "title": "Polygon",
104
- "type": "object",
105
- "description": "A geometry object that is composed of a set of LinearRings. A LinearRing is a closed LineString with 4 or more positions. The first and last positions are equivalent (they represent equivalent points).\n\nFor Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.",
106
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/2",
107
- "translation": {
108
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon"]
100
+ }
101
+ }, {
102
+ "title": "Polygon",
103
+ "type": "object",
104
+ "description": "A geometry object that is composed of a set of LinearRings. A LinearRing is a closed LineString with 4 or more positions. The first and last positions are equivalent (they represent equivalent points).\n\nFor Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.",
105
+ "example": "../examples/geometryObject.json",
106
+ "translation": {
107
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon"]
108
+ },
109
+ "properties": {
110
+ "type": {
111
+ "enum": ["Polygon"],
112
+ "description": "Type of geometry object."
109
113
  },
110
- "properties": {
111
- "type": {
112
- "enum": ["Polygon"],
113
- "description": "Type of geometry object."
114
- },
115
- "coordinates": {
116
- "$ref": "#/definitions/polygon"
117
- }
114
+ "coordinates": {
115
+ "$ref": "#/definitions/polygon"
118
116
  }
119
- }, {
120
- "title": "MultiPolygon",
121
- "type": "object",
122
- "description": "A geometry object comprised of multiple polygons. ",
123
- "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/5",
124
- "translation": {
125
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ]"]
117
+ }
118
+ }, {
119
+ "title": "MultiPolygon",
120
+ "type": "object",
121
+ "description": "A geometry object comprised of multiple polygons. ",
122
+ "example": "../examples/geometryObject.json",
123
+ "translation": {
124
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ]"]
125
+ },
126
+ "properties": {
127
+ "type": {
128
+ "enum": ["MultiPolygon"],
129
+ "description": "Type of geometry object."
126
130
  },
127
- "properties": {
128
- "type": {
129
- "enum": ["MultiPolygon"],
130
- "description": "Type of geometry object."
131
+ "coordinates": {
132
+ "type": "array",
133
+ "description": "The set of Polygons that constitute the MultiPolygon.",
134
+ "translation": {
135
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ] > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
131
136
  },
132
- "coordinates": {
133
- "type": "array",
134
- "description": "The set of Polygons that constitute the MultiPolygon.",
135
- "translation": {
136
- "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ] > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
137
- },
138
- "items": {
139
- "$ref": "#/definitions/polygon"
140
- }
137
+ "items": {
138
+ "$ref": "#/definitions/polygon"
141
139
  }
142
140
  }
143
141
  }
144
- ],
142
+ }],
145
143
  "definitions": {
146
144
  "position": {
147
145
  "title": "position",
@@ -151,8 +149,7 @@
151
149
  "maxItems": 3,
152
150
  "items": {
153
151
  "type": "number"
154
- }
155
- ,
152
+ },
156
153
  "additionalItems": false
157
154
  },
158
155
  "positionArray": {
@@ -166,28 +163,24 @@
166
163
  "lineString": {
167
164
  "title": "lineString",
168
165
  "description": "An array of two or more positions",
169
- "allOf": [
170
- {
171
- "$ref": "#/definitions/positionArray"
172
- }, {
173
- "title": "minimum 2",
174
- "description": "The LineString must consist of two or more positions",
175
- "minItems": 2
176
- }
177
- ]
166
+ "allOf": [{
167
+ "$ref": "#/definitions/positionArray"
168
+ }, {
169
+ "title": "minimum 2",
170
+ "description": "The LineString must consist of two or more positions",
171
+ "minItems": 2
172
+ }]
178
173
  },
179
174
  "linearRing": {
180
175
  "title": "LinearRing",
181
176
  "description": "An array of a minimum of four positions where the first equals the last",
182
- "allOf": [
183
- {
184
- "$ref": "#/definitions/positionArray"
185
- }, {
186
- "title": "minimum 4",
187
- "description": "A LinearRing is a closed LineString with 4 or more positions.",
188
- "minItems": 4
189
- }
190
- ]
177
+ "allOf": [{
178
+ "$ref": "#/definitions/positionArray"
179
+ }, {
180
+ "title": "minimum 4",
181
+ "description": "A LinearRing is a closed LineString with 4 or more positions.",
182
+ "minItems": 4
183
+ }]
191
184
  },
192
185
  "polygon": {
193
186
  "title": "Polygon",
@@ -4,6 +4,7 @@
4
4
  "type": "object",
5
5
  "title": "",
6
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
+ "example": "../examples/georectifiedRepresentation.json",
7
8
  "required": ["gridRepresentation", "checkPointAvailable", "cornerPoints", "pointInPixel"],
8
9
  "additionalProperties": true,
9
10
  "properties": {
@@ -13,25 +14,21 @@
13
14
  "checkPointAvailable": {
14
15
  "type": "boolean",
15
16
  "description": "Idication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.",
16
- "example": "",
17
17
  "translation": {}
18
18
  },
19
19
  "checkPointDescription": {
20
20
  "type": "string",
21
21
  "description": "Description of geographic positions points used to test the accuracy of the georeferenced grid data.",
22
- "example": "",
23
22
  "translation": {},
24
23
  "minLength": 1
25
24
  },
26
25
  "cornerPoints": {
27
26
  "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
27
  "translation": {},
30
28
  "oneOf": [{
31
29
  "type": "array",
32
30
  "title": "2 coordinate points",
33
31
  "description": "",
34
- "example": "",
35
32
  "minItems": 2,
36
33
  "maxItems": 2,
37
34
  "items": {
@@ -41,7 +38,6 @@
41
38
  "type": "array",
42
39
  "title": "4 coordinate points",
43
40
  "description": "",
44
- "example": "",
45
41
  "minItems": 4,
46
42
  "maxItems": 4,
47
43
  "items": {
@@ -52,27 +48,23 @@
52
48
  "centerPoint": {
53
49
  "type": "array",
54
50
  "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
51
  "$ref": "#/definitions/point"
57
52
  },
58
53
  "pointInPixel": {
59
54
  "type": "string",
60
55
  "description": "Point in a pixel corresponding to the Earth location of the pixel.",
61
- "example": "",
62
56
  "translation": {},
63
57
  "minLength": 1
64
58
  },
65
59
  "transformationDimensionDescription": {
66
60
  "type": "string",
67
61
  "description": "Point in a pixel corresponding to the Earth location of the pixel.",
68
- "example": "",
69
62
  "translation": {},
70
63
  "minLength": 1
71
64
  },
72
65
  "transformationDimensionMapping": {
73
66
  "type": "string",
74
67
  "description": "Point in a pixel corresponding to the Earth location of the pixel.",
75
- "example": "",
76
68
  "translation": {},
77
69
  "minLength": 1
78
70
  }
@@ -1,49 +1,45 @@
1
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
- }
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
+ "example": "../examples/georeferencableRepresentation.json",
8
+ "required": ["controlPointAvailable", "orientationParameterAvailable", "georeferencedParameter"],
9
+ "additionalProperties": true,
10
+ "properties": {
11
+ "gridRepresentation": {
12
+ "$ref": "./gridRepresentation.json#"
13
+ },
14
+ "controlPointAvailable": {
15
+ "type": "boolean",
16
+ "description": "Indication of whether or not control point(s) exist.",
17
+ "translation": {}
18
+ },
19
+ "orientationParameterAvailable": {
20
+ "type": "boolean",
21
+ "description": "Description of the parameters used to describe sensor orientation.",
22
+ "translation": {}
23
+ },
24
+ "orientationParameterDescription": {
25
+ "type": "string",
26
+ "description": "Description of parameters used to describe sensor orientation.",
27
+ "translation": {},
28
+ "minLength": 1
29
+ },
30
+ "georeferencedParameter": {
31
+ "type": "string",
32
+ "title": "",
33
+ "description": "Information which support grid data georeferencing.",
34
+ "translation": {}
35
+ },
36
+ "parameterCitation": {
37
+ "type": "array",
38
+ "description": "Reference providing description of the parameters.",
39
+ "translation": {},
40
+ "items": {
41
+ "$ref": "./citation.json#"
47
42
  }
48
43
  }
44
+ }
49
45
  }
data/schema/graphic.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "graphic.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "title": "graphic",
5
- "example": "../../examples/full_example.json#/metadata/resourceInfo/graphicOverview/0",
5
+ "example":"../examples/graphic.json",
6
6
  "description": "Provides a path or link to images, maps, flow charts, models, etc. that illustrate the resource.",
7
7
  "type": "object",
8
8
  "required": ["fileName"],
@@ -35,7 +35,6 @@
35
35
  "fileConstraint": {
36
36
  "type": "array",
37
37
  "description": "Identifies, legal, security, and other constraint requirements associated with use and distribution of the graphic",
38
- "example": "../../examples/",
39
38
  "translation": {},
40
39
  "items": {
41
40
  "$ref": "constraint.json#"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "gridRepresentation.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "example": "",
4
+ "example":"../examples/gridRepresentation.json",
5
5
  "description": "Information about grid objects in the resource.",
6
6
  "translation": {
7
7
  "ISO 19115-2": ["MD_GridSpatialRepresentation"]
@@ -3,7 +3,7 @@
3
3
  "id" : "identifier.json#",
4
4
  "title": "identifier",
5
5
  "description": "Assigned identifier for a resource.",
6
- "example": "",
6
+ "example":"../examples/identifier.json",
7
7
  "translation": {
8
8
  "ISO 19115-2": ["MD_Identifier"]
9
9
  },
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "id": "imageDescription.json#",
4
-
5
4
  "type": "object",
6
5
  "description": "Information about an image's suitability for use.",
6
+ "example":"../examples/imageDescription.json",
7
7
  "translation": {
8
8
  "ISO 19115-2": ["MI_ImageDescription"]
9
9
  },
data/schema/keyword.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "keyword.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "description": "schema for a keyword entry",
5
- "example": "",
5
+ "example": "../examples/keyword.json",
6
6
  "type": "object",
7
7
  "required": ["keyword"],
8
8
  "additionalProperties": true,
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "thesaurus": {
30
30
  "description": "Name of the formally registered thesaurus or a similar authoritative source of keywords.",
31
- "example": "",
32
31
  "translation": {
33
32
  "ISO 19115-2": ["MD_Keywords > thesaurusName > CI_Citation"],
34
33
  "FGDC CSDGM": ["idinfo>keywords>theme>themekt", "idinfo>keywords>place>placekt", "idinfo>keywords>temporal>tempkt", "idinfo>keywords>stratum>stratkt"]
@@ -38,16 +37,20 @@
38
37
  },
39
38
  "definitions": {
40
39
  "keywordObject": {
41
- "type" : "object",
42
- "required" : ["keyword"],
43
- "additionalProperties" : true,
44
- "properties" : {"keyword":{
45
- "type" : "string",
46
- "description" : "Commonly used word(s) or formalized word(s) or phrase(s) used to describe the subject."
47
- },"keywordId": {
48
- "type" : "string",
49
- "description" : "Identifier for the keyword."
50
- }}
40
+ "type": "object",
41
+ "example": "../examples/keyword.json#/0/keyword/0",
42
+ "required": ["keyword"],
43
+ "additionalProperties": true,
44
+ "properties": {
45
+ "keyword": {
46
+ "type": "string",
47
+ "description": "Commonly used word(s) or formalized word(s) or phrase(s) used to describe the subject."
48
+ },
49
+ "keywordId": {
50
+ "type": "string",
51
+ "description": "Identifier for the keyword."
52
+ }
53
+ }
51
54
  }
52
55
  }
53
56
  }