Dependencies and containers¶
KGpipe installs as a Python package. Tasks that wrap external tools then call a Docker daemon on the same machine. The package install and those images are separate requirements.
Python¶
Supported Python is 3.12 or newer (requires-python in pyproject.toml).
Install from a lockfile so the resolution stays reproducible:
uv sync --locked --no-dev
uv run --locked --no-dev kgpipe --help
That core install includes the docker Python package and does not install PyTorch, transformers, or sentence-transformers. Importing KGpipe does not load those modules.
Optional extras:
| Extra | What it adds | Install |
|---|---|---|
ml |
transformers, sentence-transformers |
combined with cpu or cuda below |
cpu |
CPU PyTorch wheels from the PyTorch CPU index | uv sync --locked --no-dev --extra ml --extra cpu |
cuda |
CUDA PyTorch wheels from the PyTorch CUDA index, including nvidia-* |
uv sync --locked --no-dev --extra ml --extra cuda |
cpu and cuda conflict. Install one of them. The CUDA extra is large; the install workflow runs it only when requested.
.github/workflows/install.yml repeats these three installs in empty environments. Core and ml+cpu run on pull requests. ml+cuda runs from a manual workflow dispatch with the CUDA option enabled.
Docker daemon¶
Docker-backed tasks use the host daemon through the Docker SDK (docker.from_env()). KGpipe does not need to run inside a container for that, and mounting a Docker socket into a KGpipe container is not required.
The process that launches a task must be able to reach the daemon. Volume paths are the paths that process sees, because the daemon bind-mounts them as given.
Tool images¶
The images below are referenced by code under src/. They are not published with KGpipe, and the tags are floating :latest values. Build or load each image locally before running the task that uses it. A missing image fails that task; it does not affect kgpipe --help or the core install.
Experiments under experiments/ may reference further images. Those are outside this inventory.
src/kgpipe/test/test_container_images.py parses the table between the markers and fails when a docker_client or run_docker_container_task call in src/ uses an image, or a call site, that the table does not list.
| Image | Call sites | How to obtain |
|---|---|---|
kgt/agreementmaker:latest |
agreementmaker_ontology_matching in kgpipe_tasks/schema_alignment/ontology_matching/agreementmaker_matching.py |
Build or load locally. Not published with KGpipe. |
kgt/corenlp:latest |
corenlp_openie_extraction in kgpipe_tasks/text_processing/text_extraction/corenlp_extraction.py |
Build or load locally. Not published with KGpipe. |
kgt/paris:latest |
paris_entity_matching in kgpipe_tasks/entity_resolution/matcher/paris_rdf_matcher.py |
Build or load locally. Not published with KGpipe. |
kgt/pellet:latest |
ReasoningMetric.compute in kgpipe/evaluation/aspects/semantic.py |
Build or load locally. Not published with KGpipe. |
kgt/pyjedai:latest |
pyjedai_entity_matching, pyjedai_entity_matching_v2 in kgpipe_tasks/entity_resolution/matcher/jedai_tab_matcher.py |
Build or load locally. Not published with KGpipe. |
kgt/valentine:latest |
valentine_csv_matching, valentine_csv_matching_v2 in kgpipe_tasks/schema_alignment/schema_matching/valentine_schema_matching.py |
Build or load locally. Not published with KGpipe. |
kgtool/corenlp:latest |
corenlp_kbp_extraction in kgpipe_tasks/text_processing/ner/corenlp_ner.py |
Build or load locally. Not published with KGpipe. |
kgtool/limes:latest |
limes_rdf_matching in kgpipe_tasks/schema_alignment/ontology_matching/limes_matching.py |
Build or load locally. Not published with KGpipe. |
kgtool/rebel:latest |
rebel_extraction in kgpipe_tasks/text_processing/text_extraction/rebel_extraction.py |
Build or load locally. Not published with KGpipe. |
A public-image smoke test (pytest -m docker) checks that docker_client can start a container and read a bind-mounted file. It pulls alpine:3.20 and skips when no daemon is reachable. It does not run PARIS or the other tool images.