Re: toward tests for spec#issue-mt-ns

On Wed, 2006-11-01 at 01:27 -0600, Dan Connolly wrote:
[...]
> I added another test to sorta show why sq1 has
> an empty result:
> 
>     <#sq1a>     a :Test;
>          dc:title "explain sq1 result: the namespace document has
> no/empty GRDDL result";
>          :description "explain sq1 result: the namespace document has
> no/empty GRDDL result";
>          :inputDocument <sq1ns.xml>;
>          :outputDocument <sq1-output.rdf>;
> 	 .

That one is actually more directly relevant to the discussion we had
today. I'm considering making it a separate issue, in order to
facilitate interactions with the TAG.

As a data point, I asked cwm what it thinks, and it does
not see any triples there because it does not specify
application/xml among the MIME types that it's willing
to accept when it GETs the representation, and www.w3.org
chooses to give a 406 error (note that per the HTTP
spec, it MAY give a 200 OK response with application/xml
in this case).


$ python $swap/cwm.py http://www.w3.org/2001/sw/grddl-wg/td/sq1ns
#Processed by Id: cwm.py,v 1.190 2006/08/09 23:20:42 syosi Exp
        #    using base http://www.w3.org/2001/sw/grddl-wg/td/sq1ns
        Traceback (most recent call last):
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 740, in ?
    doCommand()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 451, in
doCommand
    why=myReason)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/webAccess.py", line 152,
in load
    raise DocumentAccessError(addr, sys.exc_info() )
swap.webAccess.DocumentAccessError: Unable to access document
<http://www.w3.org/2001/sw/grddl-wg/td/sq1ns>, because:
    HTTP Error 406: Not Acceptable

likewise rdflib...

>>> from rdflib.Graph import Graph
>>> f=Graph()
>>> f.load("http://www.w3.org/2001/sw/grddl-wg/td/sq1ns")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/connolly/lib/python/rdflib/Graph.py", line 430, in load
    self.parse(source, publicID, format)
  File "/home/connolly/lib/python/rdflib/Graph.py", line 424, in parse
    source = self.prepare_input_source(source, publicID)
  File "/home/connolly/lib/python/rdflib/Graph.py", line 412, in
prepare_input_source
    input_source = URLInputSource(location)
  File "/home/connolly/lib/python/rdflib/URLInputSource.py", line 21, in
__init__
    file = urlopen(req)
  File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 406: Not Acceptable


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

Received on Wednesday, 1 November 2006 17:45:02 UTC