OKF Import, Export, and Verify
dkg okf maps Google Open Knowledge Format bundles into named per-concept Knowledge Assets. Import uses the normal lifecycle: create, write, finalize, optional share. It never publishes directly to Verifiable Memory.
Start with the worked OKF tutorial for a supplied bundle, expected query result, and export workflow. The commands below are the detailed reference for this source revision; inspect dkg okf <command> --help on an older installed release.
Import
dkg okf import ./bundle --context-graph-id okf-demo --create-context-graph
dkg okf import ./bundle --context-graph-id okf-demo --share
dkg okf import ./bundle --context-graph-id private-okf --private --create-context-graphImportant flags:
--context-graph-id <id>
Target context graph
--create-context-graph
Create the context graph if needed
--share
Share imported per-concept KAs to SWM after WM import/finalize
--replace
Replace existing imported concept assets
--manifest <path>
Resume or inspect staged import progress from a custom manifest
--private
Create/use a private context graph for imports
--sub-graph-name <name>
Import into a registered sub-graph
--relate <predicate>
Override relation mapping for concept links
--dry-run / --print-nquads
Validate and print deterministic RDF without mutating the node
Private allowlisting currently uses the OKF command's implemented flags. The broader product decision about exposing --allowed-agent alongside or instead of --allowed-peer remains open.
Export
Export reads a context graph view and writes an OKF bundle to the output directory. Use export views to choose Working Memory, Shared Working Memory, or Verifiable Memory.
Verify
Verify compares the deterministic RDF expected from the local OKF bundle with triples currently visible from the node. Without --sub-graph-name, it retains the existing context-graph read including SWM. With the flag, every count and missing-concept query reads only that sub-graph's SWM, using the same scope as export. Match the scope and mapping flags used for import:
VM Capstone
After an OKF import has been shared to SWM, publish selected named KAs explicitly:
There is no OKF import-and-publish one-shot.
Last updated
Was this helpful?