-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeoblacklight-schema.json
214 lines (214 loc) · 8.57 KB
/
geoblacklight-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Schema for GeoBlacklight. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more details.",
"id": "http://geoblacklight.org/v1.0/schema",
"title": "GeoBlacklight Schema",
"definitions": {
"layer": {
"title": "layer",
"description": "A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bb/099/zb/1450/geoblacklight.json) metadata layer.",
"type": "object",
"required": [
"dc_title_s",
"dc_identifier_s",
"dc_rights_s",
"dct_provenance_s",
"layer_slug_s",
"solr_geom"
],
"properties": {
"uuid": {
"type": "string",
"description": "*DEPRECATED* (use `dc_identifier_s`): Unique identifier for layer that is globally unique.",
"example": "http://purl.stanford.edu/vr593vj7147"
},
"dc_identifier_s": {
"type": "string",
"description": "Unique identifier for layer as a URI. It should be globally unique across all institutions, assumed not to be end-user visible, and is usually of the form `http://institution/id`. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation.",
"example": "http://purl.stanford.edu/vr593vj7147"
},
"dc_title_s": {
"type": "string",
"description": "Title for the layer.",
"example": "My Title"
},
"dc_description_s": {
"type": "string",
"description": "Description for the layer. *Optional*",
"example": "My Description"
},
"dc_rights_s": {
"type": "string",
"enum": [
"Public",
"Restricted"
],
"description": "Access rights for the layer."
},
"dct_provenance_s": {
"type": "string",
"description": "Institution who holds the layer.",
"example": "Stanford"
},
"dct_references_s": {
"type": "string",
"description": "External resources that are available for the layer. The value is a JSON hash where each key is a URI for the protocol or format, and the value is the URL to the external resource. See `dct_references_s` [detailed documentation](http://geoblacklight.org/tutorial/2015/02/09/geoblacklight-overview.html). *Optional*",
"pattern": "\\{.*\\}",
"example": "{ ... }"
},
"georss_box_s": {
"type": "string",
"description": "*DEPRECATED* (use `solr_geom`): Bounding box for the layer, as maximum values for S W N E.",
"example": "12.6 -119.4 19.9 84.8"
},
"layer_id_s": {
"type": "string",
"description": "The complete identifier for the layer via WMS/WFS/WCS protocol. *Optional*",
"example": "druid:vr593vj7147"
},
"layer_geom_type_s": {
"type": "string",
"enum": [
"Point",
"Line",
"Polygon",
"Raster",
"Scanned Map",
"Image",
"Mixed"
],
"description": "Geometry type for layer data, using controlled vocabulary. *Optional*"
},
"layer_modified_dt": {
"type": "string",
"format": "date-time",
"description": "Last modification date for the metadata record, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional*"
},
"layer_slug_s": {
"type": "string",
"description": "Identifies a layer in human-readable keywords. Note this value is visible to the user, and used for Permalinks. The value should be alpha-numeric characters separated by dashes, and is typically of the form `institution-keyword1-keyword2`. It should also be globally unique across all institutions in *your* GeoBlacklight index. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation.",
"pattern": "^[-a-zA-Z0-9]+$",
"example": "stanford-andhra-pradesh-village-boundaries"
},
"solr_geom": {
"type": "string",
"pattern": "ENVELOPE(.*,.*,.*,.*)",
"description": "Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. Note that this field is indexed as a Solr spatial (RPT) field.",
"example": "ENVELOPE(76.76, 84.76, 19.91, 12.62)"
},
"solr_year_i": {
"type": "integer",
"description": "*DEPRECATED* (only used by the Blacklight range plugin, not core GeoBlacklight, and generally you want a multi-valued field here): *Derived from* `dct_temporal_sm`. Year for which layer is valid and only a single value. Note that this field is indexed as a Solr numeric field.",
"example": "1989"
},
"dc_creator_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "Author(s) of the layer. *Optional*",
"example": "George Washington, Thomas Jefferson"
},
"dc_format_s": {
"type": "string",
"description": "File format for the layer, ideally using a controlled vocabulary. *Optional*",
"example": "Shapefile, GeoTIFF, ArcGRID"
},
"dc_language_s": {
"type": "string",
"description": "Language for the layer. *Optional*. Note that future versions of the schema may make this a multi-valued field.",
"example": "English"
},
"dc_publisher_s": {
"type": "string",
"description": "Publisher of the layer. *Optional*",
"example": "ML InfoMap"
},
"dc_subject_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subjects for the layer, preferrably in a controlled vocabulary. *Optional*",
"example": "Census, Human settlements"
},
"dc_type_s": {
"type": "string",
"enum": [
"Dataset",
"Image",
"PhysicalObject"
],
"description": "Resource type of the layer, using DCMI Type Vocabulary, usually a `Dataset`. *Optional*"
},
"dct_spatial_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "Spatial coverage and place names for the layer, preferrably in a controlled vocabulary. *Optional*",
"example": "Paris, San Francisco"
},
"dct_temporal_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "Temporal coverage for the layer, typically years or dates. Note that this field is not in a specific date format. *Optional*",
"example": "1989, circa 2010, 2007-2009"
},
"dct_issued_dt": {
"type": "string",
"format": "date-time",
"description": "Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional*"
},
"dct_isPartOf_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "Holding entity for the layer, such as the title of a collection. *Optional*",
"example": "Village Maps of India"
},
"georss_point_s": {
"type": "string",
"description": "*DEPRECATED* (use `georss_box_s`): Point representation for layer as y, x - i.e., centroid",
"example": "12.6 -119.4"
},
"dc_relation_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "*DEPRECATED* (use `dct_isPartOf_sm`). A reference to a related resource for this layer. *Optional*",
"example": "http://purl.stanford.edu/vr593vj7147"
},
"dc_source_sm": {
"type": "array",
"items": {
"type": "string"
},
"description": "The identity of a layer from which this layer's data was derived. *Optional*",
"example": "stanford-vr593vj7147"
},
"geoblacklight_version": {
"type": "string",
"description": "The version of the GeoBlacklight Schema to which this metadata record conforms.",
"enum": [
"1.0"
]
}
}
}
},
"anyOf": [
{
"$ref": "#/definitions/layer"
}, {
"type": "array",
"items": {
"$ref": "#/definitions/layer"
}
}
]
}