Cwm generates n3 that it can't read

using cwm 1.0

I type

 echo '@prefix a: <b:c#> .
a:q <b:c#v:d> <b:c#r> . ' | cwm | cwm

it throws an exception.

#Processed by Id: cwm.py,v 1.165 2004/11/19 01:58:39 syosi Exp
        #    using base 
file:/home/syosi/.mozilla/firefox/default.4x3/chrome/
        Traceback (most recent call last):
  File "/home/syosi/SWAP/cwm.py", line 650, in ?
    doCommand()
  File "/home/syosi/SWAP/cwm.py", line 367, in doCommand
    why = becauseCwm)
  File "/home/syosi/cvs-trunk/WWW/2000/10/swap/llyn.py", line 1160, in load
    referer=referer, why=why)
  File "/home/syosi/cvs-trunk/WWW/2000/10/swap/webAccess.py", line 159, 
in load
    p.feed(buffer)
  File "/home/syosi/cvs-trunk/WWW/2000/10/swap/notation3.py", line 238, 
in feed
    i = self.directiveOrStatement(str,j)
  File "/home/syosi/cvs-trunk/WWW/2000/10/swap/notation3.py", line 252, 
in directiveOrStatement
    if j>=0: return self.checkDot(str,j)
  File "/home/syosi/cvs-trunk/WWW/2000/10/swap/notation3.py", line 717, 
in checkDot
    raise BadSyntax(self._thisDoc, self.lines, str, j, "expected '.' or 
'}' or ']' at end of statement")
swap.notation3.BadSyntax: Line 10 of 
<file:/home/syosi/.mozilla/firefox/default.4x3/chrome/>: Bad syntax 
(expected '.' or '}' or ']' at end of statement) at ^ in:
"...lt.4x3/chrome/
     @prefix : <b:c#> .

    :q     :v:d ^:r .

#ENDS
"


Yosi

Received on Friday, 19 November 2004 17:03:50 UTC