W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2003

MKE + TAP

From: Richard H. McCullough <rhm@cdepot.net>
Date: Wed, 13 Aug 2003 21:09:25 -0700
Message-ID: <000e01c3621a$b8ee69d0$bd7ba8c0@rhm8200>
To: "McCool, Rob" <robm@robm.com>
Cc: "www-rdf-interest at W3C" <www-rdf-interest@w3.org>, "KR-language" <KR-language@YahooGroups.com>, "Jeffery, Clinton L." <jeffery@cs.nmsu.edu>
I continued working on the MKR language 
interface today, and I'm really pleased 
with it now.
Note that the shell scripts GetData,
GetResource, PutData provide an RDF language
interface which can be used without MKE.

1. The pipe interface between MKE and the TAP
   Java client seems really solid
2. Output is minimal for easy readability.
   No more "count =" except when it's zero.
   All "extra" labels are comments, i.e.,
   they begin with "#".
3. The shell script GetData "speaks RDF", using
   the same arguments as your GetData() method.
   For example

        GetData Person subClassOf yes

   generates the subClasses of Person.
   Output can be piped into other programs.
   GetData output is generated directly from the
   Java program.  It is sorted by the enclosing
   shell script.
4. The results (internal to MKE) are saved in
   the "dval" list just like kbmode=mkr results.  
   At the user level, the list is stored in the
   "Question" variable, and can be assigned, e.g.
        
        x := ? has name = Jordan;

5. The MKE/TAP interface is invoked simply by

        set kbmode = tap;

   For minimal output, you also want to 

        set echo = off;

6. TAP Knowledge base is specified by environment 
   variable KBDATA.  It defaults to

        http://tap.stanford.edu/data/

7. The shell script GetResource "speaks RDF"
   with the same arguments as your
   GetResourcesNamed() method.  For example

        GetResource Athlete Jordan

   generates all Athletes named Jordan.
8. Last, but not least, the assertion function.
   Statements are recorded in a local RDF file
   which is specified by environment variable
   KBFILE.  It defaults to

        "$KEHOME/data/tap.rdf"

   The shell script PutData "speaks RDF", with 
   the same arguments as your PutData() method.
   For example

        PutData Athlete subClassOf Person


Dick McCullough
knowledge := man do identify od existent done;
knowledge haspart proposition list;
Received on Thursday, 14 August 2003 00:15:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:01 GMT