---
name: "RDF::Query::Algebra::Aggregate"
section: "3pm"
platform: "linux"
package: "librdf-query-perl"
version: "2.919-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/RDF::Query::Algebra::Aggregate"
---

# RDF::Query::Algebra::Aggregate(3pm)

Algebra class for aggregate patterns

## NAME

RDF::Query::Algebra::Aggregate - Algebra class for aggregate patterns

## VERSION

This document describes RDF::Query::Algebra::Aggregate version 2.919.

## METHODS

Beyond the methods documented below, this class inherits methods from the RDF::Query::Algebra class.

- "new ( $pattern, \\@groupby, $alias =" \[$op =\> $col\] )\>

  - "new ( $pattern, \\@groupby, expressions =" \[ $alias =\> \[$op, \\%options, @cols\] \] )\>

  Returns a new Aggregate structure. Groups by the named bindings in `@groupby`, and returns new bindings for the named `$alias` for the operation `$op` on column `$col`.

  `$op` may be one of: COUNT, MIN, MAX, SUM.

- "construct\_args"

  Returns a list of arguments that, passed to this class' constructor, will produce a clone of this algebra pattern.

- "pattern"

  Returns the aggregates pattern.

- "groupby"

  Returns the aggregate's GROUP BY binding names.

- "ops"

  Returns a list of tuples as ARRAY refs containing `"$alias, $op, @cols"`.

- "sse"

  Returns the SSE string for this algebra expression.

- "as\_sparql"

  Returns the SPARQL string for this algebra expression.

- "as\_hash"

  Returns the query as a nested set of plain data structures (no objects).

- "type"

  Returns the type of this algebra expression.

- "referenced\_variables"

  Returns a list of the variable names used in this algebra expression.

- "potentially\_bound"

  Returns a list of the variable names used in this algebra expression that will bind values during execution.

- "definite\_variables"

  Returns a list of the variable names that will be bound after evaluating this algebra expression.

## AUTHOR

```
 Gregory Todd Williams <gwilliams@cpan.org>
```
