Class NQuadsWriter
Class for serializing a Triple Store in the NQuads (NTriples plus context) syntax.
Inheritance
System.Object
NQuadsWriter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRDF.dll
Syntax
public class NQuadsWriter : IStoreWriter, IPrettyPrintingWriter, IFormatterBasedWriter, IMultiThreadedWriter
Constructors
| Improve this Doc 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
| Improve this Doc View SourcePrettyPrintMode
Controls whether Pretty Printing is used.
Declaration
public bool PrettyPrintMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
For NQuads this simply means that Graphs in the output are separated with Whitespace and comments used before each Graph.
|
Improve this Doc
View Source
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 |
---|---|
System.Type |
UseMultiThreadedWriting
Gets/Sets whether Multi-Threaded Writing.
Declaration
public bool UseMultiThreadedWriting { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceSave(ITripleStore, TextWriter)
Saves a Store in NQuads format.
Declaration
public void Save(ITripleStore store, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
System.IO.TextWriter | writer | Writer to save to. |
Save(ITripleStore, TextWriter, Boolean)
Saves a Store in NQuads format.
Declaration
public void Save(ITripleStore store, TextWriter writer, bool leaveOpen)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
System.IO.TextWriter | writer | Writer to save to. |
System.Boolean | leaveOpen | Boolean flag indicating if writer should be left open after the store is written. |
Save(ITripleStore, String)
Saves a Store in NQuads format.
Declaration
public void Save(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
System.String | filename | File to save to. |
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 |
---|---|
System.String |
Overrides
System.Object.ToString()
Events
| Improve this Doc 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 event StoreWriterWarning Warning
Event Type
Type | Description |
---|---|
StoreWriterWarning |