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

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

✨ RDF::Trine::Node::Resource ✨

okay bestie, so this is a Perl module β€” RDF::Trine::Node::Resource β€” and it's literally the RDF Node class for IRI resources. that's the whole vibe. it's giving "your fav node type but make it a resource" πŸ’…

this page lives in the User Contributed Perl Documentation, and it's documented as version 1.019 of RDF::Trine::Node::Resource. periodt.


🌸 VERSION 🌸

this document describes RDF::Trine::Node::Resource version 1.019. no cap, that's the number. πŸ“Œ


πŸ’– METHODS πŸ’–

so here's the tea β€” beyond the methods listed below, this class inherits methods from the RDF::Trine::Node class. so if you're looking for something and it's not here, go check that parent class, iykyk. 🫢

  • new ( $iri, [ $base_uri ] ) β€” returns a brand new Resource structure. fresh out the box ✨
  • uri_value β€” returns the URI/IRI value of this resource. that's it, that's the whole job πŸ’…
  • value β€” returns the URI/IRI value. yes bestie, same energy as above.
  • uri ( $uri ) β€” returns the URI value of this resource, and optionally you can pass in a $uri to update it. glow up on demand 🌈
  • sse β€” returns the SSE string for this resource.
  • as_string β€” returns a string representation of the node. stringified and serving looks πŸŽ€
  • as_ntriples β€” returns the node in a string form suitable for NTriples serialization. heads up tho: if the IRI contains punycode, it will be decoded and serialized as unicode codepoints. not me decoding punycode 😭
  • type β€” returns the type string of this node.
  • equal ( $node ) β€” returns true if the two nodes are equal, false otherwise. comparison check, slay or nay ⭐
  • qname β€” if the IRI can be split into a namespace and local part for construction of a QName, returns a list containing these two parts. otherwise? throws an exception. no chill at all πŸ’€

πŸ› BUGS πŸ›

please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. go tell them directly, bestie, they wanna hear it πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> β€” the main character who wrote this πŸ’œ


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.


fr fr that's the whole page. no detail left behind, every method accounted for, we ate and left no crumbs πŸ“

okay and one last thing before you go β€” this was served up on perl v5.38.2, dated 2024-01-13, straight from the RDF::T...source manual. bye bestie, go write some IRIs πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from