From 1f9521011c44a3fb4dcd0e61d6d3e59ab6f27f08 Mon Sep 17 00:00:00 2001 From: JaFeKl Date: Wed, 25 Mar 2026 19:26:48 +0100 Subject: [PATCH 1/3] Update README and pyproject.toml for version 2.0.0 and add test instructions --- README.md | 36 ++++++++++++++++++++++++++++-------- pyproject.toml | 2 +- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 193e52e..8ffad70 100644 --- a/README.md +++ b/README.md @@ -26,20 +26,40 @@ poetry install The package uses a single class named `GraphDB`. To use the interface, simply generate an object from this class: ```python -from graph_db_interface import GraphDB +from graph_db_interface import GraphDB, GraphDBCredentials credentials = GraphDBCredentials( - base_url=, - username= - password= - repository= + base_url="", + username="", + password="", + repository="", ) -myDB = GraphDB( - credentials=credentials -) +my_db = GraphDB(credentials=credentials) ``` +# Running Tests +The test suite expects a running GraphDB instance and uses a dedicated test repository. + +Required environment variables for tests: + +- `GRAPHDB_URL` +- `GRAPHDB_USERNAME` +- `GRAPHDB_PASSWORD` +- `GRAPHDB_TEST_REPOSITORY` + +Example: + +```bash +export GRAPHDB_URL="http://localhost:7200" +export GRAPHDB_USERNAME="admin" +export GRAPHDB_PASSWORD="root" +export GRAPHDB_TEST_REPOSITORY="test-repo" +poetry run pytest tests -v +``` + +Note: application/runtime credentials loaded via `GraphDBCredentials.from_env()` still use `GRAPHDB_REPOSITORY` by default. + # License The package is licensed under the [MIT license](LICENSE). diff --git a/pyproject.toml b/pyproject.toml index b541662..22af2cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "graph-db-interface" -version = "1.2.0" +version = "2.0.0" description = "A simple interface to interact with a GraphDB instance" authors = ["Jan-Felix Klein ", "Nico Brandt ", "Sören Weindel ", "Etienne Hoffmann "] readme = "README.md" From 9068834a8cc560b8cf856333e0a5c15475b0a396 Mon Sep 17 00:00:00 2001 From: Jan-Felix Klein <38248337+JaFeKl@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:15:17 +0100 Subject: [PATCH 2/3] Update Python version badge to 3.12 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ffad70..60722ff 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # graph_db_interface [![PyPI version](https://badge.fury.io/py/graph-db-interface.svg)](https://badge.fury.io/py/graph-db-interface) -![Python](https://img.shields.io/badge/python-%3E=3.9-blue) +![Python](https://img.shields.io/badge/python-%3E=3.12-blue) ![License](https://img.shields.io/github/license/JaFeKl/graph_db_interface) From b6e2b145507e8a7d26d2be85275b1d0adba1c26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weindel?= Date: Thu, 26 Mar 2026 19:06:49 +0100 Subject: [PATCH 3/3] Hotfix bug resulting in excessive logging; Bump version to 2.0.1 --- graph_db_interface/queries/triple_multi.py | 1 - pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/graph_db_interface/queries/triple_multi.py b/graph_db_interface/queries/triple_multi.py index 3e0d130..6879b7d 100644 --- a/graph_db_interface/queries/triple_multi.py +++ b/graph_db_interface/queries/triple_multi.py @@ -181,7 +181,6 @@ def all_triple_exists( Returns: bool: True if all exist, False otherwise. """ - self.logger.setLevel(10) named_graph = IRI(named_graph) if named_graph is not None else self.named_graph if not triples: diff --git a/pyproject.toml b/pyproject.toml index 22af2cf..1b27085 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "graph-db-interface" -version = "2.0.0" +version = "2.0.1" description = "A simple interface to interact with a GraphDB instance" authors = ["Jan-Felix Klein ", "Nico Brandt ", "Sören Weindel ", "Etienne Hoffmann "] readme = "README.md"