RDF::Trine::Namespace - Abbreviated syntax for constructing RDF node objects.
This document describes RDF::Trine::Namespace version 0.117
use RDF::Trine::Namespace qw(rdf); my $foaf = RDF::Trine::Namespace->new( 'http://xmlns.com/foaf/0.1/' ); my $pred = $foaf->name; my $type = $rdf->type; print $pred->as_string; # '[http://xmlns.com/foaf/0.1/name]'
This module provides an abbreviated syntax for creating RDF::Trine::Node objects for URIs sharing common namespaces. The module provides a constructor for creating namespace objects which may be used for constructing Node objects. Calling any method (other than 'import', 'new', 'uri' or 'AUTOLOAD') on the namespace object will return a RDF::Trine::Node object representing the URI of the method name appended to the namespace.
uri
Returns the URI node object for the namespace, with an optional path argument added to the end of it.
uri_value
Returns the URI/IRI value of this namespace.
XML::Namespace
Please report any bugs or feature requests to <gwilliams@cpan.org>.
<gwilliams@cpan.org>
Gregory Todd Williams <gwilliams@cpan.org>
Copyright (c) 2006-2010 Gregory Todd Williams. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::Trine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Trine
CPAN shell
perl -MCPAN -e shell install RDF::Trine
For more information on module installation, please visit the detailed CPAN module installation guide.