Class JsonLdWriterOptions
Class representing the options that can be passed to the JsonLdWriter via its constructor.
Inheritance
System.Object
JsonLdWriterOptions
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()
Namespace: VDS.RDF.Writing
Assembly: dotNetRDF.dll
Syntax
public class JsonLdWriterOptions
Properties
| Improve this Doc View SourceJsonFormatting
Get or set the formatting to apply to the JSON generated by the writer.
Declaration
public Formatting JsonFormatting { get; set; }
Property Value
| Type | Description |
|---|---|
| Newtonsoft.Json.Formatting |
Remarks
Defaults to Newtonsoft.Json.Formatting.Indented.
|
Improve this Doc
View Source
Ordered
Order dictionary keys lexicographically in the JSON output
Declaration
public bool Ordered { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ProcessingMode
Declaration
public JsonLdProcessingMode ProcessingMode { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonLdProcessingMode |
RdfDirection
Get or set the text direction mode to use.
Declaration
public JsonLdRdfDirectionMode? RdfDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<JsonLdRdfDirectionMode> |
Remarks
The default value of null indicates that there is no text direction information in the RDF.
A value of I18NDatatype indicates that both language and text direction are encoded in the literal datatype IRI.
A value of CompoundLiteral indicates that literals with text direction are represented as a blank node with an rdf:direction property.
|
Improve this Doc
View Source
UseNativeTypes
If the this flag is set to true, RDF literals with a datatype IRI that equals xsd:integer or xsd:double are converted
to a JSON numbers and RDF literals with a datatype IRI that equals xsd:boolean are converted to true or false based
on their lexical form.
Declaration
public bool UseNativeTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
UseRdfType
Unless this flag is set to true, rdf:type predicates will be serialized as @type as long as the
associated object is either an IRI or blank node identifier.
Declaration
public bool UseRdfType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |