-
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.
Addresses #27
- Loading branch information
Hannah Bast
committed
Feb 24, 2024
1 parent
1761afc
commit 5d565c5
Showing
1 changed file
with
42 additions
and
0 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,42 @@ | ||
# Qleverfile for WikiPathways, use with https://github.com/ad-freiburg/qlever-control | ||
# | ||
# qlever get-data # downloads .gz file of size ~100 MB (as of 24.02.2024) | ||
# qlever index # takes ~20 seconds and little RAM (on an AMD Ryzen 9 5900X) | ||
# qlever start # starts the server (takes around 2 minutes) | ||
# | ||
# Limitations: does not include the ontologies (WP, GPML, ChEBI, PW, CLO, ...) yet | ||
|
||
[data] | ||
NAME = wikipathways | ||
RELEASE = 20231210 | ||
GET_DATA_URL = https://data.wikipathways.org/${RELEASE}/rdf | ||
GET_DATA_CMD = wget -O wikipathways-rdf-void.ttl ${GET_DATA_URL}/wikipathways-${RELEASE}-rdf-void.ttl && \ | ||
wget ${GET_DATA_URL}/wikipathways-${RELEASE}-rdf-wp.zip && \ | ||
unzip -qq -c wikipathways-${RELEASE}-rdf-wp.zip -x wp/wpOntology.ttl > wikipathways-rdf-wp.ttl && \ | ||
wget ${GET_DATA_URL}/wikipathways-${RELEASE}-rdf-gpml.zip && | ||
unzip -qq -c wikipathways-${RELEASE}-rdf-gpml.zip -x gpml/gpmlOntology.ttl > wikipathways-rdf-gpml.ttl && \ | ||
wget ${GET_DATA_URL}/wikipathways-${RELEASE}-rdf-authors.zip && \ | ||
unzip -qq -c wikipathways-${RELEASE}-rdf-authors.zip > wikipathways-rdf-authors.ttl && \ | ||
cat wikipathways-rdf-*.ttl | grep ^@prefix | tr -s ' ' | sort -u > ${NAME}.prefix-definitions | ||
INDEX_DESCRIPTION = WikiPathways RDF, from ${GET_DATA_URL} | ||
TEXT_DESCRIPTION = All literals, search with FILTER KEYWORDS(?text, "...") | ||
|
||
[index] | ||
FILE_NAMES = ${data:NAME}.prefix-definitions wikipathways-rdf-wp.ttl wikipathways-rdf-gpml.ttl wikipathways-rdf-void.ttl wikipathways-rdf-authors.ttl | ||
CAT_FILES = cat ${FILE_NAMES} | ||
SETTINGS_JSON = { "ascii-prefixes-only": false, "num-triples-per-batch": 1000000, "prefixes-external": [""] } | ||
WITH_TEXT_INDEX = from_literals | ||
|
||
[server] | ||
PORT = 7040 | ||
ACCESS_TOKEN = ${data:NAME}_7643543846 | ||
MEMORY_FOR_QUERIES = 5G | ||
WITH_TEXT_INDEX = from_literals | ||
|
||
[docker] | ||
USE_DOCKER = true | ||
IMAGE = adfreiburg/qlever | ||
|
||
[ui] | ||
PORT = 7000 | ||
CONFIG = wikipathways |