urn

Class

Package: net.uri

This is the class of URI (Universal Resource Indicator) objects.URN's are a subset of URI's. RFC2141 defines URNs as:

<URN> ::= "urn:" <NID> ":" <NSS>

where <NID> is the Namespace Identifier, and <NSS> is the Namespace Specific String. The leading "urn:" sequence is case-insensitive. urn-nid accesses the NID of an URN. The related function urn-nss accesses the NSS. The Namespace ID determines the syntactic interpretation of the Namespace Specific String. Thus:

cl-user(7): (setq urn (net.uri:parse-uri "urn:foo:10"))
#<uri urn:foo:10>
cl-user(8): (net.uri:urn-nid urn)
"foo"
cl-user(9): (net.uri:urn-nss urn)
"10"
cl-user(10): 

See also uri.htm for general information on Universal Resource Indicator support in Allegro CL.

Copyright (c) 1998-2001, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2001.8.1.