Class RdfJsonWriter
Class for generating RDF/Json Concrete Syntax.
Inherited Members
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
| Edit this page View SourcePrettyPrintMode
Gets/Sets Pretty Print Mode for the Writer.
Declaration
public bool PrettyPrintMode { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceSaveInternal(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. |
TextWriter | output | Stream to save to. |
Overrides
| Edit this page View SourceToString()
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
Events
| Edit this page View SourceWarning
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 |