RDF::Trine::Node(3pm)

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

πŸ’– 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, or 1 depending 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 see as_hashref at RDF::Trine::Model. iykyk. 🫢
  • from_sse ( $string, $context ) β€” parses the SSE-encoded string you hand her and returns a RDF::Trine::Node object. 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 (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 was RDF::Trine::Node from perl v5.38.2, dated 2024-01-13, and yeah β€” it's the RDF::Trine::Node(3pm) page you just read. slay, go build some nodes. πŸ’–πŸŽ€πŸ¦‹βœ¨
πŸ“¦ where this page comes from