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.
- checksums.yaml +4 -4
- data/examples/extent_point.json +39 -13
- data/examples/extent_polygon.json +4 -4
- data/examples/full_example.json +195 -156
- data/examples/full_example2.json +2278 -0
- data/examples/geojson.json +428 -235
- data/examples/keywords.json +45 -40
- data/examples/lcc_project_example.json +266 -203
- data/examples/onlineResource.json +1 -2
- data/examples/resourceInfo.json +1015 -1045
- data/examples/spatialRef.json +14 -0
- data/examples/uri.json +2 -1
- data/lib/adiwg/json_schemas/version.rb +2 -2
- data/schema/schema/citation.json +16 -25
- data/schema/schema/extent.json +3 -3
- data/schema/schema/geojson/geojson.json +5 -2
- data/schema/schema/graphicOverview.json +3 -3
- data/schema/schema/keyword.json +1 -15
- data/schema/schema/metadata.json +0 -6
- data/schema/schema/onlineResource.json +0 -3
- data/schema/schema/resourceInfo.json +25 -10
- data/templates/adiwg_metadata_template.json +263 -148
- data/test/tc_schemas.rb +132 -122
- data/test/tc_utils.rb +1 -1
- metadata +4 -2
@@ -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
data/schema/schema/citation.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"required": ["title", "date"],
|
7
7
|
"allOf": [
|
8
8
|
{
|
9
|
-
"$ref": "#/definitions/
|
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
|
-
"
|
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
|
-
"
|
69
|
-
"type": "
|
70
|
-
"
|
71
|
-
"
|
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
|
-
"
|
90
|
-
"title": "
|
91
|
-
"description": "Assigned identifier for a resource
|
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
|
-
|
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
|
}
|
data/schema/schema/extent.json
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
"verticalExtent": {
|
107
107
|
"type": "object",
|
108
108
|
"additionalProperties": false,
|
109
|
-
"required": ["minimumValue", "maximumValue", "verticalCRSTitle", "
|
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
|
-
"
|
121
|
-
"
|
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
|
-
"
|
128
|
+
"identifier": {
|
126
129
|
"type": "array",
|
127
130
|
"items": {
|
128
|
-
"$ref": "../citation.json#/definitions/
|
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
|
-
"
|
19
|
-
"$ref": "../schema.json#/definitions/
|
18
|
+
"fileUri": {
|
19
|
+
"$ref": "../schema.json#/definitions/uri"
|
20
20
|
}
|
21
21
|
}
|
22
22
|
}
|
data/schema/schema/keyword.json
CHANGED
@@ -17,21 +17,7 @@
|
|
17
17
|
"type": "string"
|
18
18
|
},
|
19
19
|
"thesaurus": {
|
20
|
-
"$ref": "#/definitions/
|
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
|
}
|
data/schema/schema/metadata.json
CHANGED
@@ -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
|
-
"
|
119
|
+
"spatialReferenceSystem": {
|
126
120
|
"description": "Description of the spatial and temporal reference systems used in the dataset.",
|
127
|
-
"
|
128
|
-
"
|
129
|
-
|
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": {
|