---
name: "Attean::AggregateExpression"
section: "3pm"
platform: "linux"
package: "libattean-perl"
version: "0.035-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Attean::AggregateExpression"
---

# Attean::AggregateExpression(3pm)

Representation of aggregate expression trees

## NAME

Attean::AggregateExpression - Representation of aggregate expression trees

## VERSION

This document describes Attean::AggregateExpression version 0.035

## DESCRIPTION

The Attean::AggregateExpression class represents an expression tree where the root node is an aggregate operation (e.g. SUM(?a) or COALESCE(?a/?b, ?c, 0)).

## ROLES

This role consumes the Attean::API::AggregateExpression role.

## ATTRIBUTES

The following attributes exist:

- "operator"

  The name of the aggregate operator, from the allowable set: COUNT, SUM, MIN, MAX, AVG, GROUP\_CONCAT, SAMPLE.

- "scalar\_vars"

  A HASH reference of scalar variables. The only scalar variable defined for SPARQL 1.1 is `'seperator'`, a string separator used with the GROUP\_CONCAT aggregate.

- "distinct"

  A boolean indicating whether the aggregate should operate over distinct term sets, or full multisets.

- "variable"

  A Attean::API::Variable object which will be bound to the produced aggregate value in results.

## BUGS

Please report any bugs or feature requests to through the GitHub web interface at \<https://github.com/kasei/attean/issues\>.

## SEE ALSO

## AUTHOR

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

## COPYRIGHT

Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
