Class | Package: net.uri | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version