Show / Hide Table of Contents

Class NQuadsWriter

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

Inheritance
System.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

| 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

CanWriteTripleNodes

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

Declaration
public bool CanWriteTripleNodes { get; }
Property Value
Type Description
System.Boolean
| 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, 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.

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.

Overrides
BaseStoreWriter.Save(ITripleStore, TextWriter, bool)
| 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
string
Overrides
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 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)
  • Improve this Doc
  • 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