RDF::Trine::Node(3pm)
π RDF::Trine::Node β bestie edition π
okay so. welcome to the manual page for RDF::Trine::Node (that's the 3pm one, from the User Contributed Perl Documentation crew π«Ά). she's the base class for RDF Nodes β like, the mom of the whole node family, the blueprint everybody else is built on. πΈ
β¨ VERSION β¨
this doc describes RDF::Trine::Node version 1.019. yes queen, we're on 1.019. π
π§ FUNCTIONS π§
ntriples_escape ( $value )β hands you back the string you passed in, but with all the feral characters (control characters, Unicode, all of it π) escaped, so it's safe to print inside an N-Triples or Turtle encoded literal. it's giving "make this string presentable". β¨
π METHODS π
is_nodeβ true if this object is an RDF node, false otherwise. vibe check: are you a node or not. π¦is_nilβ true if this object is the nil-valued node. (the nothing-but-also-something node, iconic honestly.) πis_blankβ true if this RDF node is a blank node, false otherwise. anonymous but make it valid. πis_resourceβ true if this RDF node is a resource, false otherwise. a real one. πis_literalβ true if this RDF node is a literal, false otherwise. literally a literal, no cap. π₯is_variableβ true if this RDF node is a variable, false otherwise. she contains multitudes (well, she contains a value that isn't decided yet, same energy). βas_stringβ returns the node in a string form. the glow-up into plain text. β¨as_ntriplesβ returns the node in a string form suitable for NTriples serialization. the outfit she wears specifically for NTriples. πsseβ returns the SSE serialization of the node. that's her SSE era. πequal ( $node )β true if the two nodes are equal, false otherwise. are y'all the same or not, be honest. πcompare ( $node_a, $node_b )β returns-1,0, or1depending on whether $node_a sorts less than, equal to, or greater than $node_b in the defined SPARQL ordering. and bestie β you can literally pass this as the function argument to<sort>. built for sorting, fr fr. π₯as_hashrefβ returns a hashref representing the node in an RDF/JSON-like manner. the lil structured glow-up. π
heads up: for the full documentation of the hashref format, go seeas_hashrefatRDF::Trine::Model. iykyk. π«Ά
from_sse ( $string, $context )β parses the SSE-encoded string you hand her and returns aRDF::Trine::Nodeobject. string in, node out, no notes. π¦
π BUGS π
found a bug? got a feature request? please report it through the GitHub web interface at https://github.com/kasei/perlrdf/issues. do not suffer in silence, bestie, the issue tracker is right there. π
πΈ AUTHOR πΈ
Gregory Todd Williams β <gwilliams@cpan.org> π
π 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. (yes, same terms as Perl itself, periodt. β)
and that's the whole page, bestie!! this wasRDF::Trine::Nodefrom perl v5.38.2, dated 2024-01-13, and yeah β it's theRDF::Trine::Node(3pm)page you just read. slay, go build some nodes. πππ¦β¨
π¦ 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