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
| Edit this page 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
| Edit this page View SourceEndResults(bool)
Ends Results Handling.
Declaration
public void EndResults(bool ok)
Parameters
Type | Name | Description |
---|---|---|
bool | 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 |
---|---|---|
bool | ok | Whether parsing completed without error. |
HandleBooleanResult(bool)
Handles a Boolean Results.
Declaration
public void HandleBooleanResult(bool result)
Parameters
Type | Name | Description |
---|---|---|
bool | 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 |
---|---|---|
bool | result | Result. |
HandleResult(ISparqlResult)
Handlers SPARQL Results.
Declaration
public bool HandleResult(ISparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResult | result | Result. |
Returns
Type | Description |
---|---|
bool |
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 |
---|---|
bool |
HandleVariable(string)
Handles a Variable declaration.
Declaration
public bool HandleVariable(string var)
Parameters
Type | Name | Description |
---|---|---|
string | var | Variable Name. |
Returns
Type | Description |
---|---|
bool |
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 |
---|---|
bool |
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()