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 aRDF::Query::Nodeobject. 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
- ubuntu resolute: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms