Skip to content

Installation

The tool requires Python 3.11, 3.12, or 3.13.

Clone the repository and install with uv:

Terminal window
git clone https://github.com/arcangelo7/knowledge-graphs-inversion.git
Terminal window
cd knowledge-graphs-inversion
Terminal window
uv sync

Conformance tests and benchmarks also require Docker for the PostgreSQL databases, and the git submodules:

Terminal window
git submodule update --init --recursive

The library pulls in a few things worth knowing about:

  • morph-kgc parses R2RML mapping documents into an internal representation the algorithm operates on.
  • pyoxigraph provides the in-memory RDF store and SPARQL engine for local graph queries.
  • pandas handles tabular data throughout the pipeline.
  • SQLAlchemy manages database connections when writing output to SQL databases.