Show / Hide Table of Contents

Class RdfJsonWriter

Class for generating RDF/Json Concrete Syntax.

Inheritance
System.Object
BaseRdfWriter
RdfJsonWriter
Implements
IRdfWriter
IPrettyPrintingWriter
Inherited Members
BaseRdfWriter.Save(IGraph, string)
BaseRdfWriter.Save(IGraph, string, Encoding)
BaseRdfWriter.Save(IGraph, TextWriter)
BaseRdfWriter.Save(IGraph, TextWriter, bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class RdfJsonWriter : BaseRdfWriter, IRdfWriter, IPrettyPrintingWriter
Remarks

Uses the Json.Net library by James Newton-King to output RDF/Json according to the specification located on the Talis n2 Wiki

Properties

| Improve this Doc View Source

PrettyPrintMode

Gets/Sets Pretty Print Mode for the Writer.

Declaration
public bool PrettyPrintMode { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Uses the Json.Net library by James Newton-King to output RDF/Json according to the specification located on the Talis n2 Wiki

Methods

| Improve this Doc View Source

SaveInternal(IGraph, TextWriter)

Saves a Graph to an arbitrary output stream.

Declaration
protected override void SaveInternal(IGraph g, TextWriter output)
Parameters
Type Name Description
IGraph g

Graph to save.

System.IO.TextWriter output

Stream to save to.

Overrides
BaseRdfWriter.SaveInternal(IGraph, TextWriter)
Remarks

Uses the Json.Net library by James Newton-King to output RDF/Json according to the specification located on the Talis n2 Wiki

| Improve this Doc View Source

ToString()

Gets the String representation of the writer which is a description of the syntax it produces.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
Remarks

Uses the Json.Net library by James Newton-King to output RDF/Json according to the specification located on the Talis n2 Wiki

Events

| Improve this Doc View Source

Warning

Event which is raised when there is a non-fatal issue with the RDF being output

Declaration
public override event RdfWriterWarning Warning
Event Type
Type Description
RdfWriterWarning
Overrides
BaseRdfWriter.Warning
Remarks

Uses the Json.Net library by James Newton-King to output RDF/Json according to the specification located on the Talis n2 Wiki

Implements

IRdfWriter
IPrettyPrintingWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • PrettyPrintMode
  • Methods
    • SaveInternal(IGraph, TextWriter)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX