ClassPackage: net.uriToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

urn

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

<URN> ::= "urn:" <NID> ":" <NSS> "?+" <r-component> "?=" <q-component> "#" <f-component>

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

cg-user(13): (setq urn (net.uri:parse-uri "urn:foo:10?+rrr?=qqq#fff"))
#<urn urn:foo:10?+rrr?=qqq#fff>
cg-user(14): (net.uri:urn-nid urn)
"foo"
cg-user(15): (net.uri:urn-nss urn)
"10"
cg-user(16): (net.uri:urn-r-component urn)
"rrr"
cg-user(17): (net.uri:urn-q-component urn)
"qqq"
cg-user(18): (net.uri:urn-f-component urn)
"fff"
cg-user(19): 

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


Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version