URI vs URL vs URN
2011-12-11 19:59
676 查看
URI - a string of characters for identifying a resource. A URI can be further classified as a locator (URL), a name (URN), or both.
<scheme>:<scheme-specific-part> (this syntax apply to any URI)
<scheme>://<authority><path>?<query> (this syntax apply to some of the URI)
URI that are hierarchical in nature use the slash "/" character for separating hierarchical components. "//" is for net path.
URL (locator) - a type of URI that's used to describe the
location of a specific resource. A URL doesn't define the type of the resource to be found (text, image, movie, etc.), it only says where and how to find it.
RFC definition - The term "Uniform Resource Locator" (URL) refers to the subset of URI that identify resources via a representation of their primary access mechanism (e.g., their network "location"), rather than identifying the resource
by name or by some other attribute(s) of that resource.
protocal://computer(domain name or IP)/directories/file
http://www.igt.com/iplatform/index.html
file://localhost/home/readme.txt
file://localhost/c:/download/help.html
file:///c:/download/help.html
URN (name) - is a type of URI that uses the "urn" scheme. It is uniquely identify a resource irrespective of its stored location.
urn:isbn:04510523
urn:ietf:rfc:2668
RFC definition - The term "Uniform Resource Name" (URN) refers to the subset of URI that are required to remain globally unique and persistent even when the resource ceases to exist or becomes unavailable.
<scheme>:<scheme-specific-part> (this syntax apply to any URI)
<scheme>://<authority><path>?<query> (this syntax apply to some of the URI)
URI that are hierarchical in nature use the slash "/" character for separating hierarchical components. "//" is for net path.
URL (locator) - a type of URI that's used to describe the
location of a specific resource. A URL doesn't define the type of the resource to be found (text, image, movie, etc.), it only says where and how to find it.
RFC definition - The term "Uniform Resource Locator" (URL) refers to the subset of URI that identify resources via a representation of their primary access mechanism (e.g., their network "location"), rather than identifying the resource
by name or by some other attribute(s) of that resource.
protocal://computer(domain name or IP)/directories/file
http://www.igt.com/iplatform/index.html
file://localhost/home/readme.txt
file://localhost/c:/download/help.html
file:///c:/download/help.html
URN (name) - is a type of URI that uses the "urn" scheme. It is uniquely identify a resource irrespective of its stored location.
urn:isbn:04510523
urn:ietf:rfc:2668
RFC definition - The term "Uniform Resource Name" (URN) refers to the subset of URI that are required to remain globally unique and persistent even when the resource ceases to exist or becomes unavailable.
相关文章推荐
- [转]uri vs url vs urn
- URI vs URN vs URL
- JAVA中URI/URL/URN的区别
- Uri,Url,Urn,src,href的解释和区别,个人查资料理解,不严谨,只供参考
- URI、URL和URN是什么?
- URI、URL和URN之间的区别与联系
- URI、 URL 和 URN 的区别
- Internet 主机 IP地址 域名 统一资源定位符URL 域名服务器 DNS 万维网 WWW IP地址访问失败 IPV4 & IPV6 统一资源标识符 URI 统一资源名称 URN IP地址(简介
- JAVA中的URI,URL,URN(转)
- URI,URL,URN
- url、uri、urn
- 关于URI、URL、URN区别和JAVA中对应类
- uri/url/urn
- 知道URI、URL和URN都是什么吗?
- Uri、URL和URN三者的区别
- URI、URL、URN区别和联系
- URI、URL与URN的区别是什么?
- URL, URI 和 URN 之间的区别
- 茅塞顿开系列——URI,URL,URN
- uri,url和urn的区别以及URLEncoder