Expand description
KG export / import — portable JSON archive for namespace-scoped knowledge graphs.
Embeddings are excluded (regenerable from text + model). Edges are collected by querying all entity IDs in the namespace first, then fetching incident edges.
Structs§
- Exported
Edge - A directed edge record in the portable archive.
- Exported
Entity - An entity record in the portable archive.
- Import
Conflict Summary - Import
Options - Opt-in CLI behavior; this does not change
import_kgor its JSON/policy wrappers. - Import
Policy Skipped Edge - Import
Skipped Edge - One skipped archive edge, retaining its identity and endpoint-contract error.
- Import
Summary - Outcome of a successful import operation.
- Import
Validation - Pure preflight result. Unknown kinds are distinct and in first-record order. Preflight emits no warnings and opens no destination store.
- KgArchive
- Portable JSON archive of a namespace-scoped knowledge graph.
Enums§
- Import
Conflict Mode - Import
Edge Skip Cause - Why an archive edge was skipped during a successful import.
- Import
Policy Skip Cause - Reasons in the policy-aware report, separate from the legacy closed skip enum.
Functions§
- import_
key_ conflict import_key_conflict: archive entityentity_idcarrieskeyunderkind, and another live entity holds it. The holder is not named.- parse_
archive_ timestamp - Parse an optional archive timestamp, using
fallbackonly when absent. - validate_
archive_ key_ uniqueness - Refuse an archive in which two entities carry the same key under the same kind. Each item is one entity’s id, kind and keys.
- validate_
entity_ names - Validate the keys and aliases one archive entity carries, before any read: each key and each alias as a caller write validates it, none listed twice, and no alias equal to the entity’s name.