跳到主要内容

3.2. 示例

本节展示多种 URN (使用 [RFC6963] 中定义的 "example" NID), 用以突出 URN-equivalence 规则.

首先, 由于 scheme 和 NID 大小写不敏感, 以下 URN 等价:

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

其次, 由于 NSS 中的 percent-encoding 必须保留 (但会对十六进制数字执行 case normalization), 以下 URN 不等价:

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

第三, 确定等价性时会忽略可选组件 (r-component, q-component, f-component):

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

这些 URN 全部等价.