RDF::Q...attern(3pm)

✨ NAME ✨

RDF::Query::Algebra::GroupGraphPattern β€” the algebra class for GroupGraphPattern patterns, bestie πŸ’…

Like, if you're poking around RDF::Q...attern (that's the manual page name, she's shy about her full title), this is the class you're reading about. It's giving group graph pattern, but as algebra. πŸ¦‹


🌸 VERSION 🌸

This doc describes RDF::Query::Algebra::GroupGraphPattern version 2.919. That's the one, periodt.


πŸ’– METHODS πŸ’–

Okay so heads up: on top of everything listed below, this class also inherits methods from the RDF::Query::Algebra class. So if you don't see it here, check there first, iykyk 🫢

  • new ( @graph_patterns ) β€” hands you a brand new GroupGraphPattern structure. Feed her the graph patterns as args and she's ready to slay ✨
  • construct_args β€” returns a list of arguments that, if you pass them to this class' constructor, will produce a clone of this algebra pattern. It's literally a clone recipe πŸ“‹
  • patterns β€” returns a list of the graph patterns chillin' inside this GGP πŸŽ€
  • add_pattern β€” appends a new child pattern to the GGP. She's growing, she's thriving 🌱
  • quads β€” returns a list of the quads that belong to this GGP. Quads! Four of everything! πŸ”₯
  • sse β€” returns the SSE string for this algebra expression.
  • explain β€” returns a string serialization of the algebra that's appropriate for display on the command line. For when you want her to explain herself πŸ’
  • as_sparql β€” returns the SPARQL string for this algebra expression. Turning algebra back into SPARQL, no cap πŸ‘‘
  • as_hash β€” returns the query as a nested set of plain data structures (no objects). Just vibes and hashes, nothing fancy 🌈
  • as_spin ( $model ) β€” adds statements to the given $model to represent this algebra object in the SPARQL Inferencing Notation (<http://www.spinrdf.org/>). SPIN!!! 🎑
  • type β€” returns the type of this algebra expression. Who is she? This tells you πŸ’œ
  • referenced_variables β€” returns a list of the variable names used in this algebra expression.
  • potentially_bound β€” returns a list of the variable names used in this algebra expression that will bind values during execution. Potentially β€” she's not making promises, she's making plans πŸ™ˆ
  • definite_variables β€” returns a list of the variable names that will be bound after evaluating this algebra expression. These ones are locked in fr fr πŸ”’
  • check_duplicate_blanks β€” returns true if blank nodes respect the SPARQL rule of no blank-label re-use across BGPs. Otherwise? She throws a RDF::Query::Error::QueryPatternError exception. 😭 So like, if this blows up, that's not a vibe, that's a rule violation.
⚠️ Note the difference between potentially_bound and definite_variables β€” one is a maybe, one is a yes. Don't mix them up bestie, it's giving chaos πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> πŸ’–


okay that's the whole page, you ate that πŸ“ if you made it this far you're genuinely iconic, go write some queries and be the main character of your own triple store πŸ’…

This was cooked up for perl version v5.40.1, dated 2025-08-18, and it lives its life as RDF::Q...attern(3pm) in the User Contributed Perl Documentation. Byeee, love you 🫢✨

πŸ“¦ where this page comes from