Class BaseRdfHandler
Abstract Base Class for RDF Handlers.
Inheritance
System.Object
BaseRdfHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseRdfHandler : BaseHandler, IRdfHandler, INodeFactory
Constructors
| Improve this Doc View SourceBaseRdfHandler()
Creates a new RDF Handler.
Declaration
public BaseRdfHandler()
BaseRdfHandler(INodeFactory)
Creates a new RDF Handler using the given Node Factory.
Declaration
public BaseRdfHandler(INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
INodeFactory | factory | Node Factory. |
Properties
| Improve this Doc View SourceAcceptsAll
Gets whether the Handler will accept all Triples i.e. it will never abort handling early.
Declaration
public abstract bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceEndRdf(Boolean)
Ends the Handling of RDF.
Declaration
public void EndRdf(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether the parsing completed without error. |
EndRdfInternal(Boolean)
Optionally used by derived Handlers to do additional actions on ending RDF handling.
Declaration
protected virtual void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether the parsing completed without error. |
HandleBaseUri(Uri)
Handles Base URI declarations.
Declaration
public bool HandleBaseUri(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleBaseUriInternal(Uri)
Optionally used by derived Handlers to do additional actions on handling Base URI declarations.
Declaration
protected virtual bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleNamespace(String, Uri)
Handles Namespace declarations.
Declaration
public bool HandleNamespace(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleNamespaceInternal(String, Uri)
Optionally used by derived Handlers to do additional actions on handling namespace declarations.
Declaration
protected virtual bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleTriple(Triple)
Handles Triples.
Declaration
public bool HandleTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleTripleInternal(Triple)
Must be overridden by derived handlers to take appropriate Triple handling action.
Declaration
protected abstract bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
StartRdf()
Starts the Handling of RDF.
Declaration
public void StartRdf()
StartRdfInternal()
Optionally used by derived Handlers to do additional actions on starting RDF handling.
Declaration
protected virtual void StartRdfInternal()