The base class of types that read statements from streams.
|
See Also: Inherited members from object.
RdfParser
() The protected no-arg constructor used by derived classes. |
BaseUri
|
string . The base URI for resolving relative URIs found in the stream. |
Meta
|
Entity . An entity to assign as the meta entity for statements loaded by this parser. |
Variables [read-only] | ICollection . A list of SemWeb.Entity objects found in the strem that were marked as being variables (e.g. for queries). |
static |
Create
(string, string) Creates a parser in the factory paradigm. |
Dispose
() Disposes the parser. |
|
abstract |
Parse
(StatementSinkEx) Parses the stream into the statement sink. |
AddVariable
(Entity) Called by parser implementations to indicate that the entity was marked in the stream as being a variable for a query. |
|
OnWarning
(string) Implementors of RdfParser may call this method to indicate a parsing warning. |
The protected no-arg constructor used by derived classes.
Disposes the parser.
Creates a parser in the factory paradigm.
The type of parser returned is given in the following table.
type | Parser |
---|---|
"xml" or "text/xml" | SemWeb.IO.RdfXmlParser |
"n3" or "text/n3" | SemWeb.IO.N3Parser |
An entity to assign as the meta entity for statements loaded by this parser.
The base URI for resolving relative URIs found in the stream.
Implementors of RdfParser may call this method to indicate a parsing warning.
A list of SemWeb.Entity objects found in the strem that were marked as being variables (e.g. for queries).
Parses the stream into the statement sink.
Called by parser implementations to indicate that the entity was marked in the stream as being a variable for a query.