[Introspector-developers] cwm and the introspector
Status: Beta
Brought to you by:
mdupont
|
From: <mdu...@ya...> - 2003-02-08 21:06:22
|
here is a simple cwm program that you can try out on your own! first : the command line : python2.2 cwm.py _librdf_perl_world_init_.tu_.ntriples --filter=testfilter.n3 Here testfilter.n3 is the name of the filter , and _librdf_perl_world_init_.tu_.ntriples is the name of the dump file. Here is the filter: --------------------------------------------------------------------------- @prefix : <#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . @prefix fld: <node_fields> . this log:forAll <#x> , <#y> , <#z>, <#t1>. { <#x> <node_fields:name> <#y> . <#y> <node_fields:strg> <#z> . <#x> <node_fields:tree-code> <#t1> . } log:implies { <#x> <fld:has-name> <#z> . <#x> <fld:has-type> <#t1> . }. --------------------------------------------------------------------------- here is the output : # Notation3 generation by # notation3.py,v 1.131 2003/01/21 16:10:36 timbl Exp # Base was: file:/mnt/hda4/development/development2/w3c/2000/10/swap/_librdf_perl_world_init_.tu_.ntriples @prefix : <#> . @prefix fld: <node_fields> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . :id-1 <fld:has-name> "librdf_perl_world_init"; <fld:has-type> <node_types:function_decl> . :id-14 <fld:has-name> "bit_size_type"; <fld:has-type> <node_types:integer_type> . :id-21 <fld:has-name> "librdf_world"; <fld:has-type> <node_types:type_decl> . :id-22 <fld:has-name> "librdf_world_s"; <fld:has-type> <node_types:record_type> . :id-33 <fld:has-name> "librdf_world_set_error"; <fld:has-type> <node_types:function_decl> . :id-4 <fld:has-name> "world"; <fld:has-type> <node_types:parm_decl> . :id-43 <fld:has-name> "librdf_world_set_warning"; <fld:has-type> <node_types:function_decl> . :id-45 <fld:has-name> "librdf_perl_world"; <fld:has-type> <node_types:var_decl> . :id-56 <fld:has-name> "librdf_perl_error_handler"; <fld:has-type> <node_types:function_decl> . :id-61 <fld:has-name> "user_data"; <fld:has-type> <node_types:parm_decl> . :id-62 <fld:has-name> "librdf_perl_warning_handler"; <fld:has-type> <node_types:function_decl> . :id-67 <fld:has-name> "user_data"; <fld:has-type> <node_types:parm_decl> . :id-78 <fld:has-name> "va_list"; <fld:has-type> <node_types:type_decl> . ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de |