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 valueSTRING. 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:langattribute) XML_LANGUAGE π¦
- an optional datatype URI DATATYPE β and it's flexible like that, it can be a
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
- ubuntu stonking: librdf-perl 1.0.17.1+dfsg-9build1 Β· LGPL-2.1-or-later OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms