Class BaseResultsHandler
Abstract Base Class for SPARQL Results Handlers.
Inheritance
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseResultsHandler : BaseHandler, ISparqlResultsHandler, INodeFactory
Constructors
| Improve this Doc View SourceBaseResultsHandler()
Creates a new SPARQL Results Handler.
Declaration
protected BaseResultsHandler()
BaseResultsHandler(INodeFactory)
Creates a new SPARQL Results Handler.
Declaration
protected BaseResultsHandler(INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
INodeFactory | factory | Node Factory. |
Methods
| Improve this Doc View SourceEndResults(bool)
Ends Results Handling.
Declaration
public void EndResults(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether parsing completed without error. |
EndResultsInternal(bool)
Optionally used by derived classes to take additional actions on ending Results Handling.
Declaration
protected virtual void EndResultsInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether parsing completed without error. |
HandleBooleanResult(bool)
Handles a Boolean Results.
Declaration
public void HandleBooleanResult(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Result. |
HandleBooleanResultInternal(bool)
Must be overridden by derived handlers to appropriately handle boolean results.
Declaration
protected abstract void HandleBooleanResultInternal(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Result. |
HandleResult(ISparqlResult)
Handlers SPARQL Results.
Declaration
public bool HandleResult(ISparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleResultInternal(ISparqlResult)
Must be overridden by derived handlers to appropriately handler SPARQL Results.
Declaration
protected abstract bool HandleResultInternal(ISparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleVariable(string)
Handles a Variable declaration.
Declaration
public bool HandleVariable(string var)
Parameters
Type | Name | Description |
---|---|---|
string | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleVariableInternal(string)
Must be overridden by derived handlers to appropriately handle variable declarations.
Declaration
protected abstract bool HandleVariableInternal(string var)
Parameters
Type | Name | Description |
---|---|---|
string | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
StartResults()
Starts Results Handling.
Declaration
public void StartResults()
StartResultsInternal()
Optionally used by derived classes to take additional actions on starting Results Handling.
Declaration
protected virtual void StartResultsInternal()