Black Fox¶
Black Fox is an operational knowledge graph for streaming infrastructure. Collectors send observations to an HTTP API. The service stores resources and relationships as RDF, records where each observation came from, and stores metrics in SQLite or Apache Cassandra. You query the result with SPARQL or with a small set of fixed questions.
Apache Kafka is the first domain: clusters, brokers, topics, consumer groups, applications and the teams that own them. Black Fox describes the infrastructure. It reads metadata and does not consume the messages in your topics.
Status¶
Version 0.1.0 is a runnable reference implementation. It is not hardened for production. The security page lists the controls that are missing.
Who it is for¶
- Platform and SRE teams that run Kafka and need to answer ownership, dependency and impact questions across clusters, applications and teams.
- People who work with RDF, SPARQL, SHACL and PROV-O and want an operational dataset with provenance to build on.
What works today¶
Checked against the code on 2026-11-10.
| Area | State |
|---|---|
| Embedded mode | RDFLib and SQLite in one process. No external services. Starts with a sample Kafka estate of 17 resources and 21 relationships. |
| REST API | Health, topology, topic flow, latest metrics, metric history, anomalies, question router, SPARQL and observation ingestion. Covered by the test suite. |
| Browser UI | Overview, topology view, SPARQL form and question form. Static files with no build step. Shows bundled sample data when no backend answers. |
| SPARQL | SELECT and ASK only. Updates, SERVICE, FROM and FROM NAMED are rejected. |
| Question router | Keyword rules that map a question to one of four operations: topology, topic flow, consumer lag and anomalies. No language model. |
| Anomalies | Fixed thresholds on consumer lag, disk utilisation, under-replicated partitions and error rate. |
| Ingestion | POST /api/v1/observations writes resources, relationships and a provenance record to RDF, and metrics to the metric store. Requires sign-in. |
| Sign-in | GitHub OAuth with an allow-list for write endpoints. Reads are public. |
| Kafka Admin collector | Reads cluster, broker, topic and partition leader metadata with confluent-kafka. Not run against a live cluster in the test suite. |
| Fuseki and Cassandra | Adapters and a Docker Compose profile are included. They are not covered by the automated tests. |
| Ontology | Five Turtle modules, SHACL shapes and a JSON-LD context. |
Known gaps¶
- Collectors can sign in to a local server through the development login only. There is no collector credential for a deployment that uses GitHub sign-in.
- The SHACL shapes are shipped but the service does not validate incoming data against them.
- Relationships are never expired. The graph keeps the last observed state.
- The sample data and the ingestion path build resource IRIs differently, so an ingested observation of a sample resource creates a second node.
- Kafka is the only domain with a collector. The core vocabulary has classes for hosts, Kubernetes nodes, applications and teams, but nothing collects them yet.
License¶
Black Fox is dual-licensed: AGPL-3.0-only for the community edition, and a commercial license for hosted or embedded use without the AGPL obligations.