Show / Hide Table of Contents

Class NQuadsWriter

Class for serializing a Triple Store in the NQuads (NTriples plus context) syntax.
Inheritance
System.Object
NQuadsWriter
Implements
IStoreWriter
IPrettyPrintingWriter
IFormatterBasedWriter
IMultiThreadedWriter
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 Source

NQuadsWriter()

Creates a new writer.
Declaration
public NQuadsWriter()
| Improve this Doc View Source

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 Source

PrettyPrintMode

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
| Improve this Doc View Source

TripleFormatterType

Gets the type of the Triple Formatter used by this writer.
Declaration
public Type TripleFormatterType { get; }
Property Value
Type Description
System.Type
| Improve this Doc View Source

UseMultiThreadedWriting

Gets/Sets whether Multi-Threaded Writing.
Declaration
public bool UseMultiThreadedWriting { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Save(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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

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.
| 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
System.String
Overrides
System.Object.ToString()

Events

| Improve this Doc View Source

Warning

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

Implements

IStoreWriter
IPrettyPrintingWriter
IFormatterBasedWriter
IMultiThreadedWriter

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • NQuadsWriter()
    • NQuadsWriter(NQuadsSyntax)
  • Properties
    • PrettyPrintMode
    • Syntax
    • TripleFormatterType
    • UseMultiThreadedWriting
  • Methods
    • Save(ITripleStore, TextWriter)
    • Save(ITripleStore, TextWriter, Boolean)
    • Save(ITripleStore, String)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX