@trailstash/ultra 3.8.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Examples/qlever.ultra
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Query OSM using QLever
|
|
3
|
-
description: Load OSM data from the QLever osm-planet dataset.
|
|
3
|
+
description: Load OSM data from the QLever osm-planet dataset.
|
|
4
4
|
type: sparql
|
|
5
|
+
server: https://qlever.cs.uni-freiburg.de/api/osm-planet
|
|
5
6
|
options:
|
|
6
7
|
zoom: -0.1
|
|
7
8
|
center: [0, 30]
|
package/docs/yaml.md
CHANGED
|
@@ -17,7 +17,7 @@ style: https://example.com/style.json
|
|
|
17
17
|
|
|
18
18
|
## `server`
|
|
19
19
|
|
|
20
|
-
Use a different Overpass
|
|
20
|
+
Use a different Overpass or SPARQL server.
|
|
21
21
|
|
|
22
22
|
Example:
|
|
23
23
|
|
|
@@ -131,8 +131,9 @@ Detected if:
|
|
|
131
131
|
|
|
132
132
|
### `sparql`
|
|
133
133
|
|
|
134
|
-
Make a [GeoSPARQL](https://www.ogc.org/publications/standard/geosparql/) query to load data.
|
|
135
|
-
|
|
134
|
+
Make a [GeoSPARQL](https://www.ogc.org/publications/standard/geosparql/) query to load data.
|
|
135
|
+
|
|
136
|
+
**Note:** requrires you to specify a [server](#server).
|
|
136
137
|
|
|
137
138
|
Examples:
|
|
138
139
|
|
|
@@ -21,7 +21,7 @@ const OSM_SERVERS = new Set([
|
|
|
21
21
|
|
|
22
22
|
const source = async function (query, controller, { server, bounds }) {
|
|
23
23
|
if (!server) {
|
|
24
|
-
server
|
|
24
|
+
throw new Error("No SPARQL server endpoint specified");
|
|
25
25
|
}
|
|
26
26
|
const resp = await fetch(server, {
|
|
27
27
|
method: "POST",
|
package/package.json
CHANGED