RDF::SN - reference manual online

Short names for URIs with prefixes from

RDF::SN(3pm)                   User Contributed Perl Documentation                   RDF::SN(3pm)

NAME RDF::SN - Short names for URIs with prefixes from
SYNOPSIS use RDF::SN; $abbrev = RDF::SN->new('20150725'); $abbrev->qname(''); # rdfs:type
DESCRIPTION This module supports abbreviating URIs as short names (aka qualified names), so its the counterpart of RDF::NS. new( [ $ns ] ) Create a lookup hash from a mapping hash of namespace URIs to prefixes (RDF::NS). If multiple prefixes exist, the shortest is used. If multiple prefixes with same length exist, the first in alphabetical order is used. qname( $uri ) Returns a prefix and local name (as list in list context, concatenated by ":" in scalar context) if the URI can be abbreviated with given namespaces.
perl v5.20.2 2015-07-25 RDF::SN(3pm)