Skip to content

Reference

  • jsonld.compact()


    Compacts a JSON-LD document with a context, replacing full IRIs with shorter terms where possible.

  • jsonld.expand()


    Expands a compacted JSON-LD document into full IRI-based form and removes the context.

  • jsonld.flatten()


    Flattens nested JSON-LD into a top-level node map so each node can be processed independently.

  • jsonld.frame()


    Frames expanded JSON-LD into a predictable tree shape that matches a supplied frame.

  • jsonld.to_rdf()


    Converts a JSON-LD document into RDF statements in a requested serialization format.

  • jsonld.from_rdf()


    Converts RDF statements into JSON-LD so the data can be processed with the JSON-LD API.

  • jsonld.normalize()


    Normalizes JSON-LD into canonical RDF statements for stable comparison, hashing, or signing.

Also

  • Document Loaders


    Load remote JSON-LD documents and contexts with the built-in loader classes.

  • In construction


    We are working on more reference documentation. It is coming soon.