Uniform Resource Identifier: Difference between revisions

Content deleted Content added
m ce
Added info to refs, MOS:T, ce
Line 27:
=== Conception ===
 
URIs and URLs have a shared history. In 1990, [[Tim Berners-Lee|Tim Berners-Lee's]] proposals for [[hypertext]] implicitly introduced the idea of a URL as a short string representing a resource that is the target of a [[hyperlink]].<ref>{{cite web |last1=Palmer |first1=Sean |title=The Early History of HTML |url=http://infomesh.net/html/history/early/ |website=infomesh.net |access-date=6 December 2020}}</ref> At the time, people referred to it as a "hypertext name"<ref>{{cite web |title=W3 Naming Schemes |url=https://www.w3.org/History/19921103-hypertext/hypertext/WWW/Addressing/Addressing.html |website=www.w3.orgW3C |date= 1992-02-24 |access-date=6 December 2020}}</ref> or "document name".
 
Over the next three and a half years, as the [[World Wide Web|World Wide Web's]] core technologies of [[HTML]], [[HTTP]], and [[Web browser|web browsers]] developed, a need to distinguish a string that provided an address for a resource from a string that merely named a resource emerged. Although not yet formally defined, the term ''Uniform Resource Locator'' came to represent the former, and the more contentious ''Uniform Resource Name'' came to represent the latter. In July 1992 Berners-Lee's report on the [[Internet Engineering Task Force]] (IETF) "UDI (Universal Document Identifiers) [[Birds of a feather (computing)|BOF]]" mentions URLs (as Uniform Resource Locators), URNs (originally, as Unique Resource Numbers), and the need to charter a new working group.<ref>{{cite web |title=Proceedings of the Twenty-Fourth Internet Engineering Task Force |page=193 |url=https://www.ietf.org/proceedings/24.pdf |publisher=Corporation for National Research Initiatives |date=July 1992 |website=IETF|access-date=27 July 2021}}</ref> In November 1992 the IETF "URI Working Group" met for the first time.<ref>{{cite web |title=Proceedings of the Twenty-Fifth Internet Engineering Task Force |page=501 |url=https://www.ietf.org/proceedings/25.pdf |publisher=Corporation for National Research Initiatives |date=November 1992 |website=IETF |access-date=27 July 2021}}</ref>
 
During the debate over defining URLs and URNs, it became evident that the concepts embodied by the two terms were merely aspects of the fundamental, overarching, notion of resource ''identification''. In June 1994, the IETF published Berners-Lee's first ''Request for Comments'' that acknowledged the existence of URLs and URNs. Most importantly, it defined a formal syntax for ''Universal Resource Identifiers'' (i.e. URL-like strings whose precise syntaxes and semantics depended on their schemes). In addition, the {{IETF RFC|1630}} attempted to summarize the syntaxes of URL schemes in use at the time. It acknowledged -- ''but did not standardize''—the existence of relative URLs and fragment identifiers.{{Ref RFC|1630}}
Line 41:
In December 1999, {{IETF RFC|2732}}{{Ref RFC|2732}} provided a minor update to <nowiki>RFC 2396</nowiki>, allowing URIs to accommodate [[IPv6]] addresses. A number of shortcomings discovered in the two specifications led to a community effort, coordinated by <nowiki>RFC 2396</nowiki> co-author [[Roy Fielding]], that culminated in the publication of IETF {{IETF RFC|3986}}{{Ref RFC|3986}} in January 2005. While obsoleting the prior standard, it did not render the details of existing URL schemes obsolete; <nowiki>RFC 1738</nowiki> continues to govern such schemes except where otherwise superseded. IETF {{IETF RFC|2616}}{{Ref RFC|2616}} for example, refines the <code>http</code> scheme. Simultaneously, the IETF published the content of <nowiki>RFC 3986</nowiki> as the full standard STD 66, reflecting the establishment of the URI generic syntax as an official Internet protocol.
 
In 2001, the [[World Wide Web Consortium|World Wide Web Consortium's]] (W3C) Technical Architecture Group (TAG) published a guide to [[best practices]] and canonical URIs for publishing multiple versions of a given resource.<ref>{{cite web |last1=Raman |first1=T.V. |title=On Linking Alternative Representations To Enable Discovery And Publishing |url=https://www.w3.org/2001/tag/doc/alternatives-discovery.html |website=www.w3.orgW3C |access-date=6 December 2020 |date=1 November 2006}}</ref> For example, content might differ by language or by size to adjust for capacity or settings of the device used to access that content.
 
In August 2002, IETF {{IETF RFC|3305}}{{Ref RFC|3305}} pointed out that the term "URL" had, despite widespread public use, faded into near obsolescence, and serves only as a reminder that some URIs act as addresses by having schemes implying network accessibility, regardless of any such actual use. As URI-based standards such as [[Resource Description Framework]] make evident, resource identification need not suggest the retrieval of resource representations over the Internet, nor need they imply network-based resources at all.
 
The [[Semantic Web]] uses the HTTP URI scheme to identify both documents and concepts for practical uses, a distinction which has caused confusion as to how to distinguish the two. The ''TAG'' published an e-mail in 2005 with a solution of the problem, which became known as the ''httpRange-14 resolution''.<ref>{{cite web |last1=Fielding |first1=Roy |title=[httpRange-14] Resolved |url=https://lists.w3.org/Archives/Public/www-tag/2005Jun/0039.html |website=lists.w3.orgW3C Public mailing list archives |access-date=6 December 2020 |date=18 Jun 2005}}</ref> The W3C subsequently published an Interest Group Note titled ''"Cool URIs for the Semantic Web''", which explained the use of [[content negotiation]] and the [[HTTP 303]] response code for redirections in more detail.<ref>{{cite web |editor-last1=Sauermann |editor-first1=Leo |editor-first2=Richard |editor-last2=Cyganiak |first1= Danny |last1=Ayers |first2=Max |last2=Völkel |title=Cool URIs for the Semantic Web |url=https://www.w3.org/TR/cooluris/ |website=www.w3.orgW3C |access-date=6 December 2020 |date=December 3, 2008}}</ref>
 
== Design ==
Line 61:
As such, a URL is simply a URI that happens to point to a resource over a network.{{efn|A report published in 2002 by a joint W3C/IETF working group aimed to normalize the divergent views held within the IETF and W3C over the relationship between the various 'UR*' terms and standards. While not published as a full standard by either organization, it has become the basis for the above common understanding and has informed many standards since then.}}{{Ref RFC|3305}} However, in non-technical contexts and in software for the World Wide Web, the term "URL" remains widely used. Additionally, the term "web address" (which has no formal definition) often occurs in non-technical publications as a synonym for a URI that uses the ''http'' or ''https'' schemes. Such assumptions can lead to confusion, for example, in the case of XML namespaces that have a [[#Relation to XML namespaces|visual similarity to resolvable URIs]].
 
Specifications produced by the [[WHATWG]] prefer ''URL'' over ''URI'', and so newer HTML5 APIs use ''URL'' over ''URI''.<ref>{{cite web |title=URL Standard: 6.3. URL APIs elsewhere |url=https://url.spec.whatwg.org/#url-apis-elsewhere |date= 12 May 2025 |website=URL Standard }}</ref> {{cquote|Standardize on the term URL. URI and IRI [Internationalized Resource Identifier] are just confusing. In practice a single algorithm is used for both so keeping them distinct is not helping anyone. URL also easily wins the search result popularity contest.<ref>{{cite web |title=URL Standard: Goals |url=https://url.spec.whatwg.org/#goals}}</ref>}}
 
While most URI schemes were originally designed to be used with a particular [[protocol (computing)|protocol]], and often have the same name, they are semantically different from protocols. For example, the scheme ''http'' is generally used for interacting with [[web resource]]s using HTTP, but the scheme ''[[file URI scheme|file]]'' has no protocol.