[HN Gopher] Unveiling URI, URL, and URN
       ___________________________________________________________________
        
       Unveiling URI, URL, and URN
        
       Author : thunderbong
       Score  : 42 points
       Date   : 2024-06-15 11:41 UTC (1 days ago)
        
 (HTM) web link (blog.logto.io)
 (TXT) w3m dump (blog.logto.io)
        
       | jinnko wrote:
       | > All URLs or URNs are URIs, but not all URIs are URLs or URNs.
        
         | yuchi wrote:
         | And only very malformed URNs may be actually valid URLs
        
           | jwilk wrote:
           | RFC 3986 ("Uniform Resource Identifier (URI): Generic
           | Syntax") has a wider definition of URNs, according to which
           | URLs and URNs are not disjoint.
           | 
           | https://www.rfc-editor.org/rfc/rfc3986.html#section-1.1.3
        
       | CaliforniaKarl wrote:
       | UR_:
       | 
       | I: Identifier, is an identifier. "Oh, that's a [a thing, or a
       | location]."
       | 
       | N: Name, tells what the thing is. "Oh, that's the Sears Tower."
       | 
       | L: Locator, tells how to get to something. "Oh, that's at 233 S.
       | Wacker Drive Chicago, Illinois 60606"
       | 
       | That was the second example to come into my head (the first was
       | the Bank of America building in San Francisco), and I think it
       | speaks to things that _both* examples have changed their names!
       | The Sears Tower is now the "Willia Tower", and the "Bank of
       | America Center" is now "555 California Street".
       | 
       | And even place names don't stay the same! In 2019, Stanford
       | University renamed "Serra Mall" to "Jane Stanford Way": addresses
       | changed; building names did not.
       | 
       | Just goes to show why it's so important to implement redirects,
       | and (in HTTP at least) why the "301 Moved Permanently" response
       | code exists._
        
       | Pxtl wrote:
       | So how many tools out there use the term "uri" to sound smart but
       | would fall over on their faces of you passed anything but a web
       | URL to their "uri" parameter?
        
         | stavros wrote:
         | file:///etc/passwd
        
       | lohfu wrote:
       | It pains me greatly that the host name part is in lack of a
       | better name unimportance to significance in domain names, but
       | significance to unimportance in URL paths
        
       | lohfu wrote:
       | I HML
        
       | tejtm wrote:
       | And don't forget IRIs for when you have really dirty data and
       | can't be bothered to clean it up.
       | 
       | https://en.wikipedia.org/wiki/Internationalized_Resource_Ide...
        
       | golly_ned wrote:
       | This isn't correct. One example is that URIs don't necessarily
       | provide the means of locating a resource. Another example is that
       | the author says there are no URIs which are URNs.
       | 
       | This is wrong according to the URI RFC, which the author cites:
       | https://datatracker.ietf.org/doc/html/rfc3986#section-1.1.1
       | The following example URIs illustrate several URI schemes and
       | variations in their common syntax components:
       | ftp://ftp.is.co.za/rfc/rfc1808.txt
       | http://www.ietf.org/rfc/rfc2396.txt
       | ldap://[2001:db8::7]/c=GB?objectClass?one
       | mailto:John.Doe@example.com
       | news:comp.infosystems.www.servers.unix
       | tel:+1-816-555-1212                telnet://192.0.2.16:80/
       | urn:oasis:names:specification:docbook:dtd:xml:4.1.2
        
       ___________________________________________________________________
       (page generated 2024-06-16 23:00 UTC)