Show / Hide Table of Contents

Class BaseStoreWriter

Abstract base class for store writers that provides the default logic for implementing the Save method overrides.

Inheritance
object
BaseStoreWriter
BaseGZipDatasetWriter
CsvStoreWriter
GraphMLWriter
JsonLdWriter
NQuadsWriter
TriGWriter
TriXWriter
TsvStoreWriter
Implements
IStoreWriter
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseStoreWriter : IStoreWriter

Methods

| Edit this page View Source

Save(ITripleStore, TextWriter)

Method for saving data to a Triple Store.

Declaration
public void Save(ITripleStore store, TextWriter output)
Parameters
Type Name Description
ITripleStore store

Triple Store.

TextWriter output

Write to save to.

| Edit this page View Source

Save(ITripleStore, TextWriter, bool)

Method for saving data to a Triple Store.

Declaration
public abstract void Save(ITripleStore store, TextWriter writer, bool leaveOpen)
Parameters
Type Name Description
ITripleStore store

Triple Store.

TextWriter writer
bool leaveOpen

Boolean flag indicating if the output writer should be left open by the writer when it completes.

| Edit this page View Source

Save(ITripleStore, string)

Writes the RDF content of the triple store to the specified file.

Declaration
public void Save(ITripleStore store, string filename)
Parameters
Type Name Description
ITripleStore store

Triple Store.

string filename

File to save to.

Remarks

The output file will use the UTF-8 text encoding with no byte-order mark.

| Edit this page View Source

Save(ITripleStore, string, Encoding)

Writes the content of the triple store to the specified file using the specified text encoding.

Declaration
public void Save(ITripleStore store, string filename, Encoding fileEncoding)
Parameters
Type Name Description
ITripleStore store

The store whose content is to be written.

string filename

The path to the file to write the store content to.

Encoding fileEncoding

The text encoding to use for the output file.

Events

| Edit this page View Source

Warning

Event which writers can raise to indicate possible ambiguities or issues in the syntax they are producing

Declaration
public abstract event StoreWriterWarning Warning
Event Type
Type Description
StoreWriterWarning

Implements

IStoreWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • Save(ITripleStore, TextWriter)
    • Save(ITripleStore, TextWriter, bool)
    • Save(ITripleStore, string)
    • Save(ITripleStore, string, Encoding)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX