pub fn convert(
root: &SyntaxNode<Lang>,
base_iri: Option<String>,
) -> (Turtle, ActiveContext)Expand description
Convert a parsed JSON-LD CST to RDF triples.
base_iri sets the initial base IRI for resolving relative IRIs. When the
document was fetched from a URL, pass that URL here. An explicit @base in
the document’s @context will override this value.
Returns (turtle, context) where context is the accumulated
ActiveContext built from all @context entries in the document.
Remote @context references are not resolved. Use
convert_with_loader to supply an async context-loading hook.