Skip to main content

3.2. Examples

This section shows a variety of URNs (using the "example" NID defined in [RFC6963]) that highlight the URN-equivalence rules.

First, because the scheme and NID are case insensitive, the following URNs are equivalent:

urn:example:a123,z456
URN:example:a123,z456
URN:EXAMPLE:a123,z456

Second, because percent-encoding in the NSS must be preserved (but with case normalization of hexadecimal digits), the following URNs are not equivalent:

urn:example:a123,z456
urn:example:a123,z456%2d
urn:example:a123,z456%2D

Third, optional components (r-component, q-component, f-component) are ignored when determining equivalence:

urn:example:a123,z456
urn:example:a123,z456?+abc
urn:example:a123,z456?=xyz
urn:example:a123,z456#789

All of these URNs are equivalent.