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

πŸ¦‹ RDF::Query::Algebra::Triple πŸ’…

okay so bestie, sit down, hydrate, and let me tell you about RDF::Query::Algebra::Triple β€” it's from the User Contributed Perl Documentation collection (iykyk) and it is literally the algebra class for Triple patterns. that's the whole vibe. Triples are its moment and it is serving. 🌸


✨ NAME ✨

RDF::Query::Algebra::Triple β€” Algebra class for Triple patterns. iconic behavior honestly. πŸ”₯


🌈 VERSION 🌈

this doc describes RDF::Query::Algebra::Triple version 2.919. periodt. πŸ’–


πŸ’« METHODS πŸ’«

first of all, before we even get into it: beyond the methods documented right here, this class inherits methods from the RDF::Query::Algebra class. so if you're looking for something and it's not listed below, it's probably up in the parent class, being the main character. 🫢

new ( $s, $p, $o )

hands you back a brand-new Triple structure. fresh out the box, three args, no notes. ✨

as_sparql

gives you the SPARQL string for this algebra expression. it's giving translation services, and it ate. πŸ’…

as_hash

returns the query as a nested set of plain data structures β€” and the key detail here bestie: no objects. just plain data, all the way down. πŸ“

as_spin ( $model )

adds statements to the given model so this algebra object gets represented in the SPARQL Inferencing Notation (<http://www.spinrdf.org/>). yes, that's the real URL, go look. πŸ‘‘

referenced_blanks

returns a list of the blank node names used in this algebra expression. little list, big energy. πŸ’œ

subsumes ( $pattern )

returns true if the triple subsumes the pattern, and false otherwise. that's it, that's the function. no cap. πŸŽ€

bf ()

returns a string representing the state of the nodes of the triple β€” bound or free, bound or free, which one is it bestie. πŸ”

distinguish_bnode_variables

returns a new Quad object with blank nodes replaced by distinguished variables. (yes, Quad, in a Triple module. the lore is deep, we don't question it, we just respect it. πŸ™ˆ)

label ( $label => $value )

sets the named $label to $value for this triple object. and if you don't hand it a $value? then it returns the current label value, or undef if none exists at all. she's flexible like that. πŸ’–


🫢 AUTHOR 🫢

Gregory Todd Williams <gwilliams@cpan.org>

give him his flowers, he built the whole thing. 🌸


that's the whole page bestie, you're officially informed. go forth and triple-pattern responsibly. ✨

okay and one last cute sign-off for the archives: this was perl v5.40.1, dated 2025-08-18, filed under RDF::Q...:Triple(3pm). mwah. πŸ’‹

πŸ“¦ where this page comes from