RDF::NS::Trine(3pm)

πŸ“¦
this version Β· 6 versions
, in debian trixie, ubuntu noble, ubuntu questing

✨ 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. ✨


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