RDF::T...atement(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

RDF::Trine::Statement β€” it's the class for triples and triple patterns, bestie. That's it, that's the whole vibe. ✨


🌸 VERSION 🌸

This doc describes RDF::Trine::Statement version 1.019. Periodt. πŸ’…


✨ METHODS ✨

okay so here's the whole roster, no skips, no skims, we're doing all of them 🫢

  • new ( $s, $p, $o ) β€” hands you back a brand new Triple 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. like a recipe to rebuild the exact same thing, iconic.
  • nodes β€” returns the subject, predicate and object of the triple pattern. the whole trio, the main character squad πŸ‘‘
  • node_names β€” returns the method names for accessing the nodes of this statement. so like, the names of the accessors, not the nodes themselves. iykyk.
  • subject β€” returns the subject node of the triple pattern.
  • predicate β€” returns the predicate node of the triple pattern.
  • object β€” returns the object node of the triple pattern.
  • as_string β€” returns the statement in a string form. glow-up into text πŸ’«
  • has_blanks β€” returns true if any of the nodes in this statement are blank nodes. like, even one. πŸ‘€
  • sse β€” returns the SSE string for this algebra expression.
  • from_sse ( $string, $context ) β€” parses the SSE-encoded string you hand it and returns a RDF::Trine::Statement object. it's giving reverse uno card πŸ¦‹
  • type β€” returns the type of this algebra expression.
  • referenced_variables β€” returns a list of the variable names used in this algebra expression.
  • definite_variables β€” returns a list of the variable names that will be bound after evaluating this algebra expression. future tense, she's planning ahead πŸ’œ
  • clone β€” ngl bestie, the original page literally gives this one no description. it's just... standing there. menacingly. πŸ’€ (it's a method, that's all we're told, don't @ me)
  • bind_variables ( \%bound ) β€” returns a new algebra pattern where the variables named in %bound have been replaced by their corresponding bound values. swap szn πŸ”₯
  • subsumes ( $statement ) β€” returns true if this statement will subsume the $statement when matched against a triple store.
  • from_redland ( $statement ) β€” give it a RDF::Redland::Statement object and it'll hand you back a perl-native RDF::Trine::Statement object. translator era 🌈
  • rdf_compatible β€” returns true if and only if the statement can be expressed in RDF. and what does that mean, you ask? the subject of the statement has to be a resource or a blank node; the predicate has to be a resource; and the object has to be a resource, a blank node or a literal. that's the whole checklist, no cap. βœ…
okay so important thing though β€” RDF::Trine::Statement does allow you to create statements that cannot be expressed in RDF. for instance, statements including variables. so like, it will let you cook. it's just not RDF-compatible when you do that. 🚨

πŸ› BUGS πŸ›

Found a bug? Got a feature request? Please report it through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. bestie, they want to hear from you, go off πŸ’Œ


πŸ’œ AUTHOR πŸ’œ

Gregory Todd Williams, <gwilliams@cpan.org>. the icon, the legend, the main character. πŸ‘‘


Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole page, babe 🫢 this was perl v5.38.2, dated 2024-01-13, straight from User Contributed Perl Documentation. slay, stay hydrated, and go build some triples. πŸ’…βœ¨

πŸ“¦ where this page comes from