1RDF::Trine::Namespace(3U)ser Contributed Perl DocumentatiRoDnF::Trine::Namespace(3)
2
3
4
6 RDF::Trine::Namespace - Abbreviated syntax for constructing RDF node
7 objects
8
10 This document describes RDF::Trine::Namespace version 1.019
11
13 use RDF::Trine::Namespace qw(rdf);
14 my $foaf = RDF::Trine::Namespace->new( 'http://xmlns.com/foaf/0.1/' );
15 my $pred = $foaf->name;
16 my $type = $rdf->type;
17 print $pred->as_string; # '[http://xmlns.com/foaf/0.1/name]'
18
20 This module provides an abbreviated syntax for creating
21 RDF::Trine::Node objects for URIs sharing common namespaces. The module
22 provides a constructor for creating namespace objects which may be used
23 for constructing Node objects. Calling any method (other than 'import',
24 'new', 'uri' or 'AUTOLOAD') on the namespace object will return a
25 RDF::Trine::Node object representing the URI of the method name
26 appended to the namespace.
27
29 "uri"
30 Returns the URI node object for the namespace, with an optional
31 path argument added to the end of it.
32
33 "uri_value"
34 Returns the URI/IRI value of this namespace.
35
37 XML::Namespace
38
40 Please report any bugs or feature requests to through the GitHub web
41 interface at <https://github.com/kasei/perlrdf/issues>.
42
44 Gregory Todd Williams "<gwilliams@cpan.org>"
45
47 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
48 software; you can redistribute it and/or modify it under the same terms
49 as Perl itself.
50
51
52
53perl v5.38.0 2023-07-21 RDF::Trine::Namespace(3)