RDF::NS::Trine(3pm)
β¨ RDF::NS::Trine β¨
okay bestie, so RDF::NS::Trine is literally the glow-up of namespace prefixes π
it gives you all the popular RDF namespace prefixes from prefix.cc, but as RDF::Trine nodes instead of boring lil strings. it's the Perl module RDF::NS::Trine, and it's giving structured RDF main character energy. π¦
π SYNOPSIS π
use RDF::NS::Trine;
use constant NS => RDF::NS::Trine->new('20230619');
NS->foaf_Person; # iri('http://xmlns.com/foaf/0.1/Person')
NS->uri('foaf:Person); # same RDF::Trine::Node::Resource
NS->foaf_Person->uri; # http://xmlns.com/foaf/0.1/Person
NS->_; # RDF::Trine::Node::Blank
NS->_abc; # blank node with id 'abc'
NS->uri('_:abc'); # same
πΈ DESCRIPTION πΈ
so RDF::NS::Trine works exactly like RDF::NS, no cap β but instead of handing you back plain strings, it hands you back instances of RDF::Trine::Node::Resource (or RDF::Trine::Node::Blank when you're doing blank node things). it's the same vibe, just β¨typedβ¨.
bestie. listen. π«Ά before you even think about using this module, make sure you install RDF::Trine. it does NOT get installed automatically together with RDF::NS! not me finding that out the hard way π go install it yourself, fr fr.
π ADDITIONAL METHODS π
π BLANK ( [ $short ] )
returns a brand new RDF::Trine::Node::Blank. fresh out the box, iconic, no notes. β¨
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2013- by Jakob VoΓ. π
it's free software, periodt β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
perl v5.38.2 Β· 2024-01-21
and that's the whole page bestie, mwah π
β¨ this was RDF::NS::Trine(3pm) β go forth and namespace responsibly, you ate ππ¦
π¦ where this page comes from
- debian trixie: librdf-ns-perl 20230619-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-ns-perl 20230619-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: librdf-ns-perl 20230619-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms