W3C home > Mailing lists > Public > public-wai-ert@w3.org > July 2005

Re: [Fwd: [ERT] http request/response]

From: Charles McCathieNevile <chaals@opera.com>
Date: Wed, 06 Jul 2005 18:55:45 +0100
To: "Johannes Koch" <johannes.koch@fit.fraunhofer.de>, "public-wai-ert@w3.org" <public-wai-ert@w3.org>
Cc: Marja <marja@annotea.org>
Message-ID: <op.sth6q7mzwxe0ny@widsith.local>

On Wed, 29 Jun 2005 02:05:49 +1000, Johannes Koch  
<johannes.koch@fit.fraunhofer.de> wrote:

> ... See following proposal. What do you think?

I think where headers are standardised, we should just use them as  
properties. I wonder about actually making them datatypes too (since there  
is no clear way to specify a default datatype, although it might become  
possible at some point when they figure out how to say what is in a  
datatype).

I though instead of having a Request class it might make sense to make  
GET, PUT, POST, etc into classes whch are subclasses of a Request.

An alternative proposal therefore follows, with a few alternative ways of  
modelling the data. This is definitely just for discussion - I am not  
wedded to any particular approach yet, although I like the idea of having  
reasonably explicit data.

> I prefer a different namespace for the HTTP stuff because IMHO it
> should not be restricted to EARL.

Agreed.

The following is very much a strawman of ways we could encode stuff. We  
should still also look at what Annotea uses...

  <?xml version="1.0" encoding='UTF-8'?>
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:earl="http://www.w3.org/WAI/ER/EARL/nmg-strawman#"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:http="http://example.org/http/">
     <earl:WebContent>

       <dc:location>http://example.org/somewhere/over/the/rainbow</dc:location>
       <dc:format>text/html</dc:format>
       <earl:httpRequest><!-- minCardinality=0 maxCardinality=1 -->
         <http:POST>
           <http:accept parsetype="Collection">
               <mime:TEXThtml>
                 <mime:q>1.0</mime:q>
               </mime:TEXThtml>
               <mime:ANY>
                 <mime:q>0.1</mime:q>
               </mime:ANY>
           </http:accept>
           <http:AcceptLanguage>: de;q=1.0, en;q=0.5</http:AcceptLanguage>
           <http:header>Content-Type: some/type</http:header>
           <http:header>
             <http:PrivateHeader>
               <dc:title>X-archived-at</dc:title>
               <http:value>http://example.org/somewhere/over/the/rainbow</http:value>
             </http:PrivateHeader>
           <http:header>
         </http:Request>
       </earl:httpRequest>
       <earl:httpResponse>...</earl:httpResponse>
     </earl:WebContent>
  </rdf:RDF>



-- 
Charles McCathieNevile                              chaals@opera.com
          hablo español - je parle français - jeg lærer norsk
   Here's one we prepared earlier:   http://www.opera.com/download
Received on Wednesday, 6 July 2005 17:56:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:26 GMT