Class DefaultDocumentLoader
Implements the default remote JSON document loader logic for the JSON-LD processor.
Inheritance
System.Object
DefaultDocumentLoader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public static class DefaultDocumentLoader
Methods
| Improve this Doc 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 |
---|---|---|
System.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. |
System.Net.WebException | Raised if an error was encountered when retrieving content from the remote server. |