What are URL, URN and URI ?
Most people often confuse these terms with each others therefore I want to explain these terms one by one. I’m considering after reading this story, these terms haven’t been headache no longer.
URL(Uniform Resource Locator)
URL is a string of characters that is used to express the location of a given resource on the web. It refers to just the address like home address It contains all informations to find your home. URLs can be a web page, a video and any other resources.
For Example:
- https://www.google.com
- https://www.oracle.com
- ftp://hello.world:john@doe.mac.gov/java/spring/application.yaml
- telnet://1.1.1.1:9999
- mailto:johndoe@jakarta.com
On the web perspective, URLs follows a structure like in following :
URN(Uniform Resource Name)
URN is a string of characters that is used to identify a resource by name. It doesn’t contain location information about resource. It can be referred like name only if given name is unique. On the web perspective, URNs starts with “urn” keyword. URN a subset of URI.
For Example:
- urn:isbn:9182736450
- urn:ISSN:9988–7766
- urn:tmz:cbl:ukf:m2445
URI(Uniform Resource Identifier)
URI is a string of characters that is used to identify a resource (videos, audios, images, texts etc.). URI identify a resource’s location or name and URI encompasses both URL and URN.
For Example:
- https://www.oracle.com
- urn:ISSN:9988–7766
- http://localhost:8080/workspace/project?version=1&ser=0#1856