1RDF::SN(3pm)          User Contributed Perl Documentation         RDF::SN(3pm)
2
3
4

NAME

6       RDF::SN - Short names for URIs with prefixes from prefix.cc
7

SYNOPSIS

9         use RDF::SN;
10         $abbrev = RDF::SN->new('20190227');
11         $abbrev->qname('http://www.w3.org/2000/01/rdf-schema#type'); # rdfs:type
12

DESCRIPTION

14       This module supports abbreviating URIs as short names (aka qualified
15       names), so its the counterpart of RDF::NS.
16
17   new( [ $ns ] )
18       Create a lookup hash from a mapping hash of namespace URIs to prefixes
19       (RDF::NS). If multiple prefixes exist, the shortest is used. If
20       multiple prefixes with same length exist, the first in alphabetical
21       order is used.
22
23   qname( $uri )
24       Returns a prefix and local name (as list in list context, concatenated
25       by ":" in scalar context) if the URI can be abbreviated with given
26       namespaces.
27
29       This software is copyright (c) 2013- by Jakob Voss.
30
31       This is free software; you can redistribute it and/or modify it under
32       the same terms as the Perl 5 programming language system itself.
33
34
35
36perl v5.30.0                      2019-07-26                      RDF::SN(3pm)
Impressum