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

✨ NAME ✨

RDF::Query::Expression::Alias β€” bestie, this is the class that gives expressions a whole alias makeover, like slapping a variable name on them πŸ’…

It's from the RDF::Q...::Alias(3pm) page in the User Contributed Perl Documentation, and yes, the name is giving "abbreviated because the terminal is only 80 columns wide" energy. We move. πŸ¦‹


🌸 VERSION 🌸

This document describes RDF::Query::Expression::Alias version 2.919 β€” that's the vibe check, no cap.


πŸŽ€ METHODS πŸŽ€

Okay so quick heads up before we get into it: beyond all the methods listed below, this class also inherits methods from the RDF::Query::Expression class. So it's got main character methods of its own and generational inherited talent. Periodt. πŸ‘‘

  • "name" β€” hands you the variable name of the aliased expression. Just the name, the label, the little nametag it's wearing. 🏷️
  • "alias" β€” gives you back the variable object of the aliased expression. Not the name this time bestie, the actual object. Different thing, don't mix them up. πŸ’–
  • "expression" β€” returns the expression object of the aliased expression. The whole point of the whole class, honestly. The thing being aliased. The moment. ✨
  • "sse" β€” returns the SSE string for this algebra expression. String it up, ship it out. 🌈
  • "as_sparql" β€” returns the SPARQL string for this algebra expression. Same energy, SPARQL flavored. πŸ”₯
  • "evaluate ( $query, \%bound, $context )" β€” evaluates the expression using the supplied bound variables. Takes $query, a hashref of bound stuff \%bound, and $context, and it will return a RDF::Query::Node object. That's the return type, remember it. 🧚
  • "as_hash" β€” returns the alias as a nested set of plain data structures, and by "plain" we mean no objects. Zero objects. It's just nested hashes/arrays living their simple little lives. πŸ™ˆ

πŸ’€ Lowkey important reminder: this class inherits from RDF::Query::Expression, so if you don't see a method here, check the parent before you start panicking in the group chat. Not everything is documented on this page, fr fr.

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> β€” the icon, the legend, the one who wrote all this down so we could thrive. 🫢


and that's the whole page bestie!! 🌸 documented under perl v5.40.1, dated 2025-08-18, page name RDF::Q...::Alias(3pm) β€” go forth and alias your expressions, slay, bye πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from