Class BindingGroup
Represents an Group of Bindings which is used when executing Queries with GROUP BY clauses.
Inherited Members
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class BindingGroup : IEnumerable<int>, IEnumerable
Constructors
| Edit this page View SourceBindingGroup()
Creates a new Binding Group.
Declaration
public BindingGroup()
BindingGroup(IEnumerable<int>)
Creates a new Binding Group from the specified IDs.
Declaration
public BindingGroup(IEnumerable<int> ids)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<int> | ids | IDs. |
BindingGroup(BindingGroup)
Creates a new Binding Group which is a sub-group of the given Parent Group.
Declaration
public BindingGroup(BindingGroup parent)
Parameters
Type | Name | Description |
---|---|---|
BindingGroup | parent | Parent Group. |
Properties
| Edit this page View SourceAssignments
Gets the Variable Assignments for the Group.
Declaration
public IEnumerable<KeyValuePair<string, INode>> Assignments { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<string, INode>> |
BindingIDs
Gets the Binding IDs in the Group.
Declaration
public IEnumerable<int> BindingIDs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<int> |
Methods
| Edit this page View SourceAdd(int)
Adds a Binding ID to the Group.
Declaration
public void Add(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | ID. |
AddAssignment(string, INode)
Adds a Variable Assignment to the Group.
Declaration
public void AddAssignment(string variable, INode value)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
INode | value | Value. |
GetEnumerator()
Gets the Enumerator for the Binding IDs in the Group.
Declaration
public IEnumerator<int> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<int> |
ToString()
Gets a String summarising the group.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |