Class BaseGZipDatasetParser
Abstract Base Class for parsers that handle GZipped input.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipDatasetParser : IStoreReader
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 SourceBaseGZipDatasetParser(IStoreReader)
Creates a new GZipped input parser.
Declaration
public BaseGZipDatasetParser(IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
IStoreReader | parser | The underlying parser to use. |
Methods
| Edit this page View SourceLoad(IRdfHandler, TextReader)
Loads a RDF dataset from GZipped input.
Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
TextReader | input | Input to load from. |
Load(IRdfHandler, TextReader, IUriFactory)
Loads an RDF dataset using and RDF handler.
Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
TextReader | input | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
Load(IRdfHandler, string)
Loads a RDF dataset 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)
Loads an RDF dataset using an RDF handler.
Declaration
public void Load(IRdfHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
string | filename | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
Load(ITripleStore, TextReader)
Loads a RDF dataset from GZipped input.
Declaration
public void Load(ITripleStore store, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
TextReader | input | Input to load from. |
Load(ITripleStore, string)
Loads a RDF dataset from GZipped input.
Declaration
public void Load(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | filename | File to load from. |
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 raised on non-fatal errors encountered parsing
Declaration
public event StoreReaderWarning Warning
Event Type
Type | Description |
---|---|
StoreReaderWarning |