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

πŸ’– RDF::Query::Expression::Unary β€” bestie edition πŸ’–

okay so. you know how sometimes you just need a whole class for expressions that only take one lil operand? yeah. that's this. the manual name is RDF::Q...::Unary(3pm) btw (the terminal truncates it like that, don't worry about it), and it's literally giving "Class for unary expressions." no notes. perfect. iconic. πŸŽ€


✨ VERSION ✨

This doc? It describes RDF::Query::Expression::Unary version 2.919 β€” as in, 2.919 exactly, not a typo, not a vibe, the actual number. ✨


🌸 METHODS 🌸

so here's the tea β˜•: beyond the methods listed down below, this class inherits methods from the RDF::Query::Expression class. so like, don't come for it for not having those, it got them from its parent, it's giving generational wealth πŸ’…

  • sse β€” hands you back the SSE string for this algebra expression. that's it, that's the whole job. slay. 🌈
  • as_sparql β€” same energy, different format: returns the SPARQL string for this algebra expression. two formats, one expression, we love a bilingual queen πŸ‘‘
  • evaluate ( $query, \%bound ) β€” does the evaluating thing using the bound variables you supply. and here's the important part bestie: it will return a RDF::Query::Node object. so it's not gonna hand you back a plain string and leave you confused, it's a whole node. periodt. πŸ”₯
tiny reminder that evaluate takes two things: $query and \%bound β€” a hashref of bound variables. feed it right or it's gonna be a sad little moment 😭

πŸ¦‹ AUTHOR πŸ¦‹

Gregory Todd Williams <gwilliams@cpan.org> β€” the actual main character who wrote this. give them their flowers πŸ’


and that's the whole page fr fr 🫢 this was RDF::Q...::Unary(3pm) from perl v5.40.1, dated 2025-08-18, User Contributed Perl Documentation, and this has been your unhinged little documentation tour. mwah πŸ’‹ go write some expressions bestie πŸ’œ

πŸ“¦ where this page comes from