RDF::SN(3PM) - Linux man page online | Library functions

Short names for URIs with prefixes from

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


RDF::SN - Short names for URIs with prefixes from


use RDF::SN; $abbrev = RDF::SN->new('20170111'); $abbrev->qname(''); # rdfs:type


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.
This software is copyright (c) 2013- by Jakob Voss. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.24.1 2017-01-12 RDF::SN(3pm)
Download raw manual
Index User Contributed Perl Documentation (+23303) perl v5.24.1 (+3427) № 3 (+68044)
Go top