adiwg-json_schemas 0.5.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ {
2
+ "name":[
3
+ "Alaska State Plane Zone 4",
4
+ "UTM Zone 9"
5
+ ],
6
+ "epsgNumber":[
7
+ 102634,
8
+ 32609
9
+ ],
10
+ "wkt":[
11
+ "PROJCS[\"NAD_1983_StatePlane_Alaska_4_FIPS_5004_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"North_American_Datum_1983\",SPHEROID[\"GRS_1980\",6378137,298.257222101]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",1640416.666666667],PARAMETER[\"False_Northing\",0],PARAMETER[\"Central_Meridian\",-150],PARAMETER[\"Scale_Factor\",0.9999],PARAMETER[\"Latitude_Of_Origin\",54],UNIT[\"Foot_US\",0.30480060960121924],AUTHORITY[\"EPSG\",\"102634\"]]",
12
+ "PROJCS[\"WGS 84 / UTM zone 9N\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",-129],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],PARAMETER[\"false_northing\",0],AUTHORITY[\"EPSG\",\"32609\"],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH]]"
13
+ ]
14
+ }
data/examples/uri.json CHANGED
@@ -11,5 +11,6 @@
11
11
  "news:comp.infosystems.www.servers.unix",
12
12
  "tel:+1-816-555-1212",
13
13
  "telnet://192.0.2.16:80/",
14
- "urn:oasis:names:specification:docbook:dtd:xml:4.1.2"
14
+ "urn:oasis:names:specification:docbook:dtd:xml:4.1.2",
15
+ "http://dx.doi.org/10.1000/182"
15
16
  ]
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module JsonSchemas
3
3
  # Current schema version number
4
- VERSION = "0.5.2"
4
+ VERSION = "0.7.0"
5
5
  end
6
- end
6
+ end
@@ -6,7 +6,7 @@
6
6
  "required": ["title", "date"],
7
7
  "allOf": [
8
8
  {
9
- "$ref": "#/definitions/citationMain"
9
+ "$ref": "#/definitions/citationFull"
10
10
  }
11
11
  ],
12
12
  "definitions": {
@@ -35,7 +35,6 @@
35
35
  }
36
36
  }
37
37
  },
38
-
39
38
  "responsibleParty": {
40
39
  "type": "array",
41
40
  "minItems": 1,
@@ -43,7 +42,6 @@
43
42
  "$ref": "contact.json#/definitions/contactRef"
44
43
  }
45
44
  },
46
-
47
45
  "onlineResource": {
48
46
  "type": "array",
49
47
  "items": {
@@ -52,9 +50,9 @@
52
50
  }
53
51
  }
54
52
  },
55
- "citationMain": {
53
+ "citationFull": {
56
54
  "type": "object",
57
- "title": "citation",
55
+ "title": "full citation",
58
56
  "properties": {
59
57
  "edition": {
60
58
  "type": "string"
@@ -65,18 +63,10 @@
65
63
  "type": "string"
66
64
  }
67
65
  },
68
- "additionalIdentifier": {
69
- "type": "object",
70
- "properties": {
71
- "doi": {
72
- "type": "string"
73
- },
74
- "isbn": {
75
- "type": "string"
76
- },
77
- "issn": {
78
- "type": "string"
79
- }
66
+ "identifier": {
67
+ "type": "array",
68
+ "items": {
69
+ "$ref": "#/definitions/identifier"
80
70
  }
81
71
  }
82
72
  },
@@ -86,21 +76,22 @@
86
76
  }
87
77
  ]
88
78
  },
89
- "resourceIdentifier": {
90
- "title": "resource identifier",
91
- "description": "Assigned identifier for a resource, based on citation",
79
+ "identifier": {
80
+ "title": "identifier",
81
+ "description": "Assigned identifier for a resource.",
92
82
  "type": "object",
93
83
  "required": ["identifier"],
94
84
  "properties": {
95
85
  "identifier": {
96
86
  "type": "string"
97
- }
98
- },
99
- "allOf": [
100
- {
87
+ },
88
+ "type": {
89
+ "type": "string"
90
+ },
91
+ "authority": {
101
92
  "$ref": "#/definitions/citationBase"
102
93
  }
103
- ]
94
+ }
104
95
  }
105
96
  }
106
97
  }
@@ -106,7 +106,7 @@
106
106
  "verticalExtent": {
107
107
  "type": "object",
108
108
  "additionalProperties": false,
109
- "required": ["minimumValue", "maximumValue", "verticalCRSTitle", "verticalCRSLink"],
109
+ "required": ["minimumValue", "maximumValue", "verticalCRSTitle", "verticalCRSUri"],
110
110
  "properties": {
111
111
  "minimumValue": {
112
112
  "type": "number"
@@ -117,8 +117,8 @@
117
117
  "verticalCRSTitle": {
118
118
  "type": "string"
119
119
  },
120
- "verticalCRSLink": {
121
- "type": "string"
120
+ "verticalCRSUri": {
121
+ "$ref": "../schema.json#/definitions/uri"
122
122
  }
123
123
  }
124
124
  }
@@ -78,6 +78,9 @@
78
78
  "properties": {
79
79
  "$ref": "#/definitions/featureProperties"
80
80
  },
81
+ "id": {
82
+ "type": ["string", "number"]
83
+ },
81
84
  "features": {
82
85
  "type": "array",
83
86
  "items": {
@@ -122,10 +125,10 @@
122
125
  "featureAcquisitionMethod": {
123
126
  "type": "string"
124
127
  },
125
- "assignedId": {
128
+ "identifier": {
126
129
  "type": "array",
127
130
  "items": {
128
- "$ref": "../citation.json#/definitions/resourceIdentifier"
131
+ "$ref": "../citation.json#/definitions/identifier"
129
132
  }
130
133
  }
131
134
  }
@@ -3,7 +3,7 @@
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "description": "schema for browse graphic",
5
5
  "type": "object",
6
- "required": ["fileName"],
6
+ "required": ["fileName"],
7
7
  "additionalProperties": true,
8
8
  "properties": {
9
9
  "fileName": {
@@ -15,8 +15,8 @@
15
15
  "fileType": {
16
16
  "type": "string"
17
17
  },
18
- "fileLink": {
19
- "$ref": "../schema.json#/definitions/url"
18
+ "fileUri": {
19
+ "$ref": "../schema.json#/definitions/uri"
20
20
  }
21
21
  }
22
22
  }
@@ -17,21 +17,7 @@
17
17
  "type": "string"
18
18
  },
19
19
  "thesaurus": {
20
- "$ref": "#/definitions/thesaurus"
21
- }
22
- },
23
- "definitions": {
24
- "thesaurus": {
25
- "type": "object",
26
- "additionalProperties": false,
27
- "properties": {
28
- "thesaurusLink": {
29
- "$ref": "../schema.json#/definitions/url"
30
- },
31
- "citation": {
32
- "$ref": "citation.json#/definitions/citationMain"
33
- }
34
- }
20
+ "$ref": "citation.json#/definitions/citationFull"
35
21
  }
36
22
  }
37
23
  }
@@ -79,12 +79,6 @@
79
79
  },
80
80
  "metadataCitation": {
81
81
  "$ref": "citation.json#"
82
- },
83
- "resourceIdentifier": {
84
- "type": "array",
85
- "items": {
86
- "$ref": "citation.json#/definitions/resourceIdentifier"
87
- }
88
82
  }
89
83
  }
90
84
  }
@@ -15,9 +15,6 @@
15
15
  "protocol": {
16
16
  "type": "string"
17
17
  },
18
- "doi": {
19
- "type": "string"
20
- },
21
18
  "description": {
22
19
  "type": "string"
23
20
  },
@@ -9,12 +9,6 @@
9
9
  "citation": {
10
10
  "$ref": "citation.json#"
11
11
  },
12
- "resourceIdentifier": {
13
- "type": "array",
14
- "items": {
15
- "$ref": "citation.json#/definitions/resourceIdentifier"
16
- }
17
- },
18
12
  "pointOfContact": {
19
13
  "type": "array",
20
14
  "minItems": 1,
@@ -122,11 +116,32 @@
122
116
  "taxonomy": {
123
117
  "$ref": "taxonomy.json"
124
118
  },
125
- "spatialDatum": {
119
+ "spatialReferenceSystem": {
126
120
  "description": "Description of the spatial and temporal reference systems used in the dataset.",
127
- "type": "array",
128
- "items": {
129
- "type": "string"
121
+ "example": "../../examples/spatialRef.json",
122
+ "type": "object",
123
+ "properties": {
124
+ "name": {
125
+ "type": "array",
126
+ "description": "A recognized reference system name.",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "epsgNumber": {
132
+ "type": "array",
133
+ "description": "The EPSG Geodetic Parameter Dataset of the reference system, see epsg-registry.org.",
134
+ "items": {
135
+ "type": "integer"
136
+ }
137
+ },
138
+ "wkt": {
139
+ "type": "array",
140
+ "description": "Well-known text representation of the reference system.",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ }
130
145
  }
131
146
  },
132
147
  "spatialRepresentation": {