Class DefaultDocumentLoader
Implements the default remote JSON document loader logic for the JSON-LD processor.
Inherited Members
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public static class DefaultDocumentLoader
Methods
| Edit this page View SourceLoadJson(Uri, JsonLdLoaderOptions)
Attempt to retrieve a JSON-LD document following the standard rules for following Link headers.
Declaration
public static RemoteDocument LoadJson(Uri remoteRef, JsonLdLoaderOptions loaderOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | remoteRef | The remote document reference to be resolved. |
| JsonLdLoaderOptions | loaderOptions | Options to apply to the loading process. |
Returns
| Type | Description |
|---|---|
| RemoteDocument | The loaded remote document. |
Exceptions
| Type | Condition |
|---|---|
| JsonLdProcessorException | Raised if the remote reference could not be de-referenced to a processable JSON document. |
| WebException | Raised if an error was encountered when retrieving content from the remote server. |