-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpygeoapi.config.yml
More file actions
207 lines (201 loc) · 5.99 KB
/
Copy pathpygeoapi.config.yml
File metadata and controls
207 lines (201 loc) · 5.99 KB
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
server:
bind:
host: 0.0.0.0
port: 80
url: http://localhost:5000
mimetype: application/json; charset=UTF-8
encoding: utf-8
gzip: false
language: en-US
cors: true
pretty_print: true
limits:
default_items: 100
max_items: 10000
# templates: /path/to/templates
map:
url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png
attribution: '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia maps</a> | Map data © <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
ogc_schemas_location: /schemas.opengis.net
logging:
level: ERROR
#logfile: /tmp/pygeoapi.log
metadata:
identification:
title: pygeoapi Demo instance - running latest GitHub version
description: pygeoapi provides an API to geospatial data
keywords:
- geospatial
- data
- api
keywords_type: theme
terms_of_service: https://creativecommons.org/licenses/by/4.0/
url: https://github.com/geopython/pygeoapi
license:
name: CC-BY 4.0 license
url: https://creativecommons.org/licenses/by/4.0/
provider:
name: pygeoapi Development Team
url: https://pygeoapi.io
contact:
name: Kralidis, Tom
position: Lead Dev
address: Mailing Address
city: City
stateorprovince: Administrative Area
postalcode: Zip or Postal Code
country: Canada
phone: +xx-xxx-xxx-xxxx
fax: +xx-xxx-xxx-xxxx
email: you@example.org
url: Contact URL
hours: Hours of Service
instructions: During hours of service. Off on weekends.
role: pointOfContact
resources:
places:
type: collection
title: Places
description: Cities around the world and their DBpedia context
keywords:
- sparql
- pygeoapi
- rdf
context:
- name: schema:name
description: schema:description
subjectOf: schema:subjectOf
links:
- type: application/html
rel: canonical
title: data source
href: http://dbpedia.org/
hreflang: en-US
extents:
spatial:
bbox: [-180, -90, 180, 90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: null
end: null
providers:
- type: feature
name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: /pygeoapi_plugins/tests/data/places.csv
id_field: index
geometry:
x_field: lon
y_field: lat
sparql_provider: CSV
sparql_query:
endpoint: https://dbpedia.org/sparql
bind:
name: uri
variable: '?subject'
prefixes:
'': <http://dbpedia.org/resource/>
dbpedia2: <http://dbpedia.org/property/>
dbo: <http://dbpedia.org/ontology/>
where:
- subject: '?subject'
predicate: dbo:populationTotal
object: '?population'
- subject: '?subject'
predicate: dbo:country
object: '?country'
- subject: '?subject'
predicate: '<http://dbpedia.org/property/leaderName>'
object: '?leader'
filter:
- 'FILTER (isIRI(?leader) || (isLiteral(?leader) && (!bound(datatype(?leader)) || datatype(?leader) = xsd:string)))'
populated:
type: collection
title: Populated Places
description: Populated places, public domain and their DBpedia context
keywords:
- sparql
- pygeoapi
- rdf
links:
- type: text/html
rel: canonical
title: information
href: http://www.naturalearthdata.com/
hreflang: en-US
extents:
spatial:
bbox: [-180, -90, 180, 90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: 2011-11-11
end: null # or empty (either means open ended)
providers:
- type: feature
name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: /pygeoapi_plugins/tests/data/ne_110m_populated_places_simple.geojson
id_field: id
sparql_provider: GeoJSON
sparql_query:
endpoint: https://dbpedia.org/sparql
bind:
name: uri
variable: '?subject'
where:
- predicate: 'dbo:populationTotal|dbp:populationCensus'
object: '?population'
- predicate: 'dbpedia2:leaderName|dbp:leaderName'
object: '?leader'
states:
type: collection
title: States
description: U.S. States and their DBpedia context
keywords:
- States
- Census
geojsonld: false
links:
- type: application/html
rel: canonical
title: data source
href: https://www.hydroshare.org/resource/3295a17b4cc24d34bd6a5c5aaf753c50/data/contents/states.gpkg
hreflang: en-US
extents:
spatial:
bbox: [-170, 15, -51, 72]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: null
end: null
providers:
- type: feature
name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: /pygeoapi_plugins/tests/data/states.gpkg
id_field: GEOID
table: states
sparql_provider: SQLiteGPKG
sparql_query:
endpoint: https://dbpedia.org/sparql
bind:
name: ' :NAME'
variable: '?subject'
where:
- predicate: dbp:senators
object: '?senators'
- predicate: 'dbo:motto|dbp:motto'
object: '?motto'
- predicate: dbo:capital
object: '?capital'
- predicate: foaf:homepage
object: '?homepage'
- predicate: foaf:isPrimaryTopicOf
object: '?wikipedia_link'
- predicate: dbp:timezone
object: '?time_zone'
intersector:
type: process
processor:
name: pygeoapi_plugins.process.intersect.IntersectionProcessor
sitemap-generator:
type: process
processor:
name: pygeoapi_plugins.process.sitemap.SitemapProcessor