<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <strong>Resource and Representation Typing in HTTP <ins>HTTP における資源及び表現型付け</ins></strong><ul><li>Internet Draft         </li><li>Document: draft-palmer-resrep-type-00.txt                     </li><li>Expires: September 1, 2002</li><li>Sean B. Palmer</li><li>March 2001</li></ul></p><section><h1>Status Of This Memo</h1><blockquote><p>This  document  is  an Internet-Draft and is in full conformance with
all provisions of Section 10 of RFC2026.</p><p>Internet-Drafts are working documents  of  the  Internet  Engineering
Task  Force  (IETF),  its  areas,  and its working groups.  Note that
other groups may  also  distribute  working  documents  as  Internet-
Drafts.</p><p>Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at  any
time.   It  is  inappropriate  to  use  Internet-Drafts  as reference
material or to cite them other than as &quot;work in progress.&quot;</p><p>The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt
The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html.</p><p>This Internet-draft will expire on September 1, 2002.</p><p>Copyright Notice Copyright (C) The Internet Society (2001). All
Rights Reserved. <ins>(ママ)</ins></p></blockquote></section><section><h1>Abstract</h1><blockquote><p>This document defines the &quot;Repr-Type&quot; and &quot;Resource-Type&quot; HTTP 
entity-header field names, to provide URIs that identify the 
generic type (class membership) of representations and their 
original source resources respectively.</p></blockquote><p>この文書は、 <a0:anchor>HTTP</a0:anchor>
<a0:anchor>実体頭欄</a0:anchor>名
<code class="HTTP"><a0:anchor>Repr-Type</a0:anchor>
及び <code class="HTTP"><a0:anchor>Resource-Type</a0:anchor></code>
を定義します。
これらは、表現の一般的な型 (class
membership) とその元の典拠資源をそれぞれ識別する
URI を提供します。</code></p></section><section><h1>1. Introduction</h1><blockquote><p>Providing a resource type along with an HTTP response is useful, 
since there may be no other way to identify the resource type within 
the domain of the HTTP message. For example, HTML pages do not give 
a machine processable type for the resource that they are 
representations of.</p></blockquote><p>資源の型を HTTP 応答と共に提供することは有用です。
なぜなら、 HTTP メッセージの範囲内で資源の型を識別する方法は他にはおそらくないからです。
たとえば、 <a0:anchor>HTML</a0:anchor>
頁はその表現している資源の機械が処理可能な型を与えません。</p><blockquote><p>Meanwhile, using MIME types to identify content types is 
architecturally inadvisable due to the centralization around the 
IANA - URIs should identify all important things on the Web, and 
content types are no exception. (Note that the current set of MIME 
types can have URIs, and those can be used in the Repr-Type header).</p></blockquote><p>他方、 <a0:anchor>MIME型</a0:anchor>を使って<a0:anchor>内容型</a0:anchor>を識別することは、
<a0:anchor>IANA</a0:anchor> で中央管理されているので構造的には不適当です。
<a0:anchor>URI</a0:anchor> は <a0:anchor>Web</a0:anchor> 
のすべての重要なものを識別でき、
内容型も例外ではありません。
(現在の MIME 型の集合は URI
を持ち得て、これらは
<code class="HTTP"><a0:anchor>Repr-Type</a0:anchor></code>
頭で使用し得ることに注意。)</p><blockquote><p>In fact, the content type idiom is isomorphic with that of the 
&quot;Class&quot; class in RDF Schema [RDFSchema].</p></blockquote><p>実際、内容型慣用句は <a0:anchor>RDFSchema</a0:anchor>
の <code><a0:anchor>Ckass</a0:anchor></code> class
と isomorphic です。</p><blockquote><blockquote><p>RDF classes can be defined to represent almost anything, such as 
Web pages, people, document types, databases or abstract concepts. <ins><a0:anchor-external a0:resScheme="URI" a0:resParameter="http://www.w3.org/TR/2000/CR-rdf-schema-20000327/#s2.2.3">http://www.w3.org/TR/2000/CR-rdf-schema-20000327/#s2.2.3</a0:anchor-external></ins></p></blockquote></blockquote><p>RDF class は、 <a0:anchor>Web頁</a0:anchor>,
人物, 文書型, データベース,
抽象概念などほとんどなんでも表現するように定義できます。</p><blockquote><p>Repr-Type values are generally restricted to content type classes, 
whereas the Resource-Type value have no such restriction, according 
to the definition of resource in RFC 2396.</p></blockquote><p><code class="HTTP">Repr-Type</code> 値は通常内容型
class に制限されます。
<code class="HTTP">Resource-Type</code>
値は、 <a0:anchor>RFC2396</a0:anchor>
の<a0:anchor>資源</a0:anchor>の定義に従ってそうした制限はありません。</p></section><section><h1>2. Entity-Header Productions</h1><section><h1>2.1 Syntax</h1><blockquote><p>Here is an ABNF for the proposed entity-headers:-</p></blockquote><p>これは提案する実態頭の <a0:anchor>ABNF</a0:anchor>
です:</p><blockquote><ul><li>ResourceType =  &quot;Resource-Type&quot; &quot;:&quot; 1#URIview</li><li>ReprType     =  &quot;Repr-Type&quot; &quot;:&quot; 1#URIview</li></ul><ul><li>URIview      =  absoluteURI [ &quot;#&quot; fragment ]     ; from [RFC2396]</li></ul></blockquote><blockquote><p>The &lt;absoluteURI&gt;, and &lt;fragment&gt; components are imported from 
[RFC2396].</p></blockquote><p><code class="ABNF"><a0:anchor>absoluteURI</a0:anchor></code>,
<code class="ABNF"><a0:anchor>fragment</a0:anchor></code>
は RFC 2396 から輸入しました。</p><blockquote><p>Two examples of syntactically valid ResourceType productions (i.e. 
&quot;Resource-Type&quot; HTTP headers) are:-</p></blockquote><p>構文的に妥当な
<code>ResourceType</code> 生成物
(すなわち 
<code class="HTTP">Resource-Type</code>
HTTP 頭) の2つの例は:</p><blockquote><ul><li>Resource-Type: http://xmlns.com/foaf/0.1/Person</li><li>Resource-Type: http://www.w3.org/2000/10/swap/pim/doc#Work</li></ul></blockquote><blockquote><p>Two examples of syntactically valid ReprType productions (i.e. 
&quot;Repr-Type&quot; HTTP headers) are:-</p></blockquote><p>構文的に妥当な
<code>ReprType</code> 生成物
(すなわち 
<code class="HTTP">Repr-Type</code>
HTTP 頭) の2つの例は:</p><blockquote><ul><li>Repr-Type: http://www.w3.org/2000/10/swap/log#N3Document</li><li>Repr-Type: http://www.iana.org/assignments/media-types/text/html</li></ul></blockquote></section><section><h1>2.2 Equality and Character Parsing of Header Values</h1><blockquote><p>Header values are to be compared on a character for character (case 
sensitive) basis. Due to internationalization issues, escaped 
unicode characters are allowed in the URI header values. You must 
use the following escaping procedure:-</p></blockquote><p>頭値は文字ごとに
(大文字・小文字を区別して)
比較します。
国際化の問題から、 escape
した <a0:anchor>unicode</a0:anchor> 文字は URI
頭値中で認められます。
次の escape 手続きを踏まなければなりません。</p><blockquote><ol><li>Each disallowed character is converted to UTF-8 (as defined in 
[RFC2279]) as one or more bytes.</li><li>Any bytes corresponding to a disallowed character are escaped 
with the URI escaping mechanism (that is, converted to %HH, 
where HH is the hexadecimal notation of the byte value).</li><li>The original character is replaced by the resulting character 
sequence.</li></ol></blockquote><ol><li>各禁止文字は <a0:anchor>UTF-8</a0:anchor>
の1つ以上のバイト列に変換します。</li><li>禁止文字に対応するバイト列を
URI escape 機構により escape
します。 (すなわち、
<code class="URI">%<var>HH</var></code>
に変換します。ここで、 <var>HH</var>
はバイト値の16進記法です。</li><li>元の文字を結果の文字列で置換します。</li></ol></section></section><section><h1>3. General Use Considerations</h1><blockquote><p>It is perfectly legal and sensible for either of the defined 
entity-headers to occur more than once; if they do, then processors 
should take the intersection of the given classes. For example, a 
Resource Type may be both Vehicle and a Car. A Representation Type 
may be both an XML document, and a canonicalized XML document.</p></blockquote><p>定義された実体頭を複数回出現させることはまったく合法であって意味のあることです。
そうした場合、処理系は与えられた
class の相互作用と取るべきです。
たとえば、資源型は Vehicle
及び車の双方かもしれません。
表現型は XML 文書と正規化 XML
文書の双方かもしれません。</p><blockquote><p>Note that if the Repr-Type (and possibly Content-Type) headers 
conflict semantically, then all of the Repr-Type headers (or just 
those that conflict with Content-Type, if present) should be 
abandoned.</p></blockquote><p><code class="HTTP">Repr-Type</code>
(及びもしかすると <code class="HTTP"><a0:anchor>Content-Type</a0:anchor></code>)
頭が意味的に衝突する場合は、
すべての <code class="HTTP">Repr-Type</code>
頭 (あるいは <code class="HTTP">Content-Type</code>
と衝突する場合は単にそれと衝突するもの)
は捨てるべきです。</p></section><section><h1>4. Security Considerations</h1><blockquote><p>Implementors should take heed of section 15.1.1 of [RFC2616]. There 
may be other security considerations that have not yet been raised.</p></blockquote><p>実装者は <a0:anchor>RFC2616</a0:anchor> の
15.1.1 節に注意するべきです。
まだ起こっていない他の安全上の注意点もあるかもしれません。</p><blockquote><p>The relevant security issues associated with each Repr-Type value 
should obviously be taken into consideration when handling the 
entity-body.</p></blockquote><p>各 <code class="HTTP">Repr-Type</code>
値に関連付けられた関係する安全上の問題は<a0:anchor>実体本体</a0:anchor>を取り扱うときには十分考慮に入れるべきです。</p></section><section><h1>5. Further Information</h1><blockquote><p>Further information on the headers defined by this document is 
available at  <a0:anchor-external a0:resScheme="URI" a0:resParameter="http://purl.org/net/resreptype">http://purl.org/net/resreptype</a0:anchor-external></p></blockquote><p>この文書の定義する頭についての詳しい情報は
<a0:anchor-external a0:resScheme="URI" a0:resParameter="http://purl.org/net/resreptype">http://purl.org/net/resreptype</a0:anchor-external>
から入手可能です。</p></section><section><h1>6. Acknowledgements</h1><blockquote><p>Many thanks to Mark Baker, Tim Berners-Lee, Jonathan Borden, Sandro 
Hawke, Mark Nottingham, and Aaron Swartz for the discussions and 
inspiration that led to this document.</p></blockquote><blockquote><p>Many thanks also to Daniel Biddle and Aaron Swartz for their help in 
preparing this document.</p></blockquote></section><section><h1>References</h1><pre>   [RDFSchema] Dan Brickley, R. V. Guha (2000). Resource Description 
               Framework (RDF) Schema Specification 1.0. W3C Candidate 
               Recommendation.
               http://www.w3.org/TR/2000/CR-rdf-schema-20000327/</pre><pre>   [RFC2279]   F. Yergeau (1998). UTF-8, a transformation format of 
               ISO 10646.
               http://www.ietf.org/rfc/rfc2279.txt</pre><pre>   [RFC2396]   T. Berners-Lee, R. Fielding, L. Masinter (1998). Uniform
               Resource Identifiers (URI): Generic Syntax.
               http://www.ietf.org/rfc/rfc2279.txt</pre><pre>   [RFC2616]   T. Berners-Lee, R. Fielding, H. Frystyk, J. Gettys, P. 
               Leach, L. Masinter, J. Mogul (1999). Hypertext Transfer 
               Protocol -- HTTP/1.1.
               http://www.ietf.org/rfc/rfc2616.txt</pre></section><section><h1>License</h1><p><a0:anchor>RFCのライセンス</a0:anchor></p></section><section><h1>メモ</h1></section></body></html>