KnowledgeGraph
- Implements
KnowledgeSink
Embedded KyuGraph access and a sink for annotated knowledge publication.
Static methods
function open(?directory:String = ""):Future<KnowledgeGraph>Opens an owned graph. An empty directory creates an in-memory graph.
function restore(bytes:Bytes):Future<KnowledgeGraph>Restores a portable checkpoint; no native filesystem access is required.
function load(files:Storage, path:String):Future<KnowledgeGraph>Loads a checkpoint from application-scoped storage, including browser IndexedDB.
Properties
final jit:BoolTrue when the selected packaged engine includes JIT support.
Methods
function snapshot():Future<Bytes>Captures one consistent graph state in a versioned, portable checkpoint.
function save(files:Storage, path:String):Future<Unit>Saves a copied checkpoint; the application retains ownership of the storage.
function apply(batch:KnowledgeBatch):Future<Unit>function query(cypher:String, ?parameters:DynamicAccess<Dynamic>):Future<KnowledgeQuery>Executes parameterized Cypher and decodes owned result values.