Show / Hide Table of Contents

Interface ISparqlResultsWriter

Interface for Writer classes which serialize Sparql Result Sets into concrete results set syntaxes.

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

Methods

| Edit this page View Source

Save(SparqlResultSet, TextWriter)

Saves the Result Set to the given Stream.

Declaration
void Save(SparqlResultSet results, TextWriter output)
Parameters
Type Name Description
SparqlResultSet results

Result Set to save.

TextWriter output

Stream to save to.

| Edit this page View Source

Save(SparqlResultSet, string)

Saves the Result Set to the given file using UTF-8 text encoding with no byte-order mark.

Declaration
void Save(SparqlResultSet results, string filename)
Parameters
Type Name Description
SparqlResultSet results

Result Set to save.

string filename

File to save to.

| Edit this page View Source

Save(SparqlResultSet, string, Encoding)

Saves the result set to the specified file using the specified text encoding.

Declaration
void Save(SparqlResultSet results, string filename, Encoding fileEncoding)
Parameters
Type Name Description
SparqlResultSet results

The results set to save.

string filename

The path to the file to be written.

Encoding fileEncoding

The text encoding to use.

Events

| Edit this page View Source

Warning

Event raised when a non-fatal issue with the SPARQL Results being written is detected

Declaration
event SparqlWarning Warning
Event Type
Type Description
SparqlWarning

Extension Methods

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