关于URI、URL和URN

以下英文文档来自 http://www.ietf.org/rfc/rfc3986.txt
A Uniform Resource Identifier (URI) is a compact sequence of
characters that identifies an abstract or physical resource.
 
A URI can be further classified as a locator, a name, or both.  The
term "Uniform Resource Locator" (URL) refers to the subset of URIs
that, in addition to identifying a resource, provide a means of
locating the resource by describing its primary access mechanism
(e.g., its network "location").  The term "Uniform Resource Name"
(URN) has been used historically to refer to both URIs under the
"urn" scheme [RFC2141], which are required to remain globally unique
and persistent even when the resource ceases to exist or becomes
unavailable, and to any other URI with the properties of a name.
 
对于URI的定义要强调一个词“identifies”,是一种标识,标识了一种实际的或者虚拟的资源。
正因为这种标识的定义,其有两种含义在其中,甚至这两种含义有时被统一在一起。
1. URL:位置标识法,描述资源的访问机制(或者说是资源的网络位置)来标识某种资源。
2. URN:保持全局唯一性并且持续性相对其他URI,即使资源存在与否。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值