URI共通構文(F)

広告

広告

原文

最終更新
2006-04-14T01:01:00+09:00
この記事のURI参照
https://www.7key.jp/rfc/2396/rfc2396_f.html#source

URI共通構文(和訳)

最終更新
2006-09-27T00:00:00+09:00
この記事のURI参照
https://www.7key.jp/rfc/2396/rfc2396_f.html#translation

F. Abbreviated URLs

   The URL syntax was designed for unambiguous reference to network
   resources and extensibility via the URL scheme.  However, as URL
   identification and usage have become commonplace, traditional media
   (television, radio, newspapers, billboards, etc.) have increasingly
   used abbreviated URL references.  That is, a reference consisting of
   only the authority and path portions of the identified resource, such
   as

      www.w3.org/Addressing/

   or simply the DNS hostname on its own.  Such references are primarily
   intended for human interpretation rather than machine, with the
   assumption that context-based heuristics are sufficient to complete
   the URL (e.g., most hostnames beginning with "www" are likely to have
   a URL prefix of "http://").  Although there is no standard set of
   heuristics for disambiguating abbreviated URL references, many client
   implementations allow them to be entered by the user and
   heuristically resolved.  It should be noted that such heuristics may
   change over time, particularly when new URL schemes are introduced.

URI構文は、ネットワーク上のリソースの明白な参照と、URLスキームを通じた拡張性を考慮に入れ設計された。しかし、URLの識別と慣用が一般的になるにつれ、既存メディア(テレビ、ラジオ、新聞、看板広告など)による省略URL参照の使用が増えている。つまり、指定するリソースのオーソリティとパスの部分のみからなる参照、www.w3.org/Addressing/のような、又は単にそれ自身のDNSホスト名のみといった形式である。このような参照は、本来機械ではなく人間が解釈することを意図したものであり、そこには文脈から判断することによりURLを十分完全に補足できるとの仮定がある(例えば、"www"で始まるホスト名であれば、おそらく頭に"http://"がくる)。URL参照の省略部分を補足するための標準的な判断の集合は存在しないが、多くのクライアント処理系はユーザによる省略されたURL参照の入力を受け付け、経験的に解決をしている。このような方法は時が経つにつれて、特に新しいURLスキームが導入されることにより変わり得るものであることに注意すべきである。

   Since an abbreviated URL has the same syntax as a relative URL path,
   abbreviated URL references cannot be used in contexts where relative
   URLs are expected.  This limits the use of abbreviated URLs to places
   where there is no defined base URL, such as dialog boxes and off-line
   advertisements.

省略されたURLは相対URLのパスと同様の構文になっているため、省略されたURL参照を相対URLが用いられる可能性のある文脈で使うことはできない。これにより、省略URLは基底URLが定義されていない場、つまりダイアログボックスやオフラインの広告などの使用に制限される。

広告

Copyright (C) 2006 七鍵 key@do.ai 初版:2006年04月14日 最終更新:2006年09月27日