Skip to content

Run the pipeline

Run BioKb-IPNI

From command line

For sure the simplest way is to run all steps. After installation (see Installation) just run:

biokb_ipni import-data
biokb_ipni create-ttls

Before importing into Neo4J, make sure Neo4J is running (see below "How to run Neo4J").

Then import into Neo4J:

biokb_ipni import-neo4j -p neo4j_password

http://localhost:7474 (user/password: neo4j/neo4j_password)

For more options see the CLI options section below.

As RESTful API server

Usage: biokb_ipni run-server [OPTIONS]

biokb_ipni run-server
  • user: admin
  • password: admin
Option long Description default
-P --port API server port 8000
-u --user API username admin
-p --password API password admin

http://localhost:8000/docs#/

  1. Import data
  2. Export ttls
  3. Run Neo4J (see below "How to run Neo4J")
  4. Import Neo4J

Be patient, each step takes several minutes.

As Podman/Docker container

For docker just replace podman with docker in the commands below.

Build & run with Podman:

git clone https://github.com/biokb/biokb_ipni.git
cd biokb_ipni
podman build -t biokb_ipni_image .
podman run -d --rm --name biokb_ipni_simple -p 8000:8000 biokb_ipni_image
  • Login: admin
  • Password: admin

With environment variable for user and password for more security:

podman run -d --rm --name biokb_ipni_simple -p 8000:8000 -e API_PASSWORD=your_secure_password -e API_USER=your_secure_user biokb_ipni_image

http://localhost:8000/docs

On the website: 1. Import data 2. Export ttls

Neo4j import in this context is not possible because Neo4J is not running in the same network as service, but the exported turtles can be imported into any Neo4J instance using the CLI (biokb_ipni import-neo4j).

to stop the container:

podman stop biokb_ipni_simple

to rerun the container:

podman start biokb_ipni_simple

As Podman/Docker networked containers

If you have docker or podman on your system, the easiest way to run all components (relational database, RESTful API server, phpMyAdmin GUI) is to use networked containers with podman-compose/docker-compose.

git clone https://github.com/biokb/biokb_ipni.git
cd biokb_ipni
podman-compose -f docker-compose.yml --env-file .env_template up -d

http://localhost:8000/docs

On the website: 1. Import data 2. Export ttls 3. Import Neo4J

stop with:

docker stop biokb_ipni

rerun with:

docker start biokb_ipni

Tip: Change the default passwords in the .env_template file before starting the containers for better security.