-
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.
Merge branch 'ad-freiburg:main' into improve_code_for_stop
- Loading branch information
Showing
41 changed files
with
2,367 additions
and
659 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,29 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
unit_tests: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
pip install pytest pytest-cov | ||
- name: Test with pytest | ||
run: | | ||
pytest -v |
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,51 @@ | ||
name: Qleverfiles check | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
merge_group: | ||
|
||
jobs: | ||
qleverfiles-check: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-24.04] | ||
|
||
steps: | ||
- name: Checkout the repository for the qlever script | ||
uses: actions/checkout@v3 | ||
with: | ||
path: qlever-control | ||
|
||
- name: Install the script locally | ||
working-directory: ${{github.workspace}}/qlever-control | ||
run: | | ||
# python3 -m pip install --upgrade pip setuptools wheel | ||
# python3 --version | ||
# pip3 --version | ||
# pip3 show setuptools wheel | ||
pip install -e . | ||
- name: Check that all the files in `src/qlever/Qleverfiles` parse. | ||
working-directory: ${{github.workspace}}/qlever-control | ||
run: | | ||
export QLEVER_ARGCOMPLETE_ENABLED=1 | ||
for QLEVERFILE in src/qlever/Qleverfiles/Qleverfile.*; do | ||
echo | ||
echo -e "\x1b[1;34mChecking ${QLEVERFILE}\x1b[0m" | ||
echo | ||
NAME=${QLEVERFILE##*.} | ||
rm -f Qleverfile | ||
qlever setup-config $NAME | ||
qlever get-data --show | ||
qlever index --show | ||
qlever start --show | ||
qlever ui --show | ||
echo | ||
echo -e "\x1b[34mAll checks passed for ${QLEVERFILE}\x1b[0m" | ||
echo | ||
done |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "qlever" | ||
description = "Script for using the QLever SPARQL engine." | ||
version = "0.5.6" | ||
version = "0.5.14" | ||
authors = [ | ||
{ name = "Hannah Bast", email = "[email protected]" } | ||
] | ||
|
@@ -35,3 +35,8 @@ package-data = { "qlever" = ["Qleverfiles/*"] } | |
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["src"] | ||
|
||
[tool.ruff] | ||
line-length = 79 | ||
[tool.ruff.lint] | ||
extend-select = ["I"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Qleverfile for ORKG, use with the QLever CLI (`pip install qlever`) | ||
# | ||
# qlever get-data # Get the dataset | ||
# qlever index # Build index data structures | ||
# qlever start # Start the server | ||
|
||
[data] | ||
NAME = orkg | ||
GET_DATA_URL = https://orkg.org/api/rdf/dump | ||
GET_DATA_CMD = curl -LR -o ${NAME}.ttl ${GET_DATA_URL} 2>&1 | tee ${NAME}.download-log.txt | ||
VERSION = $$(date -r ${NAME}.ttl +%d.%m.%Y || echo "NO_DATE") | ||
DESCRIPTION = The Open Research Knowledge Graph (ORKG) (data from ${GET_DATA_URL}, version ${VERSION}) | ||
|
||
[index] | ||
INPUT_FILES = ${data:NAME}.ttl | ||
CAT_INPUT_FILES = cat ${INPUT_FILES} | ||
SETTINGS_JSON = { "ascii-prefixes-only": false, "num-triples-per-batch": 1000000, "prefixes-external": [""] } | ||
|
||
[server] | ||
PORT = 7053 | ||
ACCESS_TOKEN = ${data:NAME} | ||
MEMORY_FOR_QUERIES = 10G | ||
CACHE_MAX_SIZE = 5G | ||
|
||
[runtime] | ||
SYSTEM = docker | ||
IMAGE = docker.io/adfreiburg/qlever:latest | ||
|
||
[ui] | ||
UI_CONFIG = orkg |
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
Oops, something went wrong.