RDF::Q...nstruct(3pm)
π NAME π
RDF::Query::Plan::Construct β okay so bestie, this is the executable query plan that constructs a whole new graph out of a set of variable bindings. Yes, we're literally building graphs out here. Main character energy only β¨
πΈ VERSION πΈ
This doc is describing RDF::Query::Plan::Construct version 2.919. No cap, that's the number, don't come for me π«Ά
β¨ METHODS β¨
So real talk β beyond everything listed down here, this class also inherits a bunch of methods from the RDF::Query::Plan class. Family traits, iykyk π
new ( $plan, \@triples )β the constructor kinda thing, it makes the thing.execute ( $execution_context )β runs it. Do the thing, bestie.nextβ grabs the next one.closeβ shuts it down, we're done here, thank you next π₯patternβ returns the query plan that's gonna be used to produce the variable bindings, which then get used to construct the new graph. It's giving "the blueprint for the blueprint" honestly.triplesβ returns the triples that are going to be used when constructing the new graph, for each variable binding. One binding, one set of triples, iconic behavior.distinctβ returns true if the pattern is guaranteed to return distinct results. Guaranteed, periodt πorderedβ returns true if the pattern is guaranteed to return ordered results. Same deal, guaranteed order, slay.plan_node_nameβ returns the string name of this plan node, and it's suitable for use in serialization. String name, serialization-ready, we love a versatile queen.plan_prototypeβ returns a list of scalar identifiers that describe the type of the content (children) nodes of this plan node. And bestie, you can peek atRDF::Query::Planfor the list of allowable identifiers if you need the receipts.plan_node_dataβ returns the data for this plan node that corresponds to the values described by the signature thatplan_prototypehands back. It's the matching set, fr fr.explainβ returns a string serialization of the query plan, appropriate for display on the command line. Perfect for when you want the whole vibe printed at your terminal πgraph ( $g )β does the graph thing with$g.as_iterator ( $context )β returns anRDF::Trine::Iteratorobject for the current plan, which is already executed btw. Already. Executed. We're past that stage π
π¦ AUTHOR π¦
Gregory Todd Williams <gwilliams@cpan.org> β thank you for this, king π
Okay so that's the whole page bestie, we ate and left absolutely no crumbs π This was RDF::Q...nstruct(3pm), living under User Contributed Perl Documentation, running on perl v5.40.1 and dated 2025-08-18. Mwah, go construct something cute πβ¨πΈ
π¦ 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