Class BaseGZipParser
Abstract Base class for RDF parsers which can read GZipped input.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipParser : IRdfReader
  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 SourceBaseGZipParser(IRdfReader)
Creates a new GZipped input parser.
Declaration
public BaseGZipParser(IRdfReader parser)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfReader | parser | Underlying parser.  | 
      
Methods
| Edit this page View SourceLoad(IGraph, StreamReader)
Loads a Graph from GZipped input.
Declaration
public void Load(IGraph g, StreamReader input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IGraph | g | Graph to load into.  | 
      
| StreamReader | input | Stream to load from.  | 
      
Load(IGraph, TextReader)
Loads a Graph from GZipped input.
Declaration
public void Load(IGraph g, TextReader input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IGraph | g | Graph to load into.  | 
      
| TextReader | input | Reader to load from.  | 
      
Load(IGraph, string)
Loads a Graph from GZipped input.
Declaration
public void Load(IGraph g, string filename)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IGraph | g | Graph to load into.  | 
      
| string | filename | File to load from.  | 
      
Load(IRdfHandler, StreamReader)
Loads RDF using a RDF Handler from GZipped input.
Declaration
public void Load(IRdfHandler handler, StreamReader input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| StreamReader | input | Stream to load from.  | 
      
Load(IRdfHandler, StreamReader, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
public void Load(IRdfHandler handler, StreamReader input, IUriFactory uriFactory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| StreamReader | input | The reader to read input from.  | 
      
| IUriFactory | uriFactory | URI factory to use.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| RdfException | Thrown if the Parser tries to output something that is invalid RDF.  | 
      
| RdfParseException | Thrown if the Parser cannot Parse the Input.  | 
      
| IOException | Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.  | 
      
Load(IRdfHandler, TextReader)
Loads RDF using a RDF Handler from GZipped input.
Declaration
public void Load(IRdfHandler handler, TextReader input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| TextReader | input | Reader to load from.  | 
      
Load(IRdfHandler, TextReader, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| TextReader | input | The reader to read input from.  | 
      
| IUriFactory | uriFactory | URI factory to use.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| RdfException | Thrown if the Parser tries to output something that is invalid RDF.  | 
      
| RdfParseException | Thrown if the Parser cannot Parse the Input.  | 
      
| IOException | Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.  | 
      
Load(IRdfHandler, string)
Loads RDF using a RDF Handler from GZipped input.
Declaration
public void Load(IRdfHandler handler, string filename)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| string | filename | File to load from.  | 
      
Load(IRdfHandler, string, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax from a given File.
Declaration
public void Load(IRdfHandler handler, string filename, IUriFactory uriFactory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfHandler | handler | RDF Handler to use.  | 
      
| string | filename | The Filename of the File to read from.  | 
      
| IUriFactory | uriFactory | URI factory to use.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| RdfException | Thrown if the Parser tries to output something that is invalid RDF.  | 
      
| RdfParseException | Thrown if the Parser cannot Parse the Input.  | 
      
| IOException | Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.  | 
      
ToString()
Gets the description of the parser.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string | 
Overrides
Events
| Edit this page View SourceWarning
Warning event which is raised when non-fatal errors are encounted parsing RDF
Declaration
public event RdfReaderWarning Warning
  Event Type
| Type | Description | 
|---|---|
| RdfReaderWarning |