Class SparqlResultBinder
Helper Class used in the execution of Sparql Queries.
Implements
System.IDisposable
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.Query
Assembly: dotNetRDF.dll
Syntax
public abstract class SparqlResultBinder : IDisposable
Remarks
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<System.Int32> |
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<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<System.String> |
Methods
| Improve this Doc View SourceDispose()
Disposes of a Result Binder.
Declaration
public virtual void Dispose()
Group(Int32)
Gets the Group referred to by the given ID.
Declaration
public virtual BindingGroup Group(int groupID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | groupID | Group ID. |
Returns
Type | Description |
---|---|
BindingGroup |
IsGroup(Int32)
Checks whether the given ID refers to a Group.
Declaration
public virtual bool IsGroup(int groupID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | groupID | Group ID. |
Returns
Type | Description |
---|---|
System.Boolean |
SetGroupContext(Boolean)
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, Int32)
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 |
---|---|---|
System.String | name | Variable Name. |
System.Int32 | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
INode |
Implements
System.IDisposable