W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > December 2005

Re: SPARQL Protocol: suboptimal examples

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 14 Dec 2005 20:37:58 +0100
To: Dan Connolly <connolly@w3.org>
Cc: public-rdf-dawg-comments@w3.org
Message-ID: <6ks0q11vfh0i7t57rbhr8tmohtrpgblk6h@hive.bjoern.hoehrmann.de>

* Dan Connolly wrote:
>>   http://www.w3.org/TR/2005/WD-rdf-sparql-protocol-20050914/ has a
>> number of problems in the various examples that encourage inccorect
>> or suboptimal behavior; the draft should either be changed such that
>> the issues do not occur or such that it is clear why that is not
>> possible; in particular:
>>   * some violate http://www.w3.org/TR/webarch/#no-text-xml
>Which ones? How so? What would you suggest instead?

  % GET http://www.w3.org/TR/2005/WD-rdf-sparql-protocol-20050914/ |
      grep -n -P "text/xml" -
  1257:Content-Type: text/xml; charset=utf-8
  1275:Content-Type: text/xml; charset=utf-8

The correct type might be application/soap+xml.

>>   * some violate http://www.w3.org/TR/webarch/#no-charset
>Which ones? How so?

  % GET http://www.w3.org/TR/2005/WD-rdf-sparql-protocol-20050914/ |
      grep -n -P "xml.*charset" -
  653:Content-Type: application/sparql-results+xml; charset=utf-8
  704:Content-Type: application/sparql-results+xml; charset=utf-8
  805:Content-Type: application/sparql-results+xml; charset=utf-8
  833:Content-Type:  application/sparql-results+xml; charset=utf-8
  873:Content-Type:  application/sparql-results+xml; charset=utf-8
  960:Content-Type: application/sparql-results+xml; charset=utf-8
  1028:Content-Type: application/sparql-results+xml; charset=utf-8
  1192:Content-Type: application/sparql-results+xml; charset=utf-8
  1257:Content-Type: text/xml; charset=utf-8
  1275:Content-Type: text/xml; charset=utf-8

I think the "how so" is at least as obvious.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 14 December 2005 19:37:49 GMT

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