RDF::Q...Algebra(3pm)
π NAME π
RDF::Query::Algebra β bestie, this is the base class for Algebra expressions. The blueprint. The blueprint-est. π
This one lives in the User Contributed Perl Documentation section, so it's giving 3pm energy, and its whole government name is RDF::Query::Algebra. π
β¨ VERSION β¨
Okay so this doc is describing RDF::Query::Algebra version 2.919. Write it down, periodt. π
πΈ METHODS πΈ
potentially_boundβ hands you a list of the variable names used in this algebra expression that are gonna bind values while it's executing. The "might actually show up with receipts" list. πreferenced_blanksβ gives you a list of the blank node names used in this algebra expression. The unnamed besties. π¦referenced_functionsβ gives you a list of the Function URIs used in this algebra expression. π₯check_duplicate_blanksβ returns true if the blank nodes are respecting the SPARQL rule of no blank-label re-use across BGPs. And if they aren't? It throws anRDF::Query::Error::QueryPatternErrorexception. Not a vibe check that you pass, bestie β it's a vibe check that throws. π
Heads up: breaking that SPARQL blank-label rule does not get a warning. It gets an exception. Rules are rules. π
qualify_uris ( \%namespaces, $base_uri )β returns a brand new algebra pattern where all the referenced Resource nodes that represent QNames (ns:local) have been qualified using the%namespacesyou passed in. Glow-up complete. β¨bind_variables ( \%bound )β returns a new algebra pattern where the variables named in%boundget swapped out for their corresponding bound values. It's a makeover, not a mutation. πis_solution_modifierβ returns true if this node is a solution modifier. Simple. Iconic. No notes. πsubpatterns_of_type ( $type [, $block] )β returns a list of Algebra patterns matching$type, tested withisa. If you hand it a$block, then the matching stops descending down a subtree whenever the current node is of type$block, and it just keeps matching on the other subtrees instead. And yes: this list includes the current algebra object itself if it matches$type, and it's generated in infix order. π§from_sse ( $sse, \%context )β give it an SSE serialization, and it hands you back the corresponding algebra expression. Glow-up in reverse β serialized to algebra. π
π FUNCTIONS π
triple ( $subj, $pred, $obj )β returns anRDF::Query::Algebra::Tripleobject built from the node objects you supply. Three little ingredients, one slay. πbgp ( @triples )β returns anRDF::Query::Algebra::BasicGraphPatternobject with all those triples you gave it. π«Άggp ( @patterns )β returns anRDF::Query::Algebra::GroupGraphPatternobject with the algebra patterns you supplied. The group chat of algebra. π
π AUTHOR π
The one and only Gregory Todd Williams <gwilliams@cpan.org>. Genius behavior, fr fr. π
And that's the whole page, bestie β brought to you by perl v5.40.1, dated 2025-08-18. Obsessed with her honestly. Byeee πβ¨
π¦ 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