Mouseworld Knowledge Graph

July 15, 2025 ยท View on GitHub

This repository contains the Apache Camel routes used to deploy a twin network based on the Mouseworld Knowledge Graph. This knowledge graph is aligned with the MW Ontology.

The figure below depicts the pipelines that implement semantic lifting of data sources from the real network and semantic lowering to data consumers of the twin network.

KG Pipelines

Before executing the Camel routes, deploy GraphDB container:

docker container run --rm -it -p 7200:7200 \
  -v ./graphdb/data:/opt/graphdb/home \
  -v ./graphdb/imports:/root/graphdb-import \
  ontotext/graphdb:10.8.9

Once GraphDB has started, make sure to create a repository in the database.

curl -X POST \
  http://localhost:7200/rest/repositories \
  -H "Content-Type: multipart/form-data" \
  -F "config=@graphdb/init/config.ttl"

Now, you can execute each Camel route using JBang:

jbang camel@apache/camel run route.yaml --camel-version=4.10.0 --dep=mvn:com.cefriel:camel-chimera-mapping-template:4.5.0