Martin 'Kingpin' Thurn > RDF-Simple-0.415 > RDF::Simple::NS

Download:
RDF-Simple-0.415.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 1.004   Source  

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

syntax highlighting: