Interface IRdfHandler
Interface for Handlers which handle the RDF produced by parsers.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IRdfHandler : INodeFactory
Properties
| Improve this Doc View SourceAcceptsAll
Gets whether the Handler will always handle all data (i.e. won't terminate parsing early).
Declaration
bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceEndRdf(bool)
End the Handling of RDF.
Declaration
void EndRdf(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether parsing finished without error. |
HandleBaseUri(Uri)
Handles a Base URI Definition.
Declaration
bool HandleBaseUri(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean | Should return true if parsing should continue or false if it should be aborted. |
HandleNamespace(string, Uri)
Handles a Namespace Definition.
Declaration
bool HandleNamespace(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Namespace Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean | Should return true if parsing should continue or false if it should be aborted. |
HandleQuad(Triple, IRefNode)
Handles a Quad (Triple + Graph).
Declaration
bool HandleQuad(Triple t, IRefNode graph)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
IRefNode | graph | The name of the graph containing the triple. |
Returns
Type | Description |
---|---|
System.Boolean | Should return true if parsing should continue or false if it should be aborted. |
HandleTriple(Triple)
Handles a Triple.
Declaration
bool HandleTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean | Should return true if parsing should continue or false if it should be aborted. |
StartRdf()
Start the Handling of RDF.
Declaration
void StartRdf()
Exceptions
Type | Condition |
---|---|
RdfParseException | May be thrown if the Handler is already in use and the implementation is not thread-safe. |