write

write(
    graph: OmkGraph,
    path: str | Path,
    vocabularies: Iterable[Vocabulary] = (),
)

Writes the canonical document of graph to a file, as UTF-8 with LF line endings.

Raises

Name Type Description
UnexportableError as dumps does.