Jakob Voß > RDF-NS-20120917 > RDF::NS::Trine

Download:
RDF-NS-20120917.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 20120917   Source   Latest Release: RDF-NS-20140910

NAME ^

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

VERSION ^

version 20120917

SYNOPSIS ^

  use RDF::NS::Trine;
  use constant NS => RDF::NS::Trine->new('20120917');

  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 (and 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.

AUTHOR ^

Jakob Voss

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: