Class GroupByVariable
Represents a Grouping on a given Variable.
Implements
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)
Namespace: VDS.RDF.Query.Grouping
Assembly: dotNetRDF.dll
Syntax
public class GroupByVariable : BaseGroupBy, ISparqlGroupBy
Constructors
| Improve this Doc View SourceGroupByVariable(String)
Creates a new Group By which groups by a given Variable.
Declaration
public GroupByVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Variable Name. |
GroupByVariable(String, String)
Creates a new Group By which groups by a given Variable and assigns to another variable.
Declaration
public GroupByVariable(string name, string assignVariable)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Variable Name. |
System.String | assignVariable | Assign Variable. |
Properties
| Improve this Doc View SourceExpression
Gets the Variable Expression Term used by this GROUP BY.
Declaration
public override ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Overrides
| Improve this Doc View SourceProjectableVariables
Gets the Projectable Variables used in the GROUP BY i.e. Variables that are grouped upon and Assigned Variables.
Declaration
public override IEnumerable<string> ProjectableVariables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Overrides
| Improve this Doc View SourceVariables
Gets the Variables used in the GROUP BY.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Overrides
Methods
| Improve this Doc View SourceApply(SparqlEvaluationContext)
Applies a Grouping on a given Variable to the Binder.
Declaration
public override List<BindingGroup> Apply(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<BindingGroup> |
Overrides
| Improve this Doc View SourceApply(SparqlEvaluationContext, List<BindingGroup>)
Applies a Grouping on a given Variable to the Binder Groups from a previous Grouping.
Declaration
public override List<BindingGroup> Apply(SparqlEvaluationContext context, List<BindingGroup> groups)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Collections.Generic.List<BindingGroup> | groups | Binder Group to subgroup. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<BindingGroup> |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the GROUP BY.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()