Tips for living with cwm, a SemanticWeb tool written in PythonLanguage.

The cwm docs direct problem reports to public-cwmbugs@w3.org. see archive

Tutorials, Examples

(hmm... CwmProjects? CwmUsage? CwmExamples?)

Troubleshooting

./test gives an error

confusion under Cygwin

I18N problems

Mar 26 fiddling

Q.v. chat on #rdfig on 2004-03-26 'twixt DanC, ndw, et al..

Goal: to establish the value of a property based on it not already having some other value in a particular file.

in essays.n3:

@prefix log:  <http://www.w3.org/2000/10/swap/log#> .

@prefix : <#>.
@prefix t: <http://example/dunno@@#>.
 
this log:forAll :ESSAY. 
 
{ <topics.n3> log:semantics ?TOPIC_KB. 
  ?TOPIC_KB log:includes { :ESSAY a t:Article }. 
  ?TOPIC_KB log:notIncludes { :ESSAY t:talkback "no" }. 
 } => { :ESSAY t:talkback "yes" } . 

in topics.n3:

@prefix t: <http://example/dunno@@#>.

@prefix : <#>.

:e1 a t:Article.
:e2 a t:Article; t:talkback "no".

and run ala:

$ python cwm.py essay.n3 --think --data

and out comes

     @prefix : <topics.n3#> .
     @prefix t: <http://example/dunno@@#> .
     
    :e1     t:talkback "yes" .

Wish list

Add-ons

Random features?

In test directory,

$ ./n3-xml-test.sh cat tests-work.txt 

...does something interesting. Converts each of several N3 files into RDF, and then back into N3, and compare results.

tests-notworking.txt does similar for tests that don't work.

This isn't hooked up to Makefile test framework yet.

There is a flag [-s 10 to start on 10th test -timbl] for retest.py that allows you to skip past broken tests (since 'make all' in test will barf on first failed test).

CWM - How to develop modules - Missing Manual from karl on 2003-10-14 (www-archive@w3.org from October 2003)

Not in RDF - Norm Walsh Apr 2004

CwmTips (last edited 2005-01-19 15:46:26 by static-80-155)