hxn

KnowledgeGraph

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:Bool

True 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.

function close():Future<Unit>

Stops new operations and releases the graph after its native shutdown.