RDF::Q...a::Quad(3pm)

✨ NAME ✨

RDF::Query::Algebra::Quad β€” bestie, this is the algebra class for Quad patterns πŸ’–


πŸ¦‹ VERSION πŸ¦‹

This doc describes RDF::Query::Algebra::Quad version 2.919. yes, we're on the record, no cap.


πŸ’… METHODS πŸ’…

okay so first thing, before literally anything else: on top of all the methods listed below, this class inherits methods from the RDF::Query::Algebra class. so go peep that one too, iykyk 🫢

  • new ( $s, $p, $o, $g ) β€” hands you a brand new Quad structure back. four args: subject, predicate, object, graph. iconic.
  • as_sparql β€” returns the SPARQL string for this algebra expression. it's giving "translate my whole vibe into SPARQL" ✨
  • as_hash β€” returns the query as a nested set of plain data structures, like with no objects at all. just raw data vibes.
  • referenced_blanks β€” returns a list of the blank node names used in this algebra expression. all the anon besties, accounted for 🌸
  • qualify_uris ( \%namespaces, $base_uri ) β€” returns a new algebra pattern where every referenced Resource node that's representing a QName (ns:local) gets qualified using the %namespaces you supplied. glow-up for your QNames πŸ’…
  • bf () β€” returns a string representing the state of the nodes of the triple: bound or free. that's the whole vibe check, right there.
  • distinguish_bnode_variables β€” returns a new Quad object, except blank nodes got replaced by distinguished variables. bnodes, but make it identifiable πŸ‘‘
  • label ( $label => $value ) β€” sets the named $label to $value for this quad object. and if you don't pass a $value? it just returns the current label value, or undef if none exists. so it's a setter and a getter, unbothered, multifunctional 😭

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> β€” thank you for your service, fr fr πŸ’œ


okay that's the whole page, periodt. this was perl v5.40.1, dated 2025-08-18, and yeah the manual page name got squished into RDF::Q...a::Quad(3pm) up in the header but it's still us, the Quad page, your fave πŸŽ€ slay, go read a quad or something bestie πŸ¦‹

πŸ“¦ where this page comes from