Expand description
Knowledge Base Federation
Provides functions for merging, exporting, and importing knowledge bases across the IPFRS network using content-addressed IPLD blocks.
§Overview
merge_knowledge_bases– merge two KBs, deduplicating by content hash.export_kb_as_cid– serialize a store’s KB as IPLD, return the root CID.import_remote_kb– fetch a KB snapshot by CID and merge it into a local store.
Structs§
- KbMerge
Diff - Summary of changes produced by merging two knowledge bases.
Enums§
- KbConflict
- A conflict detected when merging two knowledge bases.
Functions§
- export_
kb_ as_ cid - Export the current knowledge base of
storeas an IPLD block DAG. - import_
remote_ kb - Import a KB snapshot identified by
remote_cidintostore, merging with the existing local KB. - merge_
knowledge_ bases - Merge two knowledge bases, deduplicating facts and rules by content hash.