The difference between a URL, a URI, and a urn

Source: Internet
Author: User

    • URI Uniform Resource Identifier Uniform Resource Identifier
    • URL Uniform Resource Locator Uniform Resource Locator
    • URN Uniform Resource Name Uniform Resource name

Wikipedia:

URL: URL is a kind of URI, not only identifies the Internet resources, but also specifies the operation or acquisition method, while pointing out the main access mechanism and network location.

URN: A urn is a URI that identifies a resource with the name of a particular namespace. Urns can be used to discuss resources without knowing their network locations and access patterns.

The URL is similar to the address, which tells you where the target is located (this location may be more than one person).

A URN is similar to a person's name, used to uniquely identify an entity (a name may be used by many people).

Example:

http://Bitpoetry.io/posts/hello.html#intro

Analysis:

1 // ways to access resources 2 http://3//  location of resource storage 4 bitpoetry.io/posts/hello.html  5//  resource 6 #intro

The URL in this example:

http://bitpoetry.io/posts/hello.html

Urn in this example:

Bitpoetry.io/posts/hello.html#intro

Excerpted from Jobbole

Related StackOverflow

The difference between a URL, a URI, and a urn

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.