RDF::SN(3pm)

RDF::SN3pm

Short names for uris with prefixes from prefix.cc

Usage

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

Overview

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9–10
  3. 11
  4. 12
  5. 13

From librdf-ns-perl 20230619-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.