Class BaseGZipResultsParser
Abstract Base class for Results parser that read GZipped input.
Inheritance
Implements
Inherited Members
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 SourceBaseGZipResultsParser(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 SourceLoad(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
| Edit this page View SourceLoad(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
| Edit this page View SourceLoad(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
| Edit this page View SourceLoad(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
Remarks
Should throw an error if the Result Set is not empty.
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
Remarks
Should throw an error if the Result Set is not empty.
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
Remarks
Should throw an error if the Result Set is not empty.
ToString()
Gets the description of the parser.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string | 
Overrides
Events
| Edit this page View SourceWarning
Event which is raised if non-fatal errors are countered with parsing results
Declaration
public override event SparqlWarning Warning
  Event Type
| Type | Description | 
|---|---|
| SparqlWarning |