-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Qleverfile for osm-planet + more goodies
1. A random alphanumerical string is now appended automatically to the ACCESS_TOKEN when the Qleverfile is copied to the cwd 2. Values can now be of the form $$(...), in which case the ... part is evaluated and the values becomes the result of that evluation
- Loading branch information
Hannah Bast
committed
Mar 10, 2024
1 parent
7dc784a
commit b4d7daf
Showing
5 changed files
with
96 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Qleverfile for OSM Planet, use with the qlever script (pip install qlever) | ||
# | ||
# qlever get-data # takes ~50 mins to download .ttl.bz2 file of ~ 300 GB | ||
# qlever index # takes ~12 hours and ~20 GB RAM (on an AMD Ryzen 9 5900X) | ||
# qlever start # takes a few seconds | ||
# | ||
# For the OSM data of a single country, do `qlever setup-config osm-country` | ||
# and edit the Qleverfile to specify the country, | ||
|
||
[data] | ||
NAME = osm-planet | ||
DATA_URL = https://osm2rdf.cs.uni-freiburg.de/ttl/planet.osm.ttl.bz2 | ||
GET_DATA_CMD = curl --location --fail --continue-at - --remote-time --output ${NAME}.ttl.bz2 ${DATA_URL} | ||
VERSION = $$(date -r ${NAME}.ttl.bz2 +"%d.%m.%Y") | ||
DESCRIPTION = OSM Planet, data from ${DATA_URL} version ${VERSION} (complete OSM data, with GeoSPARQL predicates ogc:sfContains and ogc:sfIntersects) | ||
|
||
[index] | ||
INPUT_FILES = ${data:NAME}.ttl.bz2 | ||
CAT_INPUT_FILES = lbzcat -f -n 2 ${INPUT_FILES} | ||
WITH_TEXT = false | ||
STXXL_MEMORY = 20G | ||
SETTINGS_JSON = { "languages-internal": [], "prefixes-external": [""], "ascii-prefixes-only": false, "num-triples-per-batch": 5000000 } | ||
|
||
[server] | ||
PORT = 7007 | ||
ACCESS_TOKEN = ${data:NAME} | ||
MEMORY_FOR_QUERIES = 90G | ||
CACHE_MAX_SIZE = 40G | ||
CACHE_MAX_SIZE_SINGLE_ENTRY = 30G | ||
TIMEOUT = 300s | ||
|
||
[runtime] | ||
SYSTEM = docker | ||
IMAGE = docker.io/adfreiburg/qlever:latest | ||
|
||
[ui] | ||
UI_PORT = 7000 | ||
UI_CONFIG = osm-planet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters