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

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

πŸ’– RDF::Trine::Namespace β€” the 3pm glow-up πŸ’–

okay bestie, so this is RDF::Trine::Namespace(3pm), straight out of the User Contributed Perl Documentation section of your friendly neighborhood manpage situation. it's the module that lets you stop typing out whole entire URIs like some kind of victorian orphan and just... vibe. ✨


πŸ¦‹ VERSION πŸ¦‹

This document describes RDF::Trine::Namespace version 1.019. yes queen, we're on 1.019. πŸ’…


🌸 SYNOPSIS 🌸

here's the whole vibe in five lines, no cap:

use RDF::Trine::Namespace qw(rdf);
my $foaf = RDF::Trine::Namespace->new( 'http://xmlns.com/foaf/0.1/' );
my $pred = $foaf->name;
my $type = $rdf->type;
print $pred->as_string; # '[http://xmlns.com/foaf/0.1/name]'

see how short that is?? that's the whole point, that's the assignment, we ate. πŸ“


✨ DESCRIPTION ✨

so like. this module gives you an abbreviated syntax for making RDF::Trine::Node objects for URIs that all share the same namespace. it's giving "why would i write the prefix a hundred times when i could write it once."

it gives you a constructor for making namespace objects, and those namespace objects are what you use to build Node objects. and here's the iconic part: if you call any method on the namespace object β€” like, literally any of them, the vibe check is that permissive β€” you get back a RDF::Trine::Node object representing the URI of the method name slapped onto the end of the namespace.

the only methods that DON'T do that lil magic trick are import, new, uri and AUTOLOAD. those four are exempt, bestie. the rest are fair game. 🫢

πŸ‘‘ METHODS πŸ‘‘

uri

returns the URI node object for the namespace, and if you pass it an optional path argument, that gets added to the end of it. so cute, so useful. πŸŽ€

uri_value

returns the URI/IRI value of this namespace. the raw value. the truth. periodt. ⭐


🧚 DEPENDENCIES 🧚

  • XML::Namespace

(it's the one friend this module brings to the party.)


πŸ’€ BUGS πŸ’€

got a bug? got a feature request? don't suffer in silence, bestie. please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. πŸ”₯


🌈 AUTHOR 🌈

Gregory Todd Williams <gwilliams@cpan.org> β€” we love them, we thank them, iconic behavior. πŸ‘‘


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.


ok that's the whole page!! no more secrets!! 😭

and that's a wrap on this little guy β€” generated by perl v5.38.2, dated 2024-01-13, and filed under RDF::T...mespace(3pm) because the terminal truncated the middle like a menace. mwah. πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from