Class BaseResultsHandler
Abstract Base Class for SPARQL Results Handlers.
Inheritance
System.Object
BaseResultsHandler
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 BaseResultsHandler : BaseHandler, ISparqlResultsHandler, INodeFactory
Constructors
| Improve this Doc View SourceBaseResultsHandler()
Creates a new SPARQL Results Handler.
Declaration
public BaseResultsHandler()
BaseResultsHandler(INodeFactory)
Creates a new SPARQL Results Handler.
Declaration
public BaseResultsHandler(INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
INodeFactory | factory | Node Factory. |
Methods
| Improve this Doc View SourceEndResults(Boolean)
Ends Results Handling.
Declaration
public void EndResults(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether parsing completed without error. |
EndResultsInternal(Boolean)
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(Boolean)
Handles a Boolean Results.
Declaration
public void HandleBooleanResult(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Result. |
HandleBooleanResultInternal(Boolean)
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(SparqlResult)
Handlers SPARQL Results.
Declaration
public bool HandleResult(SparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
SparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleResultInternal(SparqlResult)
Must be overridden by derived handlers to appropriately handler SPARQL Results.
Declaration
protected abstract bool HandleResultInternal(SparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
SparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
HandleVariable(String)
Handles a Variable declaration.
Declaration
public bool HandleVariable(string var)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.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()