Class RemoteDocument
Class used to return information about a remote document or context.
Inherited Members
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public class RemoteDocument
Properties
| Edit this page View SourceContextUrl
If available, the value of the HTTP Link Header [RFC5988] using the http://www.w3.org/ns/json-ld#context link relation in the response.
Declaration
public Uri ContextUrl { get; set; }
Property Value
Type | Description |
---|---|
Uri |
Remarks
If the response's content type is application/ld+json, the HTTP Link Header is ignored. If multiple HTTP Link Headers using the http://www.w3.org/ns/json-ld#context link relation are found, the Promise of the LoadDocumentCallback is rejected with a JsonLdError whose code is set to multiple context link headers.
Document
The retrieved document. This can either be the raw payload or the already parsed document.
Declaration
public object Document { get; set; }
Property Value
Type | Description |
---|---|
object |
Remarks
This property may be a JToken or a string. If it is a string, the string is parsed to a JToken.
DocumentUrl
The final URL of the loaded document. This is important to handle HTTP redirects properly.
Declaration
public Uri DocumentUrl { get; set; }
Property Value
Type | Description |
---|---|
Uri |