Show / Hide Table of Contents

Class DefaultDocumentLoader

Implements the default remote JSON document loader logic for the JSON-LD processor.

Inheritance
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

Properties

| Edit this page View Source

MaxRedirects

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.

| Edit this page View Source

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 Source

LoadJson(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.

  • Edit this page
  • View Source
In this article
  • Properties
    • MaxRedirects
    • MaxResponseContentBufferSize
  • Methods
    • LoadJson(Uri, JsonLdLoaderOptions)
Back to top Generated by DocFX