Re: Comments on WD-HTTP-in-RDF-20070301

Johannes Koch schrieb:
> Jo Rabin schrieb:
>> 5. I'm not clear as to what normalisation is pre-supposed on the 
>> contents of
>> the various header field values. For our purposes it would be useful 
>> to have
>> those values in a normal form, where possible. Equally it would be 
>> useful,
>> for audit purposes, to have a literal representation of the unprocessed
>> headers.
> 
> Competing requirements: good searchability (named properties) vs. 
> original order.
> 
> Possible solution:
> Preserve order (rdf:Bag) with
> http:MessageHeader
>   |- http:fieldName rdf:resource="&http;content-type"
>   |  (poining to a specified _value_ instead of named property)
>   |- http:fieldValue

Or using an RDF collection:

<http:Request ...>
   ...
   <http:headers rdf:parseType="Collection">
     <http:MessageHeader rdf:ID="mh1">
       <http:fieldName rdf:resource="&http;accept-language"/>
       <http:fieldValue>en</http:fieldValue>
     </http:MessageHeader>
     <http:MessageHeader rdf:ID="mh2">
       <http:fieldName rdf:resource="&http;accept"/>
       <http:fieldValue rdf:parseType="Collection">
         <foo:ListItem>
           <foo:mimeType>application/xhtml+xml</foo:mimeType>
           <foo:params>q=1.0</foo:params>
         </foo:ListItem>
         <foo:ListItem>
           <foo:mimeType>text/html</foo:mimeType>
           <foo:params rdf:parseType="Collection">
             <foo:Param>
               <foo:paramName>q</foo:paramName>
               <foo:paramValue>0.9</foo:paramValue>
             </foo:Param>
             <foo:Param>
               <foo:paramName>bar</foo:paramName>
               <foo:paramValue>blah</foo:paramValue>
             </foo:Param>
           </foo:params>
         </foo:ListItem>
       </http:fieldValue>
     </http:MessageHeader>
   </http:headers>
   ...
</http:Request>

which is a representation of

Accept-Language: en
Accept: application/xhtml+xml;q=1.0, text/html;q=0.9,bar=blah

>> 6. It would be useful for those header field values that have 
>> structure to
>> be represented so that their components are exposed in a way that allows
>> easy access via XPATH expressions.

See #mh2 in the example above.
-- 
Johannes Koch
BIKA Web Compliance Center - Fraunhofer FIT
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

Received on Monday, 19 March 2007 14:00:22 UTC