What is URI(URN, URL)

URI (Uniform Resource Identifier) 

  • URI is an identifier of a specific resource. Like a page, or book, or a document. 
  • For example, if you request a specific resource via https://www.google.com/resource/sample/1, you will retrieve resources such as sample.pdf, sample.docx etc. 
  • URL and URN are sub-types of URI. 
URL (Uniform Resource Locator) 
  • URL is a special type of identifier which tells you the location of specific resource on the server.  
  • If the location of resource changes in the server, you will not be able to access the resource via the previous URL
URN (Uniform Resource Name) 
  • URN is the name of specific resource. 
  • Unlike the URL, even if the location of the resource changes on the server, you will still be able to access the resource using URN because URN points to the specified resource. 

Comments

Popular posts from this blog

Structures of JAVA

Spring Boot JPA - Pagination

Java Data Structures VS Python, C/C++ Data Structures

Spring Boot JPA - What is JPA, Entity, Repository

Design Pattern - Proxy