cwm --sparql parser barfs somewhere near "b"^^xsd:string

I don't know how to read the diagnostic, so I'm not
really sure what's going on here...

connolly@dirk:~/w3ccvs/WWW/2000/10/swap$ cat test/,spstr.n3
test/,spstr-q.rq
@prefix : <aaa>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
:A :p1 "a" .
:B :p2 "b"^^xsd:string .

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s
WHERE {
   ?s ?p "b"^^xsd:string }

connolly@dirk:~/w3ccvs/WWW/2000/10/swap$ python cwm.py test/,spstr.n3
--sparql=test/,spstr-q.rq
#Processed by Id: cwm.py,v 1.182 2005/12/21 06:17:03 vkolovsk Exp
        #    using base
file:/home/connolly/w3ccvs/WWW/2000/10/swap/test/,spstr.n3
loaded from file  1.98857402802
        ['_O_QDTYPE_E____QIRIref_E__C',
('http://www.w3.org/2000/10/swap/grammar/sparql#GT_DTYPE', u'^^'),
('symbol', xsd:string)]
Traceback (most recent call last):
  File "cwm.py", line 714, in ?
    doCommand()
  File "cwm.py", line 533, in doCommand
    referer="", contentType="x-application/sparql")
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/llyn.py", line 1351, in
load
    F = webAccess.load(store, uri, openFormula, asIfFrom, contentType,
flags, referer, why)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/webAccess.py", line 166,
in load
    F = p.parse(sparql_parser.start).close()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/sparql/sparql_parser.py",
line 100, in parse
    self.onFinish()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/sparql/sparql_parser.py",
line 112, in onFinish
    prod = self.sink.prod(self.productions.pop())
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/sparql2cwm.py", line 388,
in prod    return getattr(self, 'on_' + abbr(production[0]))(production)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/sparql2cwm.py", line
1509, in on__O_QDTYPE_E____QIRIref_E__C
    raise RuntimeError(`p`)
RuntimeError: ['_O_QDTYPE_E____QIRIref_E__C',
('http://www.w3.org/2000/10/swap/grammar/sparql#GT_DTYPE', u'^^'),
('symbol', xsd:string)]


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

Received on Wednesday, 21 December 2005 19:14:43 UTC