RDF::Trine::NamespaceMap(3pm) | User Contributed Perl Documentation | RDF::Trine::NamespaceMap(3pm) |
RDF::Trine::NamespaceMap - Collection of Namespaces
This document describes RDF::Trine::NamespaceMap version 1.019
use RDF::Trine::NamespaceMap; my $map = RDF::Trine::NamespaceMap->new( \%namespaces ); $serializer->serialize_model_to_string( $model, namespaces => $map ); $map->add_mapping( foaf => 'http://xmlns.com/foaf/0.1/' ); my $foaf_namespace = $map->foaf; my $foaf_person = $map->foaf('Person');
This module provides an object to manage multiple namespaces for creating RDF::Trine::Node::Resource objects and for serializing.
my $str = $nsmap->abbreviate($uri_node) || $uri_node->uri_value;
may be useful for certain serialization tasks.
Avoid using the names 'can', 'isa', 'VERSION', and 'DOES' as namespace prefix, because these names are defined as method for every Perl object by default. The method names 'new' and 'uri' are also forbidden.
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.
Gregory Todd Williams "<gwilliams@cpan.org>"
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-12-12 | perl v5.36.0 |