RDF::R...nd::URI(3pm)
π RDF::Redland::URI β the Redland RDF URI Class π
okay bestie, gather round, because this is the manual page for RDF::Redland::URI, a.k.a. the Redland RDF URI Class, and she is serving user contributed Perl documentation realness. no cap. π
β¨ NAME β¨
RDF::Redland::URI β the Redland RDF URI Class. say hi, she's iconic. π
πΈ SYNOPSIS πΈ
here's the vibe, literally copy-paste coded:
use RDF::Redland;
my $uri=new RDF::Redland::URI("http://example.com/");
my $uri2=RDF::Redland::URI->new_from_uri($uri);
print $uri2->as_string,"\n";
look at her go π¦ β make a URI, clone-ish it through the old way, print it out. slay.
π¦ DESCRIPTION π¦
so what is this? it represents a URI as a mostly-opaque object for identifying things in the RDF world. mostly-opaque means you're not really supposed to peek inside her business β she's there to be an identity, not a little puzzle for you to take apart. π
and these URIs also get used for identifying features for the RDF::Redland::Parser and RDF::Redland::Serializer classes. so like, she's not just a pretty string, she's the ID card for the whole friend group. π
π CONSTRUCTORS π
new STRINGβ makes a fresh newRDF::Redland::URIobject out of a URI string. give her a STRING, get a whole URI back. princess treatment. β¨clone URIβ copies anRDF::Redland::URI. a duplicate, but make it couture. π
π METHODS π
as_stringβ returns the statement formatted as a string (UTF-8 encoded). yes, the description says statement, and yes, we're keeping that exactly as written, don't look at me πequals URIβ returns non-zero if this uri is equal to URI. so: truthy = same girl, falsy = different girl. fr fr. π«Ά
π OLD METHODS π
not me showing you the deprecated stuff... but you gotta know it exists, bestie.
new_from_uri URIβ creates a newRDF::Redland::URIobject from anRDF::Redland::URIURI (that's a copy constructor, iykyk). instead use:
$u=$uri->clone
like, the clone method is right there and she's the moment. use her. the old one is giving legacy energy π
π SEE ALSO π
RDF::Redland::Parser
go read about her too, she's part of the squad. πΈ
β AUTHOR β
Dave Beckett β http://www.dajobe.org/
legend behaviour, honestly. π
and that's the whole page, bestie β signed off with perl v5.42.3, dated 2026-08-20, ripped straight from RDF::R...nd::URI(3pm) the manual. periodt. π
β¨π
π¦ 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