|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
CWM Bug: Broken --dereifyAnother bug, and this time I'm using the CVS version of cwm, which I
can confirm contains the fixes noted on this list previously—thanks Yosi! Very quick work. The CVS cwm has better --reify output too, but, as this bug shows, --dereify doesn't work: $ cat test.n3 @prefix : <http://example.org/#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . [ :p :q, _:r, "r" ] . ("a" "b" "c") a :List . { ?p ?q ?r } a :Formula . # EOF $ cwm --reify test.n3 > reified.n3 $ cwm --dereify reified.n3 #Processed by Id: cwm.py,v 1.195 2007-08-23 16:28:29 syosi Exp # Notation3 generation by # notation3.py,v 1.197 2007-09-09 22:49:43 timbl Exp @prefix : <#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @forAll :p, :q, :r . ( "a" "b" "c" ) a <http://example.org/#List> . [ a <http://www.w3.org/2000/10/swap/log#Truth>; <http://www.w3.org/2004/06/rei#existentials> [ owl:oneOf () ]; <http://www.w3.org/2004/06/rei#statements> [ owl:oneOf () ]; <http://www.w3.org/2004/06/rei#universals> [ owl:oneOf () ] ]. [ <http://example.org/#p> "r", <http://example.org/#q>, [ ] ]. { :p :q :r . } a <http://example.org/#Formula> . #ENDS I had also tried using --unreify accidentally, and it gave no output but no error message either; can something be put in place to catch unknown flags? I'm invoking the CVS cwm in the following way: $ cat $(which cwm) #!/bin/bash export PYTHONPATH=.../dev.w3.org/2000/10 python .../dev.w3.org/2000/10/swap/cwm.py $@ 2> /dev/null The 2> is to get rid of the debug information, which couldn't be turned off using --chatty=0. Is there a better way of turning it off? Thanks, -- Sean B. Palmer, http://inamidst.com/sbp/ |
|
|
Re: CWM Bug: Broken --dereify> Cwm's command line moves forward through time. > $ cwm --reify test.n3 > reified.n3 > This was reifying an empty graph, then merging the result with test.n3 You wanted $ cwm test.n3 --reify > reified.n3 > $ cwm --dereify reified.n3 > #Processed by Id: cwm.py,v 1.195 2007-08-23 16:28:29 syosi Exp > Same problem. Yosi > # Notation3 generation by > # notation3.py,v 1.197 2007-09-09 22:49:43 timbl Exp > > @prefix : <#> . > @prefix owl: <http://www.w3.org/2002/07/owl#> . > > @forAll :p, > :q, > :r . > ( "a" > "b" > "c" ) > a <http://example.org/#List> . > [ a <http://www.w3.org/2000/10/swap/log#Truth>; > <http://www.w3.org/2004/06/rei#existentials> [ > owl:oneOf () ]; > <http://www.w3.org/2004/06/rei#statements> [ > owl:oneOf () ]; > <http://www.w3.org/2004/06/rei#universals> [ > owl:oneOf () ] ]. > > [ <http://example.org/#p> "r", > <http://example.org/#q>, > [ > ] ]. > { > :p :q :r . > > } a <http://example.org/#Formula> . > > #ENDS > > I had also tried using --unreify accidentally, and it gave no output > but no error message either; can something be put in place to catch > unknown flags? > > I'm invoking the CVS cwm in the following way: > > $ cat $(which cwm) > #!/bin/bash > > export PYTHONPATH=.../dev.w3.org/2000/10 > python .../dev.w3.org/2000/10/swap/cwm.py $@ 2> /dev/null > > The 2> is to get rid of the debug information, which couldn't be > turned off using --chatty=0. Is there a better way of turning it off? > in cvs) Yosi > Thanks, > > -- > Sean B. Palmer, http://inamidst.com/sbp/ |
| Free embeddable forum powered by Nabble | Forum Help |