URI URL URN Relationship

Source: Internet
Author: User

Let's take a look at the fictional example below. This is a URI:

  • Http://bitpoetry.io/posts/hello.html#intro

We begin to analyze

  • /HTTP

is a way to define how resources are accessed. Other than that

  • Bitpoetry.io/posts/hello.html

is where the resources are stored, so in this case,

  • #intro

is a resource.

A URL is a subset of the URI that tells us how to access the network location. In our example, the URL should look like this:

  • Http://bitpoetry.io/posts/hello.html

A URN is a subset of URIs, including the name (within a given namespace), but does not include access, as follows:

  • Bitpoetry.io/posts/hello.html#intro

That's it. Now you should be able to tell the difference between a URL and a urn.

If you forget the content of this article, at least one thing to remember: URIs can be divided into URLs, urns, or combinations of both. If you have been using the term URI , there is no mistake.

URI URL URN Relationship

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.