URI (Uniform Resource Identifier)

  • A general concept: any string that identifies a resource.
  • It can be a name, a location, or both.
  • Examples:
  • https://example.com/path (this is also a URL)
  • /path/to/resource (just a path — this is a relative URI)
  • mailto:user@example.com
  • urn:isbn:0451450523 (a book identifier — not a URL)

URL (Uniform Resource Locator)

  • A specific type of URI.
  • It locates (provides the address for) a resource on the internet.
  • It always includes the protocol (http://, https://, etc.) and usually a domain/host, plus the path.

Key relationship

Every URL is a URI, but not every URI is a URL.

Common breakdown of a full URL

https://www.example.com:443/path/to/resource?query=param#fragment
└────┬────┘  └────┬────┘ └──────┬──────┘
 Protocol     Host      Path
  • The pathname part (/path/to/resource) is just one component of a URL/URI.
  • Both URL and URI can include or omit the path depending on context.

Quick summary table

TermIncludes protocol + domain?PurposeExample
URINot necessarilyIdentify/users/123, urn:isbn:1234
URLYesLocate on networkhttps://example.com/users/123

By Peter Martin

“Age is something that doesn’t matter, unless you are a cheese.” ― Luis Buñuel

Leave a Reply

Your email address will not be published. Required fields are marked *

👍 This page answered my questions

Your vote helps other woodworkers quickly find the answers and techniques that actually work in the shop.