Re: cwm allows more datatypes in N3 than in RDF/XML

Dan Connolly wrote:
> cwm reads this in...
>
> <http://dig.csail.mit.edu/TAMI/2006/07/s3#arrest-1>
> <http://dig.csail.mit.edu/TAMI/cph/v2/deduce#arrest-item-justified>
> "false"^^<xsd:Boolean> .
>
> and writes this out...
>
>  <ded:arrest-item-justified rdf:datatype="xsd:Boolean">
>
> but then when you try to read that back in, cwm complains
> that there's no # in the datatype URI...
>
>
>   
Sure, I can fix that, disallowing it in term.py, for instance. Did you mean

"false"^^xsd:boolean, .ie "false"^^<http://www.w3.org/2001/XMLSchema#boolean> ? Are you simply trying to get cwm to force you to get that right? Or did you really mean to use the xsd: protocol?


Yosi

> #Processed by Id: cwm.py,v 1.186 2006/07/07 03:30:52 syosi Exp
>         #    using base
> http://swiss.csail.mit.edu/users/harveyj/dump.rdf
>         Traceback (most recent call last):
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 728, in ?
>     doCommand()
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 443, in
> doCommand
>     why=myReason)
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/webAccess.py", line 180,
> in load
>     p.feed(buffer)
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/sax2rdf.py", line 769, in
> feed
>     self._p.feed(data)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py",
> line 216, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py",
> line 364, in end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/sax2rdf.py", line 644, in
> endElementNS
>     obj = self.sink.newLiteral(buf, self._datatype, lang)
>   File "/home/connolly/w3ccvs/WWW/2000/10/swap/llyn.py", line 1350, in
> newLiteral
>     assert dt is None or isinstance(dt, Fragment)
> AssertionError
>
>   

Received on Thursday, 10 August 2006 15:47:21 UTC