The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

RDF::Simple::NS

DESCRIPTION

A utility class to help deal with RDF namespaces (converting between short (qualified) names and full URLs for XML namespaces.

SYNOPSIS

        my $ns = RDF::Simple::NS->new;
        $ns->lookup('foaf'=>'http://xmlns.com/foaf/0.1/');

METHODS

from_qname

qname

lookup

  $ns->lookup('short name'=>'http://full.path.to/namespace#');

Add an alias for a namespace (this will be used in the serialisation)

entity_to_namespace

uri

namespace_to_entity

prefix