Interface ISparqlAggregate
Interface for SPARQL Aggregates which can be used to calculate aggregates over Results.
Namespace: VDS.RDF.Query.Aggregates
Assembly: dotNetRdf.dll
Syntax
public interface ISparqlAggregate
  Properties
| Edit this page View SourceArguments
Gets the Arguments of the Aggregate.
Declaration
IEnumerable<ISparqlExpression> Arguments { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<ISparqlExpression> | 
Expression
Gets the Expression that the Aggregate is applied to.
Declaration
ISparqlExpression Expression { get; }
  Property Value
| Type | Description | 
|---|---|
| ISparqlExpression | 
Functor
Gets the URI/Keyword of the Aggregate.
Declaration
string Functor { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Type
Gets the Type of the Aggregate.
Declaration
SparqlExpressionType Type { get; }
  Property Value
| Type | Description | 
|---|---|
| SparqlExpressionType | 
Methods
| Edit this page View SourceAccept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding>, TContext, IEnumerable<TBinding>)
Called when the aggregate is visited during algebra processing.
Declaration
TResult Accept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding> processor, TContext context, IEnumerable<TBinding> bindings)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISparqlAggregateProcessor<TResult, TContext, TBinding> | processor | The processor that handles this algebra.  | 
      
| TContext | context | The current context.  | 
      
| IEnumerable<TBinding> | bindings | The current set of bindings.  | 
      
Returns
| Type | Description | 
|---|---|
| TResult | The result of the aggregate processing.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResult | The type of result object returned by the processor.  | 
      
| TContext | The type of the context object to be passed to the processor.  | 
      
| TBinding | The type of the binding objects to be passed to the processor.  |