RDF::Q...roject(3pm)
πΈ NAME πΈ
okay bestie, meet RDF::Query::Algebra::Project π
it's the algebra class for projection β yes, that whole "which variables are we even showing you" vibe. it lives in the User Contributed Perl Documentation section, so you know it's giving community-made, hand-crafted, iconic energy π«Ά
β¨ VERSION β¨
this doc is describing RDF::Query::Algebra::Project version 2.919. write it down, don't be that girl who asks later π
π METHODS π
lowkey important: on top of everything listed below, this class also inherits methods from the RDF::Query::Algebra class. so don't come for me if your fave method isn't here β check the parent, iykyk β¨
new ( $pattern, \@vars_and_exprs )β makes you a shiny new Project structure. feed it a pattern and an arrayref of vars-and-exprs and boom, you've got one πconstruct_argsβ gives you back a list of arguments that, if you pass them to this class' constructor, will clone this algebra pattern for you. it's giving copy-paste but make it classy πpatternβ hands you back the pattern to be sorted. yes that's what it says, no i will not elaborate, the source said it first πvarsβ returns the vars that we're projecting to. the chosen ones. the main characters πsseβ returns the SSE string for this algebra expression, fr fras_sparqlβ returns the SPARQL string for this algebra expression. so you can actually speak query, periodt π₯as_hashβ returns the query as a nested set of plain data structures. no objects allowed, we're going raw πas_spin ( $model )β adds statements to the given model so it can represent this algebra object in the SPARQL Inferencing Notation (http://www.spinrdf.org/) π¦typeβ returns the type of this algebra expression. identity check bestie, who are you really πreferenced_variablesβ returns a list of the variable names used in this algebra expressionbind_variables ( \%bound )β returns a new algebra pattern where the variables named in%boundgot swapped out for their corresponding bound values. glow-up via substitution β¨potentially_boundβ returns a list of the variable names used in this algebra expression that will bind values during execution. maybe. potentially. it's the "we'll see" of variable lists πdefinite_variablesβ returns a list of the variable names that are 100% gonna be bound after this algebra expression gets evaluated. no cap, these ones are locked in π₯is_solution_modifierβ returns true if this node is a solution modifier. vibe check on the node itself π
π AUTHOR π
this absolute legend wrote it:
Gregory Todd Williams <gwilliams@cpan.org>
give them their flowers, they earned them π
and that's the whole page bestie π«Ά this was perl v5.40.1, dated 2025-08-18 β so yes, fresh-ish, and it's literally titled RDF::Q...roject(3pm) on the tin because manpage headers love to truncate mid-word like that π the way that header just gave up on spelling Project... anyway. go project some variables. slay π
β¨
π¦ 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