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
- ubuntu resolute: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms