Show / Hide Table of Contents

Class BaseGZipResultsParser

Abstract Base class for Results parser that read GZipped input.

Inheritance
object
BaseSparqlResultsReader
BaseGZipResultsParser
GZippedSparqlCsvParser
GZippedSparqlJsonParser
GZippedSparqlTsvParser
GZippedSparqlXmlParser
Implements
ISparqlResultsReader
Inherited Members
BaseSparqlResultsReader.Load(SparqlResultSet, StreamReader)
BaseSparqlResultsReader.Load(SparqlResultSet, string)
BaseSparqlResultsReader.Load(SparqlResultSet, TextReader)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, StreamReader)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, string)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, TextReader)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipResultsParser : BaseSparqlResultsReader, ISparqlResultsReader
Remarks

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

Constructors

| Edit this page View Source

BaseGZipResultsParser(ISparqlResultsReader)

Creates a new GZipped results parser.

Declaration
public BaseGZipResultsParser(ISparqlResultsReader parser)
Parameters
Type Name Description
ISparqlResultsReader parser

Underlying parser.

Methods

| Edit this page View Source

Load(ISparqlResultsHandler, StreamReader, IUriFactory)

Loads a Result Set using a Results Handler from the given Stream.

Declaration
public override void Load(ISparqlResultsHandler handler, StreamReader input, IUriFactory uriFactory)
Parameters
Type Name Description
ISparqlResultsHandler handler

Results Handler.

StreamReader input

Stream to read from.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(ISparqlResultsHandler, StreamReader, IUriFactory)
| Edit this page View Source

Load(ISparqlResultsHandler, TextReader, IUriFactory)

Loads a Result Set using a Results Handler from the given Input.

Declaration
public override void Load(ISparqlResultsHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type Name Description
ISparqlResultsHandler handler

Results Handler.

TextReader input

Input to read from.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(ISparqlResultsHandler, TextReader, IUriFactory)
| Edit this page View Source

Load(ISparqlResultsHandler, string, IUriFactory)

Loads a Result Set using a Results Handler from the given file.

Declaration
public override void Load(ISparqlResultsHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type Name Description
ISparqlResultsHandler handler

Results Handler.

string filename

File to read results from.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(ISparqlResultsHandler, string, IUriFactory)
| Edit this page View Source

Load(SparqlResultSet, StreamReader, IUriFactory)

Loads a Result Set from the given Stream.

Declaration
public override void Load(SparqlResultSet results, StreamReader input, IUriFactory uriFactory)
Parameters
Type Name Description
SparqlResultSet results

Result Set to load into.

StreamReader input

Stream to read from.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(SparqlResultSet, StreamReader, IUriFactory)
Remarks

Should throw an error if the Result Set is not empty.

| Edit this page View Source

Load(SparqlResultSet, TextReader, IUriFactory)

Loads a Result Set from the given Input.

Declaration
public override void Load(SparqlResultSet results, TextReader input, IUriFactory uriFactory)
Parameters
Type Name Description
SparqlResultSet results

Result Set to load into.

TextReader input

Input to read from.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(SparqlResultSet, TextReader, IUriFactory)
Remarks

Should throw an error if the Result Set is not empty.

| Edit this page View Source

Load(SparqlResultSet, string, IUriFactory)

Loads a Result Set from the given File.

Declaration
public override void Load(SparqlResultSet results, string filename, IUriFactory uriFactory)
Parameters
Type Name Description
SparqlResultSet results

Result Set to load into.

string filename

File containing a Result Set.

IUriFactory uriFactory

URI factory to use.

Overrides
BaseSparqlResultsReader.Load(SparqlResultSet, string, IUriFactory)
Remarks

Should throw an error if the Result Set is not empty.

| Edit this page View Source

ToString()

Gets the description of the parser.

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 are countered with parsing results

Declaration
public override event SparqlWarning Warning
Event Type
Type Description
SparqlWarning
Overrides
BaseSparqlResultsReader.Warning

Implements

ISparqlResultsReader

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseGZipResultsParser(ISparqlResultsReader)
  • Methods
    • Load(ISparqlResultsHandler, StreamReader, IUriFactory)
    • Load(ISparqlResultsHandler, TextReader, IUriFactory)
    • Load(ISparqlResultsHandler, string, IUriFactory)
    • Load(SparqlResultSet, StreamReader, IUriFactory)
    • Load(SparqlResultSet, TextReader, IUriFactory)
    • Load(SparqlResultSet, string, IUriFactory)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX