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 new RDF::Redland::URI object out of a URI string. give her a STRING, get a whole URI back. princess treatment. ✨
  • clone URI β€” copies an RDF::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 new RDF::Redland::URI object from an RDF::Redland::URI URI (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