Show / Hide Table of Contents

Class BaseGZipResultsWriter

Abstract Base class for Results writers which generate GZipped output.

Inheritance
object
BaseGZipResultsWriter
GZippedSparqlCsvWriter
GZippedSparqlJsonWriter
GZippedSparqlTsvWriter
GZippedSparqlXmlWriter
Implements
ISparqlResultsWriter
Inherited Members
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 abstract class BaseGZipResultsWriter : ISparqlResultsWriter
Remarks

While the normal witers can be used with GZip streams directly this class just abstracts the wrapping of file/stream output into a GZip stream if it is not already passed as such.

Constructors

| Edit this page View Source

BaseGZipResultsWriter(ISparqlResultsWriter)

Creates a new GZipped Results writer.

Declaration
protected BaseGZipResultsWriter(ISparqlResultsWriter writer)
Parameters
Type Name Description
ISparqlResultsWriter writer

Underlying writer.

Methods

| Edit this page View Source

Save(SparqlResultSet, TextWriter)

Saves a Result Set as GZipped output.

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

Result Set to save.

TextWriter output

Writer to save to.

| Edit this page View Source

Save(SparqlResultSet, string)

Saves a Result Set as GZipped output.

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

| Edit this page View Source

ToString()

Gets the description of the writer.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Events

| Edit this page View Source

Warning

Event which is raised if non-fatal errors occur writing results

Declaration
public event SparqlWarning Warning
Event Type
Type Description
SparqlWarning

Implements

ISparqlResultsWriter

Extension Methods

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