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

✨ NAME ✨

RDF::Query::Algebra::Extend β€” the algebra class for extending the variable projection, bestie πŸ’–

Like, it's giving "we already have a pattern, but now we're gonna add MORE variables to it." Main character energy, honestly.


🌸 VERSION 🌸

This doc describes RDF::Query::Algebra::Extend version 2.919. Yes, she has a version number and yes, she's proud of it πŸ’…


πŸ¦‹ METHODS πŸ¦‹

Okay so first thing first, bestie: beyond everything listed down here, this class also inherits methods from the RDF::Query::Algebra class. So don't come for her saying she's missing stuff β€” she got it from her parent class, periodt ✨

  • new ( $pattern, \@vars_and_exprs ) β€” hands you back a brand new Extend structure. Fresh out the box, no cap πŸŽ€
  • construct_args β€” returns a list of arguments that, if you pass them to this class' constructor, will give you a clone of this exact algebra pattern. It's giving copy-paste but make it a method 🫢
  • pattern β€” returns the pattern to be sorted. That's it, that's the whole job πŸ’€
  • vars β€” returns the vars that are getting extended. The whole point of the class, honestly 🌟
  • 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... and no objects, okay? We're going raw data structures here. No object glue, just vibes 🌈
  • type β€” returns the type of this algebra expression. Identity check but for algebra πŸ”₯
  • referenced_variables β€” returns a list of every variable name used in this algebra expression. The whole squad, accounted for πŸ‘‘
  • potentially_bound β€” returns a list of the variable names used in this algebra expression that are gonna bind values while it executes. "potentially" is doing a LOT of heavy lifting in that sentence, ngl πŸ™ˆ
  • definite_variables β€” returns a list of the variable names that are for sure bound after this algebra expression gets evaluated. No maybes on this one, fr fr πŸ’–
  • is_solution_modifier β€” returns true if this node is a solution modifier. Simple as that, bestie ⭐

πŸ’œ AUTHOR πŸ’œ

Gregory Todd Williams <gwilliams@cpan.org> β€” the icon, the legend, the one who wrote this whole thing for us 🫢


okay that's the whole page!! no notes, she ate πŸ’… perl v5.40.1, dated 2025-08-18 β€” go forth and extend those variables, bestie, you're literally so good at this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from