W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > December 2005

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

From: Dan Connolly <connolly@w3.org>
Date: Wed, 21 Dec 2005 13:13:41 -0600
To: public-cwm-bugs@w3.org
Cc: Eric Prud'hommeaux <eric@w3.org>
Message-Id: <1135192422.6462.98.camel@dirk>

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
@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#>
   ?s ?p "b"^^xsd:string }

connolly@dirk:~/w3ccvs/WWW/2000/10/swap$ python cwm.py test/,spstr.n3
#Processed by Id: cwm.py,v 1.182 2005/12/21 06:17:03 vkolovsk Exp
        #    using base
loaded from file  1.98857402802
('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 ?
  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
    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
  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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC