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

✨ NAME ✨

RDF::Query::Algebra::BasicGraphPattern β€” it's the algebra class for BasicGraphPattern patterns, bestie πŸ’–

So like, this is a Perl manpage from User Contributed Perl Documentation, and the manual name it lives under is RDF::Q...attern(3pm) (yes the name got truncated, that's just how it is, no cap 🫢).


🌸 VERSION 🌸

This doc describes RDF::Query::Algebra::BasicGraphPattern version 2.919. Periodt.


πŸ’… METHODS πŸ’…

Okay so heads up before we even get into it: on top of all the methods listed below, this class also inherits methods from the RDF::Query::Algebra class. So the toolbox is bigger than this list, iykyk ✨

  • new ( @triples ) β€” hands you back a brand new BasicGraphPattern structure. Fresh out the box πŸŽ€
  • construct_args β€” returns a list of arguments that, if you pass them to this class' constructor, will produce a clone of this algebra pattern. Basically the recipe to rebuild the same thing 🧚
  • triples β€” returns a list of the triples that belong to this BGP.
  • quads β€” returns a list of the (implicit) quads belonging to this BGP.
  • sse β€” returns the SSE string for this algebra expression.
  • explain β€” returns a string serialization of the algebra, appropriate for displaying on the command line.
  • as_sparql β€” returns the SPARQL string for this algebra expression.
  • as_hash β€” returns the query as a nested set of plain data structures. No objects invited to this party πŸ™ˆ
  • as_spin ( $model ) β€” adds statements to the given model to represent this algebra object in the SPARQL Inferencing Notation (http://www.spinrdf.org/).
  • type β€” returns the type of this algebra expression.
  • 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.
  • definite_variables β€” returns a list of the variable names that will be bound after evaluating this algebra expression. So like, the guaranteed ones πŸ’œ
  • connected β€” returns true if the pattern is connected through shared variables, false otherwise.
  • subsumes ( $pattern ) β€” returns true if the bgp subsumes the pattern, false otherwise.
  • bf () β€” returns a string representing the state of the nodes of the triple (bound or free).
  • clone
  • bind_variables ( \%bound ) β€” returns a new algebra pattern with variables named in %bound replaced by their corresponding bound values.
not me noticing clone is just sitting there with no description πŸ‘€ it's giving mysterious. Anyway, it's in the list, so it's in the list. Slay.

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> 🌈


That's literally it bestie, go forth and basic-graph-pattern πŸ’– This was page RDF::Q...attern(3pm) from the User Contributed Perl Documentation, generated from perl v5.40.1, dated 2025-08-18. Main character energy, no notes. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from