Class SparqlResultBinder
Helper Class used in the execution of Sparql Queries.
Implements
System.IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public abstract class SparqlResultBinder : IDisposable
Constructors
| Improve this Doc View SourceSparqlResultBinder()
Internal Empty Constructor for derived classes.
Declaration
protected SparqlResultBinder()
SparqlResultBinder(SparqlQuery)
Creates a new Results Binder.
Declaration
public SparqlResultBinder(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | Query this provides Result Binding to. |
Properties
| Improve this Doc View SourceBindingIDs
Gets the enumeration of valid Binding IDs.
Declaration
public abstract IEnumerable<int> BindingIDs { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><int> |
Groups
Gets the set of Groups that result from the Query this Binder provides Binding to.
Declaration
public IEnumerable<BindingGroup> Groups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><BindingGroup> |
Variables
Gets the Variables that the Binder stores Bindings for.
Declaration
public abstract IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> |
Methods
| Improve this Doc View SourceDispose()
Disposes of a Result Binder.
Declaration
public virtual void Dispose()
Group(int)
Gets the Group referred to by the given ID.
Declaration
public virtual BindingGroup Group(int groupID)
Parameters
Type | Name | Description |
---|---|---|
int | groupID | Group ID. |
Returns
Type | Description |
---|---|
BindingGroup |
IsGroup(int)
Checks whether the given ID refers to a Group.
Declaration
public virtual bool IsGroup(int groupID)
Parameters
Type | Name | Description |
---|---|---|
int | groupID | Group ID. |
Returns
Type | Description |
---|---|
System.Boolean |
SetGroupContext(bool)
Sets the Group Context for the Binder.
Declaration
public virtual void SetGroupContext(bool accessContents)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | accessContents | Whether you want to access the Group Contents or the Groups themselves. |
Value(string, int)
Gets the Value bound to a given Variable for a given Binding ID.
Declaration
public abstract INode Value(string name, int bindingID)
Parameters
Type | Name | Description |
---|---|---|
string | name | Variable Name. |
int | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
INode |
Implements
System.IDisposable