Post

URN/URI/URL

Screenshot 2024-08-21 at 22 08 22

What is this? URL or URI? https://www.google.com

answer: both
but being precise, URL.

๐Ÿ“Œ URI

Uniform Resouce Identifier


  • ๋ฆฌ์†Œ์Šค์˜ ์ด๋ฆ„(์‹๋ณ„์ž)
  • ์˜ˆ์‹œ: www.google.com
  • URI โŠƒ URL, URN

๐Ÿ“Œ URN

Uniform Resource Name

  • ์ธํ„ฐ๋„ท ์ƒ์—์„œ ์ž์›์„ ๊ฐ€๋ฆฌํ‚ค๋Š” ์‹๋ณ„์ž
  • ํ”„๋กœํ† ์ฝœ, ๋ฆฌ์†Œ์Šค ์œ„์น˜, ํ˜ธ์ŠคํŠธ ๋“ฑ๊ณผ๋Š” ์ƒ๊ด€ ์—†์ด ๊ฐ ์ž์›์˜ ์ด๋ฆ„
  • ์›น ๋ฌธ์„œ์˜ ๋ฌผ๋ฆฌ์ ์ธ ์œ„์น˜๋ž‘ ์ƒ๊ด€ ์—†์ด ์›น ๋ฌธ์„œ ๊ทธ ์ž์ฒด

  • URN looks like this
    • urn:isbn:9788898392389
    • starts with urn
    • isbn: International Standard Book Numbers

๐Ÿ“Œ URL

Uniform Resource Locator
protocol + URI

  • ์ธํ„ฐ๋„ท ์ƒ์—์„œ ํŠน์ • ์‹œ์  ์ž์›์˜ ์œ„์น˜
  • ํŠน์ • ์„œ๋ฒ„์— ์žˆ๋Š” ๋ฌธ์„œ
  • ๋ฆฌ์†Œ์Šค์˜ ์ด๋ฆ„ + ์œ„์น˜(์–ด๋–ป๊ฒŒ ๋„๋‹ฌํ•  ์ˆ˜ ์žˆ๋Š”์ง€)
  • ์ฆ‰, protocol์ด ๋ฆฌ์†Œ์Šค์— ์–ด๋–ป๊ฒŒ ๋„๋‹ฌํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ์•Œ๋ ค์คŒ
  • ์˜ˆ์‹œ: https://www.google.com

image

๐Ÿ’ก What happens if the location of a resource changes? What happens to URL?

  • URL indicates location of a resource at a certain time
  • What happens if the location changes?
  • Then, with the old URL, we cannot identify the resource

What are the disadvantages of URL, and how can we overcome?

URL can change if the location of the resource changes.
In order to be able to identify the resource no matter the location,
we can use URN.

  • In order to identity resource regardless of location, use URN.
  • URN gives a unique identifier forever to the resource
  • Even if location of resource changes, can access resource if we know the URN

  • URN looks like this urn:isbn:9788898392389
This post is licensed under CC BY 4.0 by the author.