Class SparqlResultBinder
Helper Class used in the execution of Sparql Queries.
Implements
Inherited Members
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public abstract class SparqlResultBinder : IDisposable
  Constructors
| Edit this page 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
| Edit this page View SourceBindingIDs
Gets the enumeration of valid Binding IDs.
Declaration
public abstract IEnumerable<int> BindingIDs { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<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 | 
|---|---|
| IEnumerable<BindingGroup> | 
Variables
Gets the Variables that the Binder stores Bindings for.
Declaration
public abstract IEnumerable<string> Variables { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<string> | 
Methods
| Edit this page 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 | 
|---|---|
| bool | 
SetGroupContext(bool)
Sets the Group Context for the Binder.
Declaration
public virtual void SetGroupContext(bool accessContents)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | 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 |