Expansion
The Expansion operation removes context from a JSON-LD document and makes the data structures within the JSON-LD document more regular. For more information about this operation please refer to the JSON-LD API Specification.
JSON-LD Expansion is implemented by the JsonLdProcessor.Expand()
static method, which accepts as input either a parsed JSON object (as a Newtonsoft.Json.Linq.JObject
) or the URI of a JSON-LD document to be retrieved (passed either as a System.Uri
or as a Newtonsoft.Json.Linq.JValue
). If a URI is passed, the JSON-LD document is retrieved via an HTTP GET - this resolution and retrieval function can be overridden in the JsonLdProcessorOptions
instance passed to the method.
The expanded document is returned as a Newtonsoft.Json.Linq.JArray
instance, which can then be further processed as required.