RDF::R...ralNode(3pm)

✨ NAME ✨

RDF::Redland::LiteralNode β€” bestie, it's the Redland RDF Literal Node Class πŸ’–

Like, this is a page from the User Contributed Perl Documentation, so you already know it's a lil community-crafted masterpiece. πŸŽ€


🌸 SYNOPSIS 🌸

okay so here's the vibe, copied exactly, no notes:

use RDF::Redland;
my $node1=new RDF::Redland::LiteralNode("Hello, World!");
my $node2=new RDF::Redland::LiteralNode("Bonjour monde!", undef, "fr");

see? three lines in and we're already bilingual. slay. 🌈


πŸ’… DESCRIPTION πŸ’…

so this class is the main character for RDF literal and Typed Literals inside the RDF graph. that's it, that's the job. πŸ‘‘

and if you wanna know all the methods this object can do? bestie, go look at RDF::Redland::Node. the whole method menu lives over there. 🫢


πŸŽ€ CONSTRUCTOR πŸŽ€

  • new STRING [DATATYPE [XML_LANGUAGE]] β€” builds you a brand-new literal node holding the literal value STRING. lowkey iconic. and if you want extra flavor, you can also pass:
    • an optional datatype URI DATATYPE β€” and it's flexible like that, it can be a RDF::Redland::URI, a perl URI, or just a string πŸ’β€β™€οΈ
    • and/or a language (the xml:lang attribute) XML_LANGUAGE πŸ¦‹

both extras are optional, so new with just a string is totally valid. periodt.


πŸ‘€ SEE ALSO πŸ‘€

  • RDF::Redland::Node β€” the icon, the blueprint, the one with all the methods 🧚

πŸ’œ AUTHOR πŸ’œ

Dave Beckett β€” http://www.dajobe.org/ 🌟


and that's a wrap, bestie!! πŸŽ€ this lil gem came from the perl v5.42.3 docs, dated 2026-08-20, filed under RDF::R...ralNode(3pm) in the User Contributed Perl Documentation. go forth and literal-node responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from