Skip to content

Research

Black Fox is described in a technical paper. The experiments in the paper are a Jupyter notebook in the repository.

Black Fox: A Provenance-Aware Semantic Knowledge Graph for Operational Interoperability in Apache Kafka Infrastructure. Eoin Jordan, INSIGHT Centre for Data Analytics, University of Galway, 2026.

Read the paper Experiments notebook

To cite Black Fox, use CITATION.cff.

Running the experiments

All experiments run in one process against the embedded RDFLib and SQLite backend, with persistence disabled for timing:

pip install -e '.[experiments]'
jupyter nbconvert --to notebook --execute paper/experiments.ipynb

This regenerates the figures and paper/figures/results.json.

The numbers below are from results.json as committed, generated on 2026-08-01 on one machine. Timings vary between machines and runs. The text of the paper reports an earlier run of E2 with slightly different latencies (13.9 ms to 36.7 ms).

E1: ingestion and triples per observation

400 observations grew the current graph from 90 to 8,093 triples, which is 20 triples per observation. Ingestion ran at 29 observations per second.

E1 ingestion

E2: blast-radius latency against graph size

The blast-radius query is one transitive property path.

Graph triples Resources reached Median latency
705 30 13.6 ms
1,325 60 13.6 ms
2,565 120 15.7 ms
5,045 240 24.0 ms
10,005 480 39.6 ms

E2 blast radius

E3: question router overhead

The experiment times each operation directly and through the router.

Intent Direct Through the router Difference
topology 63.9 ms 61.1 ms -2.8 ms
topic flow 59.1 ms 63.9 ms +4.8 ms
anomalies 0.153 ms 0.170 ms +0.017 ms

For topology and topic flow the difference is within run-to-run noise. The router itself only matches keywords.

E3 router overhead

How the paper maps to the code

Paper section Implementation
5 Ontology ontology/
6 Ingestion and provenance backend/blackfox/services/ingestion.py
7 Deterministic router backend/blackfox/services/query.py
7 Guarded SPARQL backend/blackfox/sparql_guard.py
8 Experiments paper/experiments.ipynb