RDF::Q...ptional(3pm)
π RDF::Query::Algebra::Optional β bestie edition π
okay so this is the RDF::Query::Algebra::Optional page, from the RDF::Query crew β it's the algebra class for Optional patterns (you know, the OPTIONAL { ... } girlies in SPARQL). It lives in the 3pm section of your manual pages, and it's giving very "quietly powerful supporting character" energy. π¦
β¨ VERSION β¨
This document describes RDF::Query::Algebra::Optional version 2.919. That's the one we're talking about, no cap. π
πΈ METHODS πΈ
quick heads up before we get into it: beyond everything listed down here, this class inherits methods from the RDF::Query::Algebra class. So it's got lore beyond this page, iykyk. π
new ( $pattern, $opt_pattern )β hands you back a brand newOptionalstructure. Fresh out the box, sparkly, ready to go. β¨construct_argsβ returns a list of arguments that, if you pass them straight into this class' constructor, will give you a clone of this algebra pattern. It's basically the build-a-bear instructions for this object. π§Έpatternβ returns the base pattern (that's the LHS, the left-hand side) that the optional pattern joins onto. The main character that everything else attaches to. πoptionalβ returns the optional pattern β the RHS, right-hand side. This is the "if it's there, slay; if not, we move on" part. πsseβ returns the SSE string for this algebra expression. One string, fully expressing the whole algebra vibe.as_sparqlβ returns the SPARQL string for this algebra expression. Yes bestie, it can speak SPARQL. π£οΈas_spin ( $model )β adds statements to the given model to represent this algebra object in the SPARQL Inferencing Notation (http://www.spinrdf.org/). So it feeds$modelthe SPIN representation. Iconic interop behaviour. πas_hashβ returns the query as a nested set of plain data structures β no objects invited to the party. Just hashes all the way down. πtypeβ returns the type of this algebra expression. What is it? It'll tell you.referenced_variablesβ returns a list of the variable names used in this algebra expression. Every var that shows up gets a shoutout. πpotentially_boundβ returns a list of the variable names used in this algebra expression that will bind values during execution. "Potentially" is doing a lot of work in that name and honestly, same. πdefinite_variablesβ returns a list of the variable names that will be bound after evaluating this algebra expression. No maybes here. These ones are committed. π―
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β thank you for your service, king. π«Ά
and that's the whole page, bestie! this lil doc came to you courtesy of perl v5.40.1, dated 2025-08-18, and it's a RDF::Q...ptional(3pm) situation β yes the header truncates it like that, tragic, we don't talk about it. π go forth and optional-pattern responsibly. πΈπβ¨
π¦ 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