Class NQuadsWriter
Class for serializing a Triple Store in the NQuads (NTriples plus context) syntax.
Implements
Inherited Members
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class NQuadsWriter : BaseStoreWriter, IStoreWriter, IPrettyPrintingWriter, IFormatterBasedWriter, IMultiThreadedWriter, IRdfStarCapableWriter
Constructors
| Edit this page View SourceNQuadsWriter()
Creates a new writer.
Declaration
public NQuadsWriter()
NQuadsWriter(NQuadsSyntax)
Creates a new writer.
Declaration
public NQuadsWriter(NQuadsSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
NQuadsSyntax | syntax | NQuads Syntax mode to use. |
Properties
| Edit this page View SourceCanWriteTripleNodes
Gets whether the current syntax mode supports writing RDF-Star triple nodes or not.
Declaration
public bool CanWriteTripleNodes { get; }
Property Value
Type | Description |
---|---|
bool |
PrettyPrintMode
Controls whether Pretty Printing is used.
Declaration
public bool PrettyPrintMode { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
For NQuads this simply means that Graphs in the output are separated with Whitespace and comments used before each Graph.
Syntax
Gets/Sets the NQuads syntax mode.
Declaration
public NQuadsSyntax Syntax { get; set; }
Property Value
Type | Description |
---|---|
NQuadsSyntax |
TripleFormatterType
Gets the type of the Triple Formatter used by this writer.
Declaration
public Type TripleFormatterType { get; }
Property Value
Type | Description |
---|---|
Type |
UseMultiThreadedWriting
Gets/Sets whether Multi-Threaded Writing.
Declaration
public bool UseMultiThreadedWriting { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceSave(ITripleStore, TextWriter, bool)
Saves a Store in NQuads format.
Declaration
public override void Save(ITripleStore store, TextWriter writer, bool leaveOpen)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
TextWriter | writer | Writer to save to. |
bool | leaveOpen | Boolean flag indicating if |
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 an issue with the Graphs being serialized that doesn't prevent serialization but the user should be aware of
Declaration
public override event StoreWriterWarning Warning
Event Type
Type | Description |
---|---|
StoreWriterWarning |