- ftp://ftp.is.co.za/rfc/rfc1808.txt
- http://www.ietf.org/rfc/rfc2396.txt
- ldap://[2001:db8::7]/c=GB?objectClass?one
- mailto:John.Doe@example.com
- news:comp.infosystems.www.servers.unix
- tel:+1-816-555-1212
- telnet://192.0.2.16:80/
- urn:oasis:names:specification:docbook:dtd:xml:4.1.2
-
- https://developer.mozilla.org
- https://developer.mozilla.org/en-US/docs/Learn/
- https://developer.mozilla.org/en-US/search?q=URL
- https://tools.ietf.org/html/rfc2396#section-3.1
-
URI 的第二种形式是统一资源名。URN 是作为特定内容的唯一名称使用的,与目前的资源所在地无关。如图书的编号(ISBN)urn:isbn:0451450523。
要理解这三者的区别,不要 URI 与 URL 和 URN 放在同一个等级。
URL 一定是 URI,但 URI 不一定是 URL,URI 还包括 URN。
URL 通过描述资源的位置来标识资源,而 URN 是通过名字来标识资源的,与位置无关。