Re: SPARQL Protocol: suboptimal examples

* 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 UTC