相対参照

相対 URL (URL)

[15] 基底URI からの相対的な位置関係によってあらわされる URI。 Relative URI。

[16] 太古の昔には部分 (partial) URI とも呼ばれました。

[17] 現在では相対 URI は scheme によらない一般構文が定められていますから、基底 URI と相対 URI が与えられれば機械的に絶対URI に変換できます。

[18] 類似の用語:

[19] BNF では relativeURI などと表されることが多いです。

特別な相対 URL の解決

[5] 本来の URL の仕様上は相対URL解決URL scheme に依存しない演算のはずですが、実際には URL scheme ごとに独自の解決の方法が規定されていることがあります。

[3] jar:! の扱いを特別に定めています。

[4] smb:作業グループに関する .. の扱いを特別に定めています。

その他 URL scheme ごとの事情

[14] gopher: でも相対URLを使うことができ、 特別扱いもされてはいませんが、 gopher: URL の定義上、 /http: のような階層的な意味を持たないので、相対URLはあまり有用ではありません。

gopher: 参照。

歴史

RFC 1808

[11] RFC 1808相対URLを規定していた RFC です。

[12] RFC 2396 により更新 (事実上廃止) され、 RFC 3986 により廃止されました。

[13] RFC 2396 との関係については、 RFC 2396 の項を参照。

関連

[6] 相対URLのうち、素片識別子のないものを部分URLといいます。

[8] Atomリンク関係型として相対URLのごく一部を使うことを認めていました。 これは IANAURL の省略形を意味していました。

[7] CURIE簡潔IRI相対URLと見かけは似ていますが、全く異なるものです。

[9] WebDAV では単純参照として限定的な相対URLが用いられています。

[10] 単純参照では ... が禁止されています。

メモ

[1] http://foo.example/a/..http://foo.example/a/../基底URI としても等価ではありません

相対参照 b解決すると、それぞれ http://foo.example/a/bhttp://foo.example/b になります。

参考: URL resolution sanity check mid:42DCF11E.2060503@metalab.unc.edu (uri@w3 のスレ)

(名無しさん [sage])

[2] ITmedia News:ニフティ、動画にコメント付けられる「ニフニフ動画」 (2007-06-11 22:16:55 +09:00 版) http://www.itmedia.co.jp/news/articles/0706/11/news039.html

<noscript>
	<img src="//secure-jp.imrworldwide.com/cgi-bin/m?ci=itmedia&amp;cg=0" alt="">
</noscript>

[20] [css-values] Per WG resolution, define that empty urls must resolve t… ( (tabatkins著, )) https://github.com/w3c/csswg-drafts/commit/e0518924c87638861e6b89cc303667b9421cf152

[21] [css-values] Move empty URL section out of the way of normal readers.… ( (fantasai著, )) https://github.com/w3c/csswg-drafts/commit/5f598ec4785ad42e018e081fcb9d50e80ae1d48f

[22] Allow URLs without fragments (annevk著, ) https://github.com/whatwg/url/commit/f88f96fe4922cb7223f327cb41db613e4b11207c

[23] 相対 (relative) URI 参照 (reference) := ¬絶対URI参照URI参照

[24] RDF::Helper - search.cpan.org () http://search.cpan.org/dist/RDF-Helper/lib/RDF/Helper.pm

If specified, this option sets what the base URI will be when working with so called abbreviated URIs, like #me. If you do not specify an explicit base_uri option, then one will be created automatically for you. See http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-ID-xml-base for more information on abbreviated URIs.

[25] Editorial: give URL syntax components their own terms (annevk著, ) https://github.com/whatwg/url/commit/451696e4297c4c676fae21dbc926aeafb2477e6c

[26] Activity Streams 2.0 () https://w3c.github.io/activitystreams/core/#h-urls

Relative IRI (and URL) references should not be used within an Activity Streams 2.0 document due to the fact that many JSON parser implementations are not capable of reliably preserving the base context necessary to properly resolve relative references.

[27] VRML97, ISO/IEC 14772-1:1997 -- 3 Definitions () https://www.web3d.org/documents/specifications/14772/V2.0/part1/glossary.html#RURL

3.86 RURL

Relative Uniform Resource Locator.