Implementation: P1.2 Knowledge Graph Reasoning (Offline OWL RL Materialization)

Scope

Offline reasoning + validation + artifact publishing pipeline that works locally and in CI, with minimal runtime changes (load precomputed inferred triples). Runtime inference stays rdfs, SHACL remains pyshacl, and offline reasoning is forward-chaining (OWL RL subset via Jena OWL Mini reasoner).

Non-negotiable constraints (project-aligned)

Inputs

Outputs (artifacts)

Generated under artifacts/kg/<GIT_SHA>/:

Implementation (current)

Local usage

Run end-to-end pipeline:

1
just reason-materialize

Optional environment overrides:

Runtime loading support

The Knowledge Graph service loads precomputed artifacts when configured:

Startup logs include triple counts per file and the manifest.json sha256 if present.

CI integration

Determinism and guardrails