Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Uniform Resource Name
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Syntax== The syntax of a <code>urn:</code> scheme URI is represented in the [[augmented Backus–Naur form]] as:{{sfnp|RFC 3986|2005}}{{sfnp|RFC 8141, section 2|2017}} <syntaxhighlight lang="abnf"> namestring = assigned-name [ rq-components ] [ "#" f-component ] assigned-name = "urn" ":" NID ":" NSS NID = (alphanum) 0*30(ldh) (alphanum) ldh = alphanum / "-" NSS = pchar *(pchar / "/") rq-components = [ "?+" r-component ] [ "?=" q-component ] r-component = pchar *( pchar / "/" / "?" ) q-component = pchar *( pchar / "/" / "?" ) f-component = fragment ; general URI syntax rules (RFC3986) fragment = *( pchar / "/" / "?" ) pchar = unreserved / pct-encoded / sub-delims / ":" / "@" pct-encoded = "%" HEXDIG HEXDIG unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" alphanum = ALPHA / DIGIT ; obsolete, usage is deprecated </syntaxhighlight> or, in the form of a [[syntax diagram]], as: [[File:URN_syntax_diagram_-_namestring.png|URN syntax diagram{{snd}} namestring]] * The leading scheme ({{code|urn:}}) is case-insensitive. * {{code|<NID>}} is the namespace identifier, and may include letters, digits, and <code>-</code>. * The NID is followed by the namespace-specific string {{code|<NSS>}}, the interpretation of which depends on the specified namespace. The NSS may contain ASCII letters and digits, and many punctuation and special characters. Disallowed ASCII and [[Unicode]] characters may be included if [[percent-encoded]]. In 2017, the syntax for URNs was updated:{{sfnp|RFC 8141|2017}} * The slash character (<code>/</code>) is now allowed in the NSS to represent names containing slashes from non-URN identifier systems. * The q-component was added to enable passing of parameters to named resources. * The r-component was added to enable passing of parameters to resolvers. However, the updated specification notes that it should not be used until its semantics are defined via further standardization.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)