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 at RDF::Query::Plan for 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 that plan_prototype hands 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 an RDF::Trine::Iterator object 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