Show / Hide Table of Contents

Interface IStoreWriter

Interface to be implemented by Triple Store Writers.

Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IStoreWriter

Methods

| Improve this Doc View Source

Save(ITripleStore, TextWriter, bool)

Method for saving data to a Triple Store.

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

Triple Store.

System.IO.TextWriter output

Write to save to.

System.Boolean leaveOpen

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

| Improve this Doc View Source

Save(ITripleStore, TextWriter)

Method for saving data to a Triple Store.

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

Triple Store.

System.IO.TextWriter output

Write to save to.

| Improve this Doc View Source

Save(ITripleStore, string, Encoding)

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

Declaration
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.

System.Text.Encoding fileEncoding

The text encoding to use for the output file.

| Improve this Doc View Source

Save(ITripleStore, string)

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

Declaration
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.

Events

| Improve this Doc View Source

Warning

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

Declaration
event StoreWriterWarning Warning
Event Type
Type Description
StoreWriterWarning

Extension Methods

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