Class JsonLdWriterOptions
Class representing the options that can be passed to the JsonLdWriter via its constructor.
Inherited Members
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class JsonLdWriterOptions
Properties
| Edit this page 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 |
---|---|
Formatting |
Remarks
Defaults to Newtonsoft.Json.Formatting.Indented.
Ordered
Order dictionary keys lexicographically in the JSON output.
Declaration
public bool Ordered { get; set; }
Property Value
Type | Description |
---|---|
bool |
ProcessingMode
Get or set the default processing mode for the writer.
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 |
---|---|
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.
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 |
---|---|
bool |
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 |
---|---|
bool |