RDF::Trine::Namespace(3pm)

RDF::Trine::Namespace3pm

Abbreviated syntax for constructing rdf node objects

Usage

    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]'

Version

This document describes RDF::Trine::Namespace version 1.019

Overview

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.

Methods

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

Dependencies

XML::Namespace

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12
  6. 13

Bugs

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.

Author

Gregory Todd Williams "<[email protected]>"

From librdf-trine-perl 1.019-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.