some HTTP traces for SPARQL

OK, thanks to mortenf, I have one each of select, construct, and ask.

I think these are suitable for pasting into proto-wd after
 - fixing the \t artifact from TCPWatch
 - prolly get rid of the <!-- executing query... -->
   comments from the server
 - changing the domain to something.example
 - getting rid of query-lang=sparql&
 - getting rid of &format=xml
 - changing &data= to &default-graph-uri=

I'm not sure the construct answer is right; I don't
think the bnode ids line up right. Maybe those details
can be elided.

I haven't found/made an implementation that has named-graph-uri
or a work-alike, so I don't have a trace for that yet.
Eric is building one with a built-in dataset, but he went
to sleep before we could work the kinks out of it.

Here are the params used by the client and the full
trace for select, construct, and ask...

@@params [('query-lang', 'sparql'), ('query', 'PREFIX foaf:
<http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> SELECT ?book ?who WHERE { ?book
dc:creator ?who }'), ('data', 'http://sparql.net/books'), ('format',
'xml')]

[00:00.000 - client connection from 127.0.0.1:51798]
GET
http://www.wasab.dk/morten/2005/04/sparqlette/?query-lang=sparql&query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E+PREFIX+dc%3A++++++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E+SELECT+%3Fbook+%3Fwho+WHERE+%7B+%3Fbook+dc%3Acreator+%3Fwho+%7D&data=http%3A%2F%2Fsparql.net%2Fbooks&format=xml HTTP/1.0
Host: www.wasab.dk
User-agent: Python-urllib/2.1
Accept: application/xml

[00:00.185 - server connected]
HTTP/1.1 200 OK
Date: Fri, 06 May 2005 20:55:12 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 DAV/1.0.3
X-Powered-By: PHP/4.3.4
Connection: close
Content-Type: application/xml; charset=utf-8

<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2001/sw/DataAccess/rf1/result2">
<head>
    <variable name="book"/>
    <variable name="who"/>
</head>
<results>
\t<result>
\t\t<binding
name="book"><uri>http://example.org/book/book2</uri></binding>
\t\t<binding name="who"><bnode>r1115396427r1133</bnode></binding>
\t</result>
\t<result>
\t\t<binding
name="book"><uri>http://example.org/book/book3</uri></binding>
\t\t<binding name="who"><bnode>r1115396427r1133</bnode></binding>
\t</result>
\t<result>
\t\t<binding
name="book"><uri>http://example.org/book/book1</uri></binding>
\t\t<binding name="who"><literal>J.K. Rowling</literal></binding>
\t</result>
</results>
</sparql><!--
data: http://sparql.net/books
format: xml
output-xslt: 
output-type: text/html; charset=utf-8
query: PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> SELECT ?book ?who WHERE { ?book
dc:creator ?who }
query-lang: sparql
-->
[00:00.986 - server closed]


@@params [('query-lang', 'sparql'), ('query', 'PREFIX foaf:
<http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> CONSTRUCT {_:somebody foaf:name ?who;
foaf:made ?book} WHERE { ?book dc:creator ?who }'), ('data',
'http://sparql.net/books'), ('format', 'rdfxml')]

[00:00.000 - client connection from 127.0.0.1:51796]
GET
http://www.wasab.dk/morten/2005/04/sparqlette/?query-lang=sparql&query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E+PREFIX+dc%3A++++++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E+CONSTRUCT+%7B_%3Asomebody+foaf%3Aname+%3Fwho%3B+foaf%3Amade+%3Fbook%7D+WHERE+%7B+%3Fbook+dc%3Acreator+%3Fwho+%7D&data=http%3A%2F%2Fsparql.net%2Fbooks&format=rdfxml HTTP/1.0
Host: www.wasab.dk
User-agent: Python-urllib/2.1
Accept: application/rdf+xml

[00:00.179 - server connected]
HTTP/1.1 200 OK
Date: Fri, 06 May 2005 20:55:11 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 DAV/1.0.3
X-Powered-By: PHP/4.3.4
Connection: close
Content-Type: application/rdf+xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:ns1="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:nodeID="r1_somebody">
  <ns1:name rdf:nodeID="r1_r1115396427r563"/>
</rdf:Description>
<rdf:Description rdf:nodeID="r1_r1_somebody">
  <ns1:made rdf:resource="http://example.org/book/book2"/>
</rdf:Description>
<rdf:Description rdf:nodeID="r2_r1_r1_somebody">
  <ns1:name rdf:nodeID="r2_r1115396427r563"/>
</rdf:Description>
<rdf:Description rdf:nodeID="r2_r2_r1_r1_somebody">
  <ns1:made rdf:resource="http://example.org/book/book3"/>
</rdf:Description>
<rdf:Description rdf:nodeID="r3_r2_r2_r1_r1_somebody">
  <ns1:name>J.K. Rowling</ns1:name>
</rdf:Description>
<rdf:Description rdf:nodeID="r3_r3_r2_r2_r1_r1_somebody">
  <ns1:made rdf:resource="http://example.org/book/book1"/>
</rdf:Description>
</rdf:RDF><!--
data: http://sparql.net/books
format: rdfxml
output-xslt: 
output-type: text/html; charset=utf-8
query: PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> CONSTRUCT {_:somebody foaf:name ?who;
foaf:made ?book} WHERE { ?book dc:creator ?who }
query-lang: sparql
-->
[00:00.950 - server closed]


@@params [('query-lang', 'sparql'), ('query', 'PREFIX foaf:
<http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> ASK WHERE { ?book
dc:creator ?who }'), ('data', 'http://sparql.net/books'), ('format',
'xml')]

[00:00.000 - client connection from 127.0.0.1:51781]
GET
http://www.wasab.dk/morten/2005/04/sparqlette/?query-lang=sparql&query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E+PREFIX+dc%3A++++++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E+ASK+WHERE+%7B+%3Fbook+dc%3Acreator+%3Fwho+%7D&data=http%3A%2F%2Fsparql.net%2Fbooks&format=xml HTTP/1.0
Host: www.wasab.dk
User-agent: Python-urllib/2.1
Accept: application/xml

[00:00.159 - server connected]
HTTP/1.1 200 OK
Date: Fri, 06 May 2005 20:48:25 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 DAV/1.0.3
X-Powered-By: PHP/4.3.4
Connection: close
Content-Type: application/xml; charset=utf-8

<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2001/sw/DataAccess/rf1/result2">
<head>
</head>
<results>
	<boolean>true</boolean>
</results>
</sparql><!--
data: http://sparql.net/books
format: xml
output-xslt: 
output-type: text/html; charset=utf-8
query: PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc:
<http://purl.org/dc/elements/1.1/> ASK WHERE { ?book dc:creator ?who }
query-lang: sparql
-->
[00:00.951 - server closed]



I generated these ala...

WWW/2000/10/swap/dbork$ HTTP_PROXY=http://127.0.0.1:9000 python
~/w3ccvs/WWW/2001/sw/DataAccess/proto-wd/sparcli.py --sparqlette ask
construct select >,out

using

 http://www.w3.org/2001/sw/DataAccess/proto-wd/sparcli.py
 v 1.8 2005/05/06 20:47:20




-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Friday, 6 May 2005 21:10:08 UTC