-
Notifications
You must be signed in to change notification settings - Fork 14
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 test_start_with_mocking
- Loading branch information
Showing
33 changed files
with
1,983 additions
and
477 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
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.8" | ||
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
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.