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.