RDF::Q...regate(3pm)

✨ NAME ✨

RDF::Query::Algebra::Aggregate β€” bestie, it's the Algebra class for aggregate patterns πŸŽ€


🌸 VERSION

This doc is describing RDF::Query::Algebra::Aggregate version 2.919. That's the one, no cap. πŸ’–


πŸ¦‹ METHODS

Okay so real talk: on top of everything listed down here, this class also inherits methods from the RDF::Query::Algebra class. So go peek at that one too, iykyk. πŸ‘‘

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

Hands you back a brand new Aggregate structure. It groups by the named bindings sitting in @groupby, and then it returns new bindings for the $alias you named, for the operation $op running on column $col. πŸ’…

And $op? She can be one of exactly these: COUNT, MIN, MAX, SUM. Periodt. 🌈

  • construct_args β€” gives you back a list of arguments that, if you pass them straight into this class' constructor, will produce a clone of this algebra pattern. Baby, it's a copy-paste cheat code. πŸ”₯
  • pattern β€” returns the aggregates pattern. That's it, that's the whole vibe. ✨
  • groupby β€” returns the aggregate's GROUP BY binding names. 🫢
  • ops β€” returns a list of tuples as ARRAY refs, and each one is holding "$alias, $op, @cols". Little bundles of joy. πŸŽ€
  • 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, just vibes and plain data. 😌
  • 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. She might show up, fr fr. πŸ’«
  • definite_variables β€” returns a list of the variable names that will be bound after evaluating this algebra expression. These ones are showing up for sure, no doubt. πŸ‘‘

πŸ’– AUTHOR

Gregory Todd Williams <gwilliams@cpan.org> β€” shoutout to the icon who wrote all this. 🫢


And that's the whole page, bestie!! 🧚 This was RDF::Query::Algebra::Aggregate per the docs shipped with perl v5.40.1, dated 2025-08-18. Slay, go write some aggregates. πŸ’…βœ¨

πŸ“¦ where this page comes from