- From: Eric Prud'hommeaux <eric@w3.org>
- Date: Fri, 25 Jun 2004 08:24:54 -0400
- To: Dirk-Willem van Gulik <dirkx@webweaving.org>
- Cc: "Seaborne, Andy" <andy.seaborne@hp.com>, kendall@monkeyfist.com, RDF Data Access Working Group <public-rdf-dawg@w3.org>
- Message-ID: <20040625122454.GB12925@w3.org>
On Thu, Jun 24, 2004 at 02:11:40AM -0700, Dirk-Willem van Gulik wrote:
>
>
> On Fri, 18 Jun 2004, Seaborne, Andy wrote:
>
> > Otherwise, the set up client/server has a dependency in assuming some format
> > is available. I suppose use(abuse? not sur eit is correct use) of OPTIONS
>
> The Accept header may be more appropriate. However that is a relatively
> fragile contruct - unless there is a mandatory default. But such a default
> in essense forces every implementation to at least support one format and
> kills the ecosystem for different formats.
I think that's exactly what we'd want to manage the balance between
flexibility and interoperatbility.
> By the way - do note that compression is orthogonal in http; and that the
> varous serializations we have now are just 1-2% different in size for 10k+
> triples once they are compressed.
Unfortunately, our search server doesn't support Accept-Encoding and I
didn't see a way to use gzip (or any other tool that came immediately
to mind) to do deflate encoding, but here are some results from
compressing various forms of the same data:
search results for mesages on this thread ---
RDF/XML:
spam:/home/eric$ GET -H 'Accept: application/rdf+xml' 'http://www.w3.org/Search/Mail/Public/search?keywords=&hdr-1-name=subject&hdr-1-query=ACTION%3A+elaborate+on+4.4&index-grp=Public__FULL&index-type=t&type-index=public-rdf-dawg&resultsperpage=100' > asdf && gzip asdf && gzip -l asdf.gz && rm asdf.gz
compressed uncompressed ratio uncompressed_name
2171 30342 92.9% asdf
N3:
spam:/home/eric$ GET -H 'Accept: application/x-n3' 'http://www.w3.org/Search/Mail/Public/search?keywords=&hdr-1-name=subject&hdr-1-query=ACTION%3A+elaborate+on+4.4&index-grp=Public__FULL&index-type=t&type-index=public-rdf-dawg&resultsperpage=100' > asdf && gzip asdf && gzip -l asdf.gz && rm asdf.gz
compressed uncompressed ratio uncompressed_name
1924 20439 90.7% asdf
and, for yucks, HTML:
spam:/home/eric$ GET -H 'Accept: text/html' 'http://www.w3.org/Search/Mail/Public/search?keywords=&hdr-1-name=subject&hdr-1-query=ACTION%3A+elaborate+on+4.4&index-grp=Public__FULL&index-type=t&type-index=public-rdf-dawg&resultsperpage=100' > asdf && gzip asdf && gzip -l asdf.gz && rm asdf.gz
compressed uncompressed ratio uncompressed_name
6377 31971 80.1% asdf
--
-eric
office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
Shonan Fujisawa Campus, Keio University,
5322 Endo, Fujisawa, Kanagawa 252-8520
JAPAN
+1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell: +1.857.222.5741 (does not work in Asia)
(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.
Received on Friday, 25 June 2004 08:24:54 UTC