adiwg-json_schemas 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,31 @@
1
1
  {
2
2
  "id": "extent.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "description": "schema for extent",
5
4
  "type": "object",
5
+ "description": "Information about the geographic extent of the resource.",
6
+ "translation": {
7
+ "ISO 19115-2": ["EX_Extent"]
8
+ },
6
9
  "additionalProperties": true,
7
10
  "properties": {
8
11
  "description": {
9
- "type": "string"
12
+ "type": "string",
13
+ "description": "Description of the geographic extent.",
14
+ "translation": {
15
+ "ISO 19115-2": ["EX_Extent > description"]
16
+ }
10
17
  },
11
18
  "geographicElement": {
12
19
  "type": "array",
20
+ "description": "A grouping of geographic objects that comprises all or part of the extent.",
21
+ "translation": {
22
+ "ISO 19115-2": ["EX_Extent > geographicElement >"]
23
+ },
13
24
  "items": {
14
25
  "properties": {
15
26
  "type": {
16
- "enum": ["Feature", "FeatureCollection", "GeometryCollection", "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"]
27
+ "enum": ["Feature", "FeatureCollection", "GeometryCollection", "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"],
28
+ "description": "The type of geographic object."
17
29
  }
18
30
  },
19
31
  "oneOf": [
@@ -25,12 +37,15 @@
25
37
  },
26
38
  "verticalElement": {
27
39
  "type": "array",
40
+ "description": "Vertical element of an extent.",
41
+ "translation": {
42
+ "ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
43
+ },
28
44
  "items": {
29
45
  "$ref": "#/definitions/verticalExtent"
30
46
  }
31
47
  },
32
48
  "temporalElement": {
33
-
34
49
  "$ref": "#/definitions/temporalElement"
35
50
  }
36
51
  },
@@ -41,30 +56,60 @@
41
56
  "additionalProperties": false,
42
57
  "properties": {
43
58
  "id": {
44
- "type": "string"
59
+ "type": "string",
60
+ "description": "A unique identifier for a temporal element.",
61
+ "translation": {
62
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant @id"]
63
+ }
45
64
  },
46
65
  "description": {
47
- "type": "string"
66
+ "type": "string",
67
+ "description": "Text associated with the time instance.",
68
+ "translation": {
69
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > description"]
70
+ }
48
71
  },
49
72
  "timePosition": {
73
+ "translation": {
74
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > timePosition"]
75
+ },
50
76
  "$ref": "../schema.json#/definitions/date"
51
77
  }
52
78
  }
53
79
  },
54
80
  "timePeriod": {
55
81
  "type": "object",
82
+ "description": "A span of time represented by a start date/time and an ending date/time.",
56
83
  "additionalProperties": false,
57
84
  "properties": {
58
85
  "id": {
59
- "type": "string"
86
+ "type": "string",
87
+ "description": "A unique identifier for a temporal element.",
88
+ "translation": {
89
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod @id"]
90
+ }
60
91
  },
61
92
  "description": {
62
- "type": "string"
93
+ "type": "string",
94
+ "description": "Text associated with the time instance.",
95
+ "translation": {
96
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > description "]
97
+ }
63
98
  },
64
99
  "beginPosition": {
100
+ "description": "Starting date, or date and time.",
101
+ "translation": {
102
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > beginPosition "],
103
+ "FGDC CSDGM": ["idinfo > timeperd > rngdates > begdate"]
104
+ },
65
105
  "$ref": "../schema.json#/definitions/date"
66
106
  },
67
107
  "endPosition": {
108
+ "description": "Ending date, or date and time.",
109
+ "translation": {
110
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod > endPosition"],
111
+ "FGDC CSDGM": ["idinfo > timeperd > rngdates > enddate"]
112
+ },
68
113
  "$ref": "../schema.json#/definitions/date"
69
114
  }
70
115
  },
@@ -80,23 +125,39 @@
80
125
  },
81
126
  "temporalElement": {
82
127
  "type": "object",
128
+ "description": "Temporal context for the resource.",
129
+ "translation": {
130
+ "ISO 19115-2": ["EX_Extent > temporalElement > EX_TemporalExtent"]
131
+ },
83
132
  "additionalProperties": false,
84
133
  "minProperties": 1,
85
134
  "properties": {
86
135
  "timeInstant": {
87
136
  "type": "array",
137
+ "description": "A set of date time instances.",
138
+ "translation": {
139
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant"]
140
+ },
88
141
  "items": {
89
142
  "$ref": "#/definitions/timeInstant"
90
143
  }
91
144
  },
92
145
  "timePeriod": {
93
146
  "type": "array",
147
+ "description": "A set of time periods.",
148
+ "translation": {
149
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimePeriod"]
150
+ },
94
151
  "items": {
95
152
  "$ref": "#/definitions/timePeriod"
96
153
  }
97
154
  },
98
155
  "date": {
99
156
  "type": "array",
157
+ "description": "A set of date times.",
158
+ "translation": {
159
+ "ISO 19115-2": ["EX_TemporalExtent > extent > TimeInstant > timePosition"]
160
+ },
100
161
  "items": {
101
162
  "$ref": "../schema.json#/definitions/date"
102
163
  }
@@ -105,19 +166,40 @@
105
166
  },
106
167
  "verticalExtent": {
107
168
  "type": "object",
169
+ "description": "Vertical element of an extent.",
170
+ "translation": {
171
+ "ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
172
+ },
108
173
  "additionalProperties": false,
109
174
  "required": ["minimumValue", "maximumValue", "verticalCRSTitle", "verticalCRSUri"],
110
175
  "properties": {
111
176
  "minimumValue": {
112
- "type": "number"
177
+ "type": "number",
178
+ "description": "Lowest vertical extent contained in the dataset.",
179
+ "translation": {
180
+ "ISO 19115-2": ["EX_VerticalExtent > minimumValue > Real "]
181
+ }
113
182
  },
114
183
  "maximumValue": {
115
- "type": "number"
184
+ "type": "number",
185
+ "description": "Highest vertical extent contained in the dataset.",
186
+ "translation": {
187
+ "ISO 19115-2": ["EX_VerticalExtent > maximumValue > Real "]
188
+ }
116
189
  },
117
190
  "verticalCRSTitle": {
118
- "type": "string"
191
+ "type": "string",
192
+ "description": "Name of a geographic reference system associated with a vertical extent.",
193
+ "translation": {
194
+ "ISO 19115-2": ["EX_VerticalExtent > verticalCRS @xlink:title "],
195
+ "FGDC CSDGM": ["spref > vertdef > altsys > altdatum"]
196
+ }
119
197
  },
120
198
  "verticalCRSUri": {
199
+ "description": "Web link to the parameters for a geographic reference system associated with a vertical extent.",
200
+ "translation": {
201
+ "ISO 19115-2": ["EX_VerticalExtent > verticalCRS @xlink:href "]
202
+ },
121
203
  "$ref": "../schema.json#/definitions/uri"
122
204
  }
123
205
  }
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "id": "bbox.json#",
4
- "description": "A bounding box as defined by GeoJSON, minimum of 4 elements",
4
+ "description": "To include information on the coordinate range for geometries, features, or feature collections, a GeoJSON object may have a member named \"bbox\". The value of the bbox member must be a 2*n array where n is the number of dimensions represented in the contained geometries, with the lowest values for all axes followed by the highest values. The axes order of a bbox follows the axes order of geometries. In addition, the coordinate reference system for the bbox is assumed to match the coordinate reference system of the GeoJSON object of which it is a member.",
5
+ "translation": {
6
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_GeographicBoundingBox\nEX_GeographicBoundingBox > westBoundLongitude > Decimal {west}\nEX_GeographicBoundingBox > eastBoundLongitude > Decimal {east}\nEX_GeographicBoundingBox > southBoundLatitude > Decimal {south}\nEX_GeographicBoundingBox > northBoundLatitude > Decimal {north}"],
7
+ "FGDC CSDGM": ["[idinfo > spdom > bounding > westbc], [idinfo > spdom > bounding > eastbc], [idinfo > spdom > bounding > northbc], [idinfo > spdom > bounding > southbc]"]
8
+ },
5
9
  "type": "array",
6
10
  "minItems": 4,
7
11
  "items": {
@@ -1,56 +1,82 @@
1
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
- "type": [ "object", "null" ],
7
- "required": [ "type", "properties" ],
8
- "properties": {
9
- "type": { "type": "string" },
10
- "properties": { "type": "object" }
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "crs.json#",
4
+ "title": "crs",
5
+ "description": "A Coordinate Reference System object.",
6
+ "type": ["object", "null"],
7
+ "required": ["type", "properties"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "description": "The type of coordinate reference system."
11
12
  },
12
- "additionalProperties": false,
13
- "oneOf": [
14
- { "$ref": "#/definitions/namedCrs" },
15
- { "$ref": "#/definitions/linkedCrs" }
16
- ],
17
- "definitions": {
18
- "namedCrs": {
19
- "title": "namedCrs",
20
- "properties": {
21
- "type": { "enum": [ "name" ] },
22
- "properties": {
23
- "required": [ "name" ],
24
- "additionalProperties": false,
25
- "properties": {
26
- "name": {
27
- "type": "string",
28
- "FIXME": "semantic validation necessary"
29
- }
30
- }
31
- }
32
- }
13
+ "properties": {
14
+ "type": "object",
15
+ "description": "Coordinate reference system properties."
16
+ }
17
+ },
18
+ "additionalProperties": false,
19
+ "oneOf": [
20
+ {
21
+ "$ref": "#/definitions/namedCrs"
22
+ }, {
23
+ "$ref": "#/definitions/linkedCrs"
24
+ }
25
+ ],
26
+ "definitions": {
27
+ "namedCrs": {
28
+ "title": "namedCrs",
29
+ "description": "A GeoJSON CRS object that indicates a coordinate reference system by name.",
30
+ "properties": {
31
+ "type": {
32
+ "enum": ["name"],
33
+ "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\"."
33
34
  },
34
- "linkedObject": {
35
- "type": "object",
36
- "title": "linkedObject",
37
- "required": [ "href" ],
38
- "properties": {
39
- "href": {
40
- "$ref": "../../schema.json#/definitions/url"
41
- },
42
- "type": {
43
- "type": "string",
44
- "description": "Suggested values: proj4, ogjwkt, esriwkt"
45
- }
35
+ "properties": {
36
+ "description": "Coordinate reference system properties.",
37
+ "required": ["name"],
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "name": {
41
+ "type": "string",
42
+ "description": "The name of the coordinate reference system.",
43
+ "translation": {
44
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon, MultiGeometry] @srsName"]
45
+ },
46
+ "FIXME": "semantic validation necessary"
46
47
  }
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "linkedObject": {
53
+ "type": "object",
54
+ "title": "linkedObject",
55
+ "description": "An object that links to a coordinate reference system definition.",
56
+ "required": ["href"],
57
+ "properties": {
58
+ "href": {
59
+ "$ref": "../../schema.json#/definitions/url",
60
+ "description": "A dereferenceable URI that links to the parameters for the coordinate reference system."
47
61
  },
48
- "linkedCrs": {
49
- "title": "linkedCrs",
50
- "properties": {
51
- "type": { "enum": [ "link" ] },
52
- "properties": { "$ref": "#/definitions/linkedObject" }
53
- }
62
+ "type": {
63
+ "type": "string",
64
+ "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."
65
+ }
66
+ }
67
+ },
68
+ "linkedCrs": {
69
+ "title": "linkedCrs",
70
+ "description": "A GeoJSON CRS object that links to coordinate reference system parameters on the Web.",
71
+ "properties": {
72
+ "type": {
73
+ "enum": ["link"],
74
+ "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\"."
75
+ },
76
+ "properties": {
77
+ "$ref": "#/definitions/linkedObject"
54
78
  }
79
+ }
55
80
  }
81
+ }
56
82
  }
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "id": "geojson.json#",
4
- "title": "Geo JSON object",
5
- "description": "Schema for a Geo JSON object",
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
6
  "type": "object",
7
7
  "required": ["type"],
8
8
  "properties": {
9
9
  "crs": {
10
+ "description": "The coordinate reference system (CRS) of a GeoJSON object.",
10
11
  "$ref": "crs.json#"
11
12
  },
12
13
  "bbox": {
@@ -28,13 +29,21 @@
28
29
  "geometryCollection": {
29
30
  "title": "GeometryCollection",
30
31
  "description": "A collection of geometry objects",
32
+ "translation": {
33
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
34
+ },
31
35
  "required": ["geometries"],
32
36
  "properties": {
33
37
  "type": {
34
- "enum": ["GeometryCollection"]
38
+ "enum": ["GeometryCollection"],
39
+ "description": "Type of geometry object."
35
40
  },
36
41
  "geometries": {
37
42
  "type": "array",
43
+ "description": "The set of geometry objects constituting the GeometryCollection.",
44
+ "translation": {
45
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers"]
46
+ },
38
47
  "items": {
39
48
  "$ref": "geometry.json#"
40
49
  }
@@ -43,17 +52,20 @@
43
52
  },
44
53
  "feature": {
45
54
  "title": "Feature",
46
- "description": "A Geo JSON feature object",
55
+ "description": "A GeoJSON object with the type \"Feature\" is a feature object. A feature object has a geometry, properties, and an optional identifier.",
47
56
  "required": ["geometry", "properties"],
48
57
  "properties": {
49
58
  "type": {
50
- "enum": ["Feature"]
59
+ "enum": ["Feature"],
60
+ "description": "Type of GeoJSON object."
51
61
  },
52
62
  "geometry": {
63
+ "description": "The geometry object associated with the Feature.",
53
64
  "oneOf": [
54
65
  {
55
66
  "type": "null",
56
- "title": "null geometry"
67
+ "title": "null geometry",
68
+ "description": "A feature object with no associated geometry. For example, a null value may be used when defining a bounding box only."
57
69
  }, {
58
70
  "$ref": "geometry.json#"
59
71
  }
@@ -63,26 +75,39 @@
63
75
  "$ref": "#/definitions/featureProperties"
64
76
  },
65
77
  "id": {
66
- "type": ["string", "number"]
78
+ "type": ["string", "number"],
79
+ "description": "Unique identifier for the GeoJSON feature object.",
80
+ "translation": {
81
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] @id"]
82
+ }
67
83
  }
68
84
  }
69
85
  },
70
86
  "featureCollection": {
71
87
  "title": "FeatureCollection",
72
- "description": "A Geo JSON feature collection",
88
+ "description": "A GeoJSON object comprised of multiple Feature objects.",
73
89
  "required": ["features"],
74
90
  "properties": {
75
91
  "type": {
76
- "enum": ["FeatureCollection"]
92
+ "enum": ["FeatureCollection"],
93
+ "description": "Type of GeoJSON object."
77
94
  },
78
95
  "properties": {
79
96
  "$ref": "#/definitions/featureProperties"
80
97
  },
81
98
  "id": {
82
- "type": ["string", "number"]
99
+ "type": ["string", "number"],
100
+ "description": "Unique identifier for the GeoJSON object.",
101
+ "translation": {
102
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] @id"]
103
+ }
83
104
  },
84
105
  "features": {
85
106
  "type": "array",
107
+ "description": "Set of Features constituting the FeatureCollection.",
108
+ "translation": {
109
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
110
+ },
86
111
  "items": {
87
112
  "$ref": "#/definitions/feature"
88
113
  }
@@ -91,42 +116,62 @@
91
116
  },
92
117
  "featureProperties": {
93
118
  "title": "FeatureProperties",
94
- "description": "Properties of a feature or collection.",
119
+ "description": "JSON object containing information about a feature or collection.",
95
120
  "oneOf": [
96
121
  {
97
122
  "title": "null",
98
- "type": "null"
123
+ "type": "null",
124
+ "description": "A feature object with no identified properties."
99
125
  }, {
100
126
  "type": "object",
101
127
  "title": "featureProperties",
102
128
  "properties": {
103
129
  "includesData": {
104
- "type": "boolean"
130
+ "type": "boolean",
131
+ "description": "A boolean indicating whether geographic object is defining an extent, or used to describe an area of exception, such as \"holes\" in polygons.",
132
+ "translation": {
133
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_GeographicBoundingBox > extentTypeCode", "EX_Extent > geographicElement > EX_BoundingPolygon > extentTypeCode"]
134
+ }
105
135
  },
106
136
  "temporalElement": {
107
-
137
+ "description": "The temporal reference associated with an feature.",
108
138
  "$ref": "../extent.json#/definitions/temporalElement"
109
139
  },
110
140
  "verticalElement": {
111
141
  "type": "array",
142
+ "description": "The vertical extent of the feature geometry.",
112
143
  "items": {
113
144
  "$ref": "../extent.json#/definitions/verticalExtent"
114
145
  }
115
146
  },
116
147
  "description": {
117
- "type": "string"
148
+ "type": "string",
149
+ "description": "A description of the feature.",
150
+ "translation": {
151
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] > description"]
152
+ }
118
153
  },
119
154
  "featureName": {
120
- "type": "string"
155
+ "type": "string",
156
+ "description": "A title associated with a feature.",
157
+ "translation": {
158
+ "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] > name"]
159
+ }
121
160
  },
122
161
  "featureScope": {
123
- "type": "string"
162
+ "type": "string",
163
+ "description": "Scope of the geographic feature."
124
164
  },
125
165
  "featureAcquisitionMethod": {
126
- "type": "string"
166
+ "type": "string",
167
+ "description": "Method used to establish the position of the geographic feature. "
127
168
  },
128
169
  "identifier": {
129
170
  "type": "array",
171
+ "description": "Identifier for the geographic element with optional cited authority.",
172
+ "translation": {
173
+ "ISO 19115-2": ["geographicElement > EX_GeographicDescription > geographicIdentifier > MD_Identifier"]
174
+ },
130
175
  "items": {
131
176
  "$ref": "../citation.json#/definitions/identifier"
132
177
  }