Show / Hide Table of Contents

Class JsonLdWriterOptions

Class representing the options that can be passed to the JsonLdWriter via its constructor.

Inheritance
object
JsonLdWriterOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class JsonLdWriterOptions

Properties

| Edit this page View Source

JsonFormatting

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.

| Edit this page View Source

Ordered

Order dictionary keys lexicographically in the JSON output.

Declaration
public bool Ordered { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

ProcessingMode

Get or set the default processing mode for the writer.

Declaration
public JsonLdProcessingMode ProcessingMode { get; set; }
Property Value
Type Description
JsonLdProcessingMode
| Edit this page View Source

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.

| Edit this page 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
bool
| Edit this page View Source

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

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • JsonFormatting
    • Ordered
    • ProcessingMode
    • RdfDirection
    • UseNativeTypes
    • UseRdfType
  • Extension Methods
Back to top Generated by DocFX