SIMPLE SOLUTIONS

RDF::NS::TRINE - reference manual online

Popular RDF namespace prefixes from prefix.cc as RDF::Trine nodes.

Chapter
2015-07-25
RDF::NS::Trine(3pm)            User Contributed Perl Documentation            RDF::NS::Trine(3pm)

NAME RDF::NS::Trine - Popular RDF namespace prefixes from prefix.cc as RDF::Trine nodes
SYNOPSIS use RDF::NS::Trine; use constant NS => RDF::NS::Trine->new('20150725'); 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 RDF::NS::Trine works like RDF::NS but it returns instances of RDF::Trine::Node::Resource (or RDF::Trine::Node::Blank) instead of strings. Before using this module, make sure to install RDF::Trine, which is not installed automatically together with RDF::NS!
ADDITIONAL METHODS BLANK ( [ $short ] ) Returns a new RDF::Trine::Node::Blank.
perl v5.20.2 2015-07-25 RDF::NS::Trine(3pm)