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.
@@ -2,48 +2,87 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "id": "geometry.json#",
4
4
  "title": "geometry",
5
- "description": "One geometry as defined by GeoJSON",
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
+ "translation": {
7
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > [Point | LineString | Polygon > [interior | exterior] | MultiGeometry]"]
8
+ },
6
9
  "type": "object",
7
10
  "required": ["type", "coordinates"],
8
11
  "oneOf": [
9
12
  {
10
13
  "title": "Point",
14
+ "description": "A point geometry object.",
15
+ "translation": {
16
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point"]
17
+ },
11
18
  "properties": {
12
19
  "type": {
13
- "enum": ["Point"]
20
+ "enum": ["Point"],
21
+ "description": "Type of geometry object."
14
22
  },
15
23
  "coordinates": {
24
+ "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).",
25
+ "translation": {
26
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point > coordinates"]
27
+ },
16
28
  "$ref": "#/definitions/position"
17
29
  }
18
30
  }
19
31
  }, {
20
32
  "title": "MultiPoint",
33
+ "description": "A geographic object comprised of multiple points.",
34
+ "translation": {
35
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ]"]
36
+ },
21
37
  "properties": {
22
38
  "type": {
23
- "enum": ["MultiPoint"]
39
+ "enum": ["MultiPoint"],
40
+ "description": "Type of geometry object."
24
41
  },
25
42
  "coordinates": {
43
+ "description": "The set of positions that constitute the MultiPoint geometry.",
44
+ "translation": {
45
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ] > coordinates"]
46
+ },
26
47
  "$ref": "#/definitions/positionArray"
27
48
  }
28
49
  }
29
50
  }, {
30
51
  "title": "LineString",
52
+ "description": "A geometry object comprised of a minimum of two positions.",
53
+ "translation": {
54
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString"]
55
+ },
31
56
  "properties": {
32
57
  "type": {
33
- "enum": ["LineString"]
58
+ "enum": ["LineString"],
59
+ "description": "Type of geometry object."
34
60
  },
35
61
  "coordinates": {
62
+ "description": "The set of positions that constitute the LineString geometry.",
63
+ "translation": {
64
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString > coordinates"]
65
+ },
36
66
  "$ref": "#/definitions/lineString"
37
67
  }
38
68
  }
39
69
  }, {
40
70
  "title": "MultiLineString",
71
+ "description": "A geometry object comprised of one or more LineStrings.",
72
+ "translation": {
73
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ]"]
74
+ },
41
75
  "properties": {
42
76
  "type": {
43
- "enum": ["MultiLineString"]
77
+ "enum": ["MultiLineString"],
78
+ "description": "Type of geometry object."
44
79
  },
45
80
  "coordinates": {
46
81
  "type": "array",
82
+ "description": "The set of LineString(s) that constitute the MultiLineString.",
83
+ "translation": {
84
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ] > coordinates"]
85
+ },
47
86
  "items": {
48
87
  "$ref": "#/definitions/lineString"
49
88
  }
@@ -51,9 +90,14 @@
51
90
  }
52
91
  }, {
53
92
  "title": "Polygon",
93
+ "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.",
94
+ "translation": {
95
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon"]
96
+ },
54
97
  "properties": {
55
98
  "type": {
56
- "enum": ["Polygon"]
99
+ "enum": ["Polygon"],
100
+ "description": "Type of geometry object."
57
101
  },
58
102
  "coordinates": {
59
103
  "$ref": "#/definitions/polygon"
@@ -61,12 +105,21 @@
61
105
  }
62
106
  }, {
63
107
  "title": "MultiPolygon",
108
+ "description": "A geometry object comprised of multiple polygons. ",
109
+ "translation": {
110
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ]"]
111
+ },
64
112
  "properties": {
65
113
  "type": {
66
- "enum": ["MultiPolygon"]
114
+ "enum": ["MultiPolygon"],
115
+ "description": "Type of geometry object."
67
116
  },
68
117
  "coordinates": {
69
118
  "type": "array",
119
+ "description": "The set of Polygons that constitute the MultiPolygon.",
120
+ "translation": {
121
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ] > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
122
+ },
70
123
  "items": {
71
124
  "$ref": "#/definitions/polygon"
72
125
  }
@@ -77,7 +130,7 @@
77
130
  "definitions": {
78
131
  "position": {
79
132
  "title": "position",
80
- "description": "A single position",
133
+ "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).",
81
134
  "type": "array",
82
135
  "minItems": 2,
83
136
  "items": {
@@ -102,23 +155,30 @@
102
155
  "$ref": "#/definitions/positionArray"
103
156
  }, {
104
157
  "title": "minimum 2",
158
+ "description": "The LineString must consist of two or more positions",
105
159
  "minItems": 2
106
160
  }
107
161
  ]
108
162
  },
109
163
  "linearRing": {
164
+ "title": "LinearRing",
110
165
  "description": "An array of four positions where the first equals the last",
111
166
  "allOf": [
112
167
  {
113
168
  "$ref": "#/definitions/positionArray"
114
169
  }, {
115
170
  "title": "minimum 4",
171
+ "description": "A LinearRing is a closed LineString with 4 or more positions.",
116
172
  "minItems": 4
117
173
  }
118
174
  ]
119
175
  },
120
176
  "polygon": {
121
- "description": "An array of linear rings",
177
+ "title": "Polygon",
178
+ "description": "A set of LinearRings that constitute a Polygon geometry. For Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.",
179
+ "translation": {
180
+ "ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
181
+ },
122
182
  "type": "array",
123
183
  "items": {
124
184
  "$ref": "#/definitions/linearRing"
@@ -7,15 +7,34 @@
7
7
  "additionalProperties": true,
8
8
  "properties": {
9
9
  "fileName": {
10
- "type": "string"
10
+ "type": "string",
11
+ "description": "Name of the file that contains a browse graphic for the resource.",
12
+ "translation": {
13
+ "ISO 19115-2": ["MD_BrowseGraphic > filename"],
14
+ "FGDC CSDGM": ["idinfo > browse > browsen"]
15
+ }
11
16
  },
12
17
  "fileDescription": {
13
- "type": "string"
18
+ "type": "string",
19
+ "description": "Description of the browse graphic.",
20
+ "translation": {
21
+ "ISO 19115-2": ["MD_BrowseGraphic > fileDescription"],
22
+ "FGDC CSDGM": ["idinfo > browse > browsed"]
23
+ }
14
24
  },
15
25
  "fileType": {
16
- "type": "string"
26
+ "type": "string",
27
+ "description": "Format of the browse graphic, such as; PDF, JPEG, TIFF, etc.",
28
+ "translation": {
29
+ "ISO 19115-2": ["MD_BrowseGraphic > fileType"],
30
+ "FGDC CSDGM": ["idinfo > browse > browset"]
31
+ }
17
32
  },
18
33
  "fileUri": {
34
+ "description": "URI of the browse graphic.",
35
+ "translation": {
36
+ "ISO 19115-2": ["MD_BrowseGraphic > filename @xlink:href"]
37
+ },
19
38
  "$ref": "../schema.json#/definitions/uri"
20
39
  }
21
40
  }
@@ -8,15 +8,29 @@
8
8
  "properties": {
9
9
  "keyword": {
10
10
  "type": "array",
11
+ "description": "Commonly used word(s) or formalized word(s) or phrase(s) used to describe the subject.",
12
+ "translation": {
13
+ "ISO 19115-2": ["MD_Keywords > keyword"],
14
+ "FGDC CSDGM": ["idinfo>keywords>theme>themekey", "idinfo>keywords>place>placekey", "idinfo>keywords>temporal>tempkey", "idinfo>keywords>stratum>stratkey"]
15
+ },
11
16
  "items": {
12
17
  "type": "string"
13
18
  },
14
19
  "uniqueItems": true
15
20
  },
16
21
  "keywordType": {
17
- "type": "string"
22
+ "type": "string",
23
+ "description": "A code, or concept, that defines the subject matter used to group similar keywords.",
24
+ "translation": {
25
+ "ISO 19115-2": ["MD_Keywords > type"]
26
+ }
18
27
  },
19
28
  "thesaurus": {
29
+ "description": "Name of the formally registered thesaurus or a similar authoritative source of keywords.",
30
+ "translation": {
31
+ "ISO 19115-2": ["MD_Keywords > thesaurusName > CI_Citation"],
32
+ "FGDC CSDGM": ["idinfo>keywords>theme>themekt", "idinfo>keywords>place>placekt", "idinfo>keywords>temporal>tempkt", "idinfo>keywords>stratum>stratkt"]
33
+ },
20
34
  "$ref": "citation.json#/definitions/citationFull"
21
35
  }
22
36
  }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "id": "maintInfo.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "description": "schema for maintenance information",
5
4
  "type": "object",
5
+ "description": "Information about the maintenance of a resource.",
6
+ "translation": {
7
+ "ISO 19115-2": ["MD_MaintenanceInformation"]
8
+ },
6
9
  "additionalProperties": false,
7
10
  "properties": {
8
11
  "maintenanceFrequency": {
9
- "type": "string"
12
+ "type": "string",
13
+ "description": "Describes the frequency of additions and updates made to a resource.",
14
+ "translation": {
15
+ "ISO 19115-2": ["MD_MaintenanceInformation > maintenanceAndUpdateFrequency [MD_MaintenanceFrequencyCode]"]
16
+ }
10
17
  },
11
18
  "maintenanceNote": {
12
19
  "type": "array",
20
+ "description": "Notes regarding the maintenance of the resource.",
21
+ "translation": {
22
+ "ISO 19115-2": ["MD_MaintenanceInformation > maintenanceNote"]
23
+ },
13
24
  "items": {
14
25
  "type": "string"
15
26
  }
@@ -17,6 +28,11 @@
17
28
  ,
18
29
  "maintenanceContact": {
19
30
  "type": "array",
31
+ "description": "Contact information for the maintainer of the resource.",
32
+ "translation": {
33
+ "ISO 19115-2": ["MD_MaintenanceInformation > contact > CI_Contact"],
34
+ "FGDC CSDGM": ["metainfo > metc"]
35
+ },
20
36
  "uniqueItems": true,
21
37
  "items": {
22
38
  "$ref": "contact.json#/definitions/contactRef"
@@ -1,92 +1,172 @@
1
1
  {
2
2
  "id": "metadata.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "description": "schema for metadata section",
4
+ "description": "The main body of the metadata record.",
5
5
  "type": "object",
6
+ "example": "../../examples/full_example.json#/metadata",
7
+ "translation": {
8
+ "ISO 19115-2": ["MI_Metadata"],
9
+ "FGDC CSDGM": ["metadata"]
10
+ },
6
11
  "required": ["resourceInfo"],
7
12
  "additionalProperties": false,
8
13
  "properties": {
9
14
  "metadataInfo": {
10
15
  "type": "object",
16
+ "description": "General information about the metadata record.",
17
+ "example": "../../examples/full_example.json#/metadata/metadataInfo",
11
18
  "required": ["metadataContact", "metadataCreationDate"],
12
19
  "additionalProperties": false,
13
20
  "properties": {
14
21
  "metadataIdentifier": {
22
+ "description": "Unique identifier for this metadata file.",
23
+ "translation": {
24
+ "ISO 19115-2": ["MI_Metadata > fileIdentifier"]
25
+ },
15
26
  "$ref": "citation.json#/definitions/identifier"
16
27
  },
17
28
  "parentMetadata": {
18
- "$ref": "citation.json#/definitions/citationFull"
19
- },
20
- "metadataScope": {
21
- "type": "array",
22
- "items": {
23
- "type": "string"
29
+ "description": "Identifier of the metadata to which this metadata is a subset (child).",
30
+ "translation": {
31
+ "ISO 19115-2": ["MI_Metadata > parentIdentifier"]
24
32
  },
25
- "uniqueItems": true
33
+ "$ref": "citation.json#/definitions/citationFull"
26
34
  },
27
35
  "metadataContact": {
28
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
+ },
29
42
  "minItems": 1,
30
43
  "items": {
31
44
  "$ref": "contact.json#/definitions/contactRef"
32
45
  }
33
46
  },
34
47
  "metadataCharacterSet": {
35
- "type": "string"
48
+ "type": "string",
49
+ "description": "Full name of the character coding standard used for the metadata set. ",
50
+ "translation": {
51
+ "ISO 19115-2": ["MI_Metadata > characterSet [MD_CharacterSetCode]"]
52
+ }
36
53
  },
37
54
  "metadataCreationDate": {
38
- "$ref": "../schema.json#/definitions/date"
55
+ "$ref": "../schema.json#/definitions/date",
56
+ "description": "Date that the metadata was created.",
57
+ "translation": {
58
+ "ISO 19115-2": ["MI_Metadata > dateStamp"],
59
+ "FGDC CSDGM": ["metainfo > metd"]
60
+ }
39
61
  },
40
62
  "metadataLastUpdate": {
41
- "$ref": "../schema.json#/definitions/date"
63
+ "$ref": "../schema.json#/definitions/date",
64
+ "description": "Date that the metadata was updated.",
65
+ "translation": {
66
+ "ISO 19115-2": ["MI_Metadata > dateStamp"],
67
+ "FGDC CSDGM": ["metainfo > metrd"]
68
+ }
42
69
  },
43
70
  "metadataUri": {
44
- "$ref": "../schema.json#/definitions/uri"
71
+ "$ref": "../schema.json#/definitions/uri",
72
+ "description": "Uniform Resource Identifier (URI) of the metadata record."
45
73
  },
46
74
  "metadataStatus": {
47
- "type": "string"
75
+ "type": "string",
76
+ "description": "Status of the metadata record."
48
77
  },
49
78
  "metadataMaintenance": {
79
+ "description": "Provides information about the frequency of metadata updates, and the scope of those updates.",
80
+ "translation": {
81
+ "ISO 19115-2": ["MI_Metadata > metadataMaintenance > MD_MaintenanceInformation"]
82
+ },
50
83
  "$ref": "maintInfo.json#"
51
84
  }
52
85
  }
53
86
  },
54
87
  "resourceInfo": {
88
+ "translation": {
89
+ "ISO 19115-2": ["MD_Metadata > identificationInfo > MD_DataIdentification"],
90
+ "FGDC CSDGM": ["idinfo"]
91
+ },
55
92
  "$ref": "resourceInfo.json#"
56
93
  },
57
94
  "distributionInfo": {
58
95
  "type": "array",
96
+ "description": "Information about the distributor of and options for obtaining the resource.",
97
+ "example": "../../examples/full_example.json#/metadata/distributionInfo",
98
+ "translation": {
99
+ "ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
100
+ "FGDC CSDGM": ["distinfo"]
101
+ },
59
102
  "items": {
60
103
  "$ref": "distributor.json#"
61
104
  }
62
105
  },
63
106
  "associatedResource": {
64
107
  "type": "array",
108
+ "description": "Information about a resource related to the data resource, such as: study, dataset, project, etc. An associated resource may be a child reference, or reference a larger work, such as an initiative.",
109
+ "example": "../../examples/full_example.json#/metadata/associatedResource",
110
+ "translation": {
111
+ "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
112
+ "FGDC CSDGM": ["idinfo > crossref"]
113
+ },
65
114
  "items": {
66
115
  "type": "object",
67
116
  "required": ["associationType", "resourceType"],
68
117
  "additionalProperties": false,
69
118
  "properties": {
70
119
  "associationType": {
71
- "type": "string"
120
+ "type": "string",
121
+ "description": "Identifies the type of association, such as; source, cross reference, etc.",
122
+ "translation": {
123
+ "ISO 19115-2": ["MD_AggregateInformation > associationType [DS_AssociationTypeCode]"]
124
+ }
125
+ },
126
+ "initiativeType": {
127
+ "type": "string",
128
+ "description": "Identifies type of initiative under which the resource was produced - the activity that resulted in the resource.",
129
+ "translation": {
130
+ "ISO 19115-2": ["MD_AggregateInformation > initiativeType > [DS_InitiativeTypeCode]"]
131
+ }
72
132
  },
73
133
  "resourceType": {
74
- "type": "string"
134
+ "type": "string",
135
+ "description": "Identifies the type of resource, such as; a dataset, study, publication, etc."
75
136
  },
76
137
  "resourceCitation": {
138
+ "description": "Citation for the associated resource.",
139
+ "translation": {
140
+ "ISO 19115-2": ["MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
141
+ "FGDC CSDGM": ["idinfo > crossref > citeinfo"]
142
+ },
77
143
  "$ref": "citation.json#"
78
144
  },
79
145
  "metadataCitation": {
146
+ "description": "Citation for the associated resource metadata.",
80
147
  "$ref": "citation.json#"
81
148
  }
82
149
  }
83
150
  }
84
151
  },
85
152
  "additionalDocumentation": {
86
- "additionalProperties": false,
87
153
  "type": "array",
154
+ "description": "Additional references associated with the resource, such as; web sites, documents for additional reading, etc.",
155
+ "translation": {
156
+ "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
157
+ "FGDC CSDGM": ["idinfo > crossref "]
158
+ },
88
159
  "items": {
89
- "$ref": "citation.json#"
160
+ "required": ["citation"],
161
+ "properties": {
162
+ "resourceType": {
163
+ "type": "string",
164
+ "description": "Identifies the type of resource, such as; userGuide, website, report, etc."
165
+ },
166
+ "citation": {
167
+ "$ref": "citation.json#"
168
+ }
169
+ }
90
170
  }
91
171
  }
92
172
  }