The relationship and difference between URL, URI and URN

The relationship and difference between URL, URI and URN

URL

Uniform Resource Locator (URL) is a reference to a resource and a method of accessing it. It is commonly known as the URL, which is in the address bar of the browser.

A URL consists of the following different parts:

  • Protocol: usually https or http, a method of telling the browser or device how to access resources. Of course, there are other protocols, such as ftp, mailto, etc.
  • Next is ://
  • Hostname: A registered name (domain name) or IP address that represents an IP address, a numeric identifier used to identify a device connected to a network.
  • The port number, preceded by a colon:
  • Path: can refer to a file system path, usually used as a code segment
  • Parameters: optional query parameters starting with a question mark, where multiple parameters are connected with &
  • Hash: used to provide quick links to titles on a page, such as anchor links

URI

Similar to URL, Uniform Resource Identifier (URI) provides a method to identify resources. However, unlike URL, URI does not provide a method to locate the resource.

The most common form of URI is the Uniform Resource Locator (URL), often specified informally as a web address. From this, it can be seen that URI is a superset of URL, and every URL is essentially a URI.

URN

Uniform Resource Name (URN) is the historical name of Uniform Resource Identifier (URI), and URN is used as the URI scheme.

From the perspective of a set, URN and URL are both subsets of URI, as shown in the figure:

Taking a website as an example, the following clearly shows the contents of URI, URN, and URL, which can more intuitively reflect the relationship between the three:

To conceptually summarize the relationship between the three, as shown in the figure:

picture

<<:  Get started quickly and build a personalized Python GUI calculator in five minutes

>>:  Several steps and tools for troubleshooting the network

Recommend

5G private network development will accelerate in 2024

The growing demand for fifth-generation network s...

How does CDN acceleration work? What are its benefits?

Many website operators believe in a principle tha...

By 2026, the Wi-Fi 6 and 6E market in Asia Pacific will reach US$8.559 billion

On March 26, according to foreign media reports, ...

...

Essential for IoT experts: Network protocol stack LwIP (I)

need: In IoT devices, the TCP/IP network protocol...

Next-generation network management is difficult without AIOps

​AI for operations, or AIOps platforms, is the in...

Expert: It’s time to promote 5G application innovation

Wang Zhiqin, deputy director of the China Academy...

my country will open 1.4 million 5G base stations by the end of the year

This year is a period of large-scale 5G construct...

Omdia: Global Gigabit Broadband Users to Exceed 187 Million by 2025

LightReading reports that the COVID-19 pandemic h...