URN/URI/URL
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
๐ก 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.