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
| Improve this Doc View SourceBaseGZipResultsParser(ISparqlResultsReader)
Creates a new GZipped results parser.
Declaration
public BaseGZipResultsParser(ISparqlResultsReader parser)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsReader | parser | Underlying parser. |
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.
Methods
| Improve this Doc 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. |
System.IO.StreamReader | input | Stream to read from. |
IUriFactory | uriFactory | URI factory to use. |
Overrides
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.
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. |
System.IO.TextReader | input | Input to read from. |
IUriFactory | uriFactory | URI factory to use. |
Overrides
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.
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
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.
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. |
System.IO.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. |
System.IO.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
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.
Events
| Improve this Doc 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 |
Overrides
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.