Show / Hide Table of Contents

JSON-LD API

The namespace [VDS.RDF.JsonLd])(xref:VDS.RDF.JsonLd) contains classes related to the processing of JSON-LD documents. This includes methods to expand, compact and frame JSON-LD documents. For more information about what these terms mean please refer to the JSON-LD Specification. However, please note that for consistency with other RDF formats supported by dotNetRDF, the parser and writer are found in the namespaces VDS.RDF.Parsing and VDS.RDF.Writing respectively.

Note

This section of the documentation refers to the implementation of the JSON-LD Expansion, Compaction, Flattening and Framing operations. For reading/writing JSON-LD the parser and writer work in exactly the same way as for other syntaxes as described in Reading RDF and Writing RDF.

The APIs we implement are based on the JSON-LD 1.1 Specification, JSON-LD 1.1 API Specification, and JSON-LD 1.1 Framing Specification and are implemented as static methods on the class VDS.RDF.JsonLd.JsonLdProcessor. Where JSON objects or arrays are passed through the APIs, we use the Newtonsoft.JSON library's LINQ APIs to represent those objects.

Features

  • Expansion
  • Compaction
  • Flattening
  • Framing
  • Processor Options
  • Error Handling
  • Edit this page
In this article
  • Features
Back to top Generated by DocFX