An auditable, policy-gated, supply-chain–traceable Git repository for RDF/OWL/JSON-LD ontologies and semantic web assets used across the SocioProphet stack.
This repo is designed to support:
- Repeatable builds of ontology distributions (
dist/) from source ontologies. - Deterministic hashing + an append-only ledger (
ledger/ledger.csv) for audit. - Artifact signing (COSE_Sign1) for
dist/*artifacts. - SHACL gates for structural and policy constraints (promotion checks).
- A machine-readable catalog/registry that enumerates modules, SemVer, status, and compatibility notes.
- A layered ontology architecture: Upper, Middle, Lower, plus product/platform modules (Platform / SourceOS / Genesis / Inception / Twin / Mesh), and the Prophet CLI ontology.
Base IRI (recommended): https://socioprophet.github.io/ontogenesis/
Upper/— high-level concepts (foundational primitives and alignments)Middle/— general concepts (systems, governance, provenance, policy, capabilities)Lower/— atomic bindings to on-device data/services/IO (files, processes, ports, k8s, packages)Domains/— domain modules (health/FHIR, cyber, metadata, math, etc.)Platform/— platform modules (SourceOS, Genesis, Inception, Twin, Mesh)prophet/— Prophet CLI & system architecture ontology + SHACL gatesepi/— Epi‑Onto‑Learning (Noetherian + quantum lane + publishing provenance)catalog/—registry.ttl+registry.jsonld(machine-readable module index)imports/— curated external ontologies (pin-and-fetch manifest)shapes/— SHACL policy bundles (gates)contexts/— JSON-LD contexts + frames for strict round-trip testsscripts/— build, audit, sign, verify, SBOM/SPDXdist/andaudit/— generated only (CI/build outputs); no direct edits
python -m venv .venv && source .venv/bin/activate
pip install -r requirements-dev.txt
python scripts/validate_rdf.py
python scripts/shacl_gate.py
python scripts/jsonld_roundtrip.py
python scripts/build_dist.py
python scripts/ledger_build.py
python scripts/ledger_verify.pyOn a tag v*, CI will:
- Build
dist/deterministically (SOURCE_DATE_EPOCHfixed). - Validate RDF + SHACL gates.
- Build/verify
ledger/ledger.csv. - COSE-sign each
dist/*and record signature URIs in the ledger. - Emit a minimal SPDX SBOM (
sbom/spdx.json) with checksums.
dist/andaudit/are generated only.- Changes under
Upper/,Middle/,Lower/,Domains/,Platform/,prophet/,epi/must be accompanied byscripts/build_dist.py+scripts/ledger_build.pyoutput changes. - Promotion gates are enforced via SHACL bundles in
shapes/.
See docs/ for the design plan and module map.