loads
loads(
text: str,
vocabularies: Iterable[Vocabulary] = (),
graph_engine: GraphAdapter | None = None,
)A new graph holding the document’s nodes and edges, with their ids, and its metadata, on graph_engine if given. vocabularies are any beyond the core and WSMN that the document requires.
Raises
| Name | Type | Description |
|---|---|---|
| OmkJsonError | if the text is not an OMK JSON document, requires a vocabulary that was not given, or breaks any rule of the specification (§10). |