RDF::NS::Trine - Popular RDF namespace prefixes from prefix.cc as RDF::Trine nodes
version 20120124
use RDF::NS::Trine; use constant NS => RDF::NS::Trine->new('20120124'); NS->foaf_Person; # a RDF::Trine::Node::Resource NS->URI('foaf:Person); # same NS->foaf_Person->uri; # http://xmlns.com/foaf/0.1/Person NS->_; # a RDF::Trine::Node::Blank NS->_abc; # a blank node with id 'abc' NS->URI('_:abc'); # same
In contrast to RDF::NS, which should be consulted for documentation, this returns no plain string URIs but instances of RDF::Trine::Node::Resource or RDF::Trine::Node::Blank.
Before using this module, make sure to install RDF::Trine, which is not installed automatically together with RDF::NS!
Jakob Voss
This software is copyright (c) 2012 by Jakob Voss.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install RDF::NS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::NS
CPAN shell
perl -MCPAN -e shell install RDF::NS
For more information on module installation, please visit the detailed CPAN module installation guide.