Skip to main content

Module convert

Module convert 

Source

Structs§

ActiveContext
The active context built up from all @context entries encountered during JSON-LD processing. Returned alongside the Turtle triples by convert and convert_with_loader.
NoopContextLoader
A no-op ContextLoader that never resolves remote contexts.
TermDefinition

Enums§

JsonLdVal

Traits§

ContextLoader
Hook for fetching remote JSON-LD context documents asynchronously.

Functions§

convert
Convert a parsed JSON-LD CST to RDF triples.
convert_with_loader
Convert a parsed JSON-LD CST to RDF triples, using loader to fetch remote @context documents asynchronously.
parse_json
Parse a JSON string and return the full JsonLdVal tree with source spans.
parse_jsonld_for_context
Parse a JSON-LD string (fetched from a remote URL) and return the value that should be used as a context. If the document has a top-level @context, return that; otherwise return the whole document.