RDF::T...atement(3pm)
π 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 aRDF::Trine::Statementobject. 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%boundhave been replaced by their corresponding bound values. swap szn π₯subsumes ( $statement )β returns true if this statement will subsume the$statementwhen matched against a triple store.from_redland ( $statement )β give it aRDF::Redland::Statementobject and it'll hand you back a perl-nativeRDF::Trine::Statementobject. 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 π
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
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· 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