Class JsonLdProcessorOptions
A collection of options for setting up the JSON-LD processor.
Inheritance
System.Object
JsonLdProcessorOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public class JsonLdProcessorOptions
Fields
|
Improve this Doc
View Source
CompactArrays
Flag indicating if arrays of one element should be replaced by the single value during compaction.
Declaration
public bool CompactArrays
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
CompactToRelative
Determines if IRIs are compacted relative to the base option or document location when compacting.
Declaration
public bool CompactToRelative
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Embed
Sets the value object embed flag used in the Framing Algorithm.
Declaration
Field Value
|
Improve this Doc
View Source
ExpandContext
A context that is used to initialize the active context when expanding a document.
Declaration
public JToken ExpandContext
Field Value
| Type |
Description |
| Newtonsoft.Json.Linq.JToken |
|
|
Improve this Doc
View Source
Explicit
Sets the value explicit inclusion flag used in the Framing Algorithm.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Specifies whether HTML document processing should target all of the JSON-LD script elements in the document or not.
Declaration
public bool ExtractAllScripts
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
FrameDefault
Instead of framing a merged graph, frame only the default graph.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
FrameExpansion
Specifies whether special frame expansion rules should be applied during expansion and/or RDF serialization.
Declaration
public bool FrameExpansion
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
OmitDefault
Sets the value omit default flag used in the Framing Algorithm.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Ordered
Specifies whether the processor should operate on properties in lexicographical order or not.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ProcessingMode
Get or set the processing model that the processor will use.
Declaration
public JsonLdProcessingMode? ProcessingMode
Field Value
|
Improve this Doc
View Source
ProduceGeneralizedRdf
If set to true, the JSON-LD processor may emit blank nodes for triple predicates, otherwise they will be omitted.
Declaration
public bool ProduceGeneralizedRdf
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
PruneBlankNodeIdentifiers
Removes @id from node objects where the value is a blank node identifier used only once within the document.
Declaration
[Obsolete("This property is no longer part of the JSON-LD specification")]
public bool PruneBlankNodeIdentifiers
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
RdfDirection
Get or set the method by which literal values containing a base direction are transformed to and from RDF.
Declaration
public JsonLdRdfDirectionMode? RdfDirection
Field Value
|
Improve this Doc
View Source
RemoteContextLimit
The maximum number of remote context references to load during processing.
Declaration
public int RemoteContextLimit
Field Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
RequireAll
Sets the value require all flag used in the Framing Algorithm.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
UseNativeTypes
Get or set the flag that determines whether or not JSON native values should be used in literals.
Declaration
public bool UseNativeTypes
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
UseRdfType
Get or set the flag that controls the serialization of rdf:type properties when serializing RDF as JSON-LD.
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
Properties
|
Improve this Doc
View Source
Base
The base IRI to use when expanding or compacting the document.
Declaration
public Uri Base { get; set; }
Property Value
| Type |
Description |
| System.Uri |
|
|
Improve this Doc
View Source
DocumentLoader
The callback of the loader to be used to retrieve remote documents and contexts.
Declaration
public Func<Uri, JsonLdLoaderOptions, RemoteDocument> DocumentLoader { get; set; }
Property Value
|
Improve this Doc
View Source
Loader
The callback of the loader to be used to retrieve remote documents and contexts.
Declaration
[Obsolete("The Loader property has been deprecated in favor of the DocumentLoader property.")]
public Func<Uri, JsonLdLoaderOptions, RemoteDocument> Loader { get; set; }
Property Value
|
Improve this Doc
View Source
OmitGraph
GEt or set the value of the omit graph flag used in the Framing Algorithm.
Declaration
public bool OmitGraph { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
|
Improve this Doc
View Source
Clone()
Create a copy of this instance, cloning all of its values.
Declaration
public JsonLdProcessorOptions Clone()
Returns
Extension Methods