Show / Hide Table of Contents

Class NQuadsWriter

Class for serializing a Triple Store in the NQuads (NTriples plus context) syntax.

Inheritance
object
BaseStoreWriter
NQuadsWriter
Implements
IStoreWriter
IPrettyPrintingWriter
IFormatterBasedWriter
IMultiThreadedWriter
IRdfStarCapableWriter
Inherited Members
BaseStoreWriter.Save(ITripleStore, string)
BaseStoreWriter.Save(ITripleStore, string, Encoding)
BaseStoreWriter.Save(ITripleStore, TextWriter)
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 NQuadsWriter : BaseStoreWriter, IStoreWriter, IPrettyPrintingWriter, IFormatterBasedWriter, IMultiThreadedWriter, IRdfStarCapableWriter

Constructors

| Edit this page View Source

NQuadsWriter()

Creates a new writer.

Declaration
public NQuadsWriter()
| Edit this page 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

| Edit this page View Source

CanWriteTripleNodes

Gets whether the current syntax mode supports writing RDF-Star triple nodes or not.

Declaration
public bool CanWriteTripleNodes { get; }
Property Value
Type Description
bool
| Edit this page View Source

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.

| Edit this page View Source

Syntax

Gets/Sets the NQuads syntax mode.

Declaration
public NQuadsSyntax Syntax { get; set; }
Property Value
Type Description
NQuadsSyntax
| Edit this page View Source

TripleFormatterType

Gets the type of the Triple Formatter used by this writer.

Declaration
public Type TripleFormatterType { get; }
Property Value
Type Description
Type
| Edit this page View Source

UseMultiThreadedWriting

Gets/Sets whether Multi-Threaded Writing.

Declaration
public bool UseMultiThreadedWriting { get; set; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Save(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 writer should be left open after the store is written.

Overrides
BaseStoreWriter.Save(ITripleStore, TextWriter, bool)
| Edit this page 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()

Events

| Edit this page 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 override event StoreWriterWarning Warning
Event Type
Type Description
StoreWriterWarning
Overrides
BaseStoreWriter.Warning

Implements

IStoreWriter
IPrettyPrintingWriter
IFormatterBasedWriter
IMultiThreadedWriter
IRdfStarCapableWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • NQuadsWriter()
    • NQuadsWriter(NQuadsSyntax)
  • Properties
    • CanWriteTripleNodes
    • PrettyPrintMode
    • Syntax
    • TripleFormatterType
    • UseMultiThreadedWriting
  • Methods
    • Save(ITripleStore, TextWriter, bool)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX