OKF v0.2 graph projection profile

Historical document. This plan is preserved from source revision 61e75e9; it is not current implementation guidance. Original source.

1. Objective

Extend graph with projections of provenance, trust, lifecycle, and Attested Computation without presenting the project-specific RDF/JSON-LD vocabulary as part of upstream OKF.

Dependencies: task09.md, task10.md.

2. Contract boundary

The upstream SPEC does not define a JSON-LD context, RDF ontology, or graph ABI. The current https://okf.io/ontology/v0.1# is a toolkit contract, not a normative part of OKF.

Before changing the namespace, create an ADR and a versioned projection contract:

3. API

Preserve existing Render* wrappers for compatibility and add an options/profile API:

graph receives typed data from bundle; it does not parse raw YAML again.

4. Projection

JSON-LD and N-Triples must be able to express:

Preserve unknown runtimes/parameter types as literals. Do not convert unknown frontmatter into invented predicates; if needed, provide a separate lossless raw/frontmatter extension payload only in a documented profile.

5. Edges and extensions

Text/DOT/Mermaid may retain topology-only output; add metadata annotations only through an explicit option to avoid breaking snapshots.

6. Determinism

7. Files

8. Tests

All tests use AAA.

9. Acceptance criteria

10. Out of scope

Official ontology standardization, runtime execution/attestation, semantic score, network dereferencing, and inference of new relation types from prose.