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
Properties
| Edit this page View SourceMaxRedirects
Get / Set the maximum number of redirects to follow automatically.
Declaration
public static int MaxRedirects { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
This is initially set to 5. Setting to 0 disables auto redirect.
MaxResponseContentBufferSize
Get / Set the limit to the size (in bytes) of response content handled by the document loader.
Declaration
public static long MaxResponseContentBufferSize { get; set; }
Property Value
Type | Description |
---|---|
long |
Remarks
This is initially set to 2097152 (2MB).
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. |
Json |
loaderOptions | Options to apply to the loading process. |
Returns
Type | Description |
---|---|
Remote |
The loaded remote document. |
Exceptions
Type | Condition |
---|---|
Json |
Raised if the remote reference could not be de-referenced to a processable JSON document. |
Web |
Raised if an error was encountered when retrieving content from the remote server. |