Logicbase Query -- Tcl/Tk Sample

The Logicbase Query sample illustrates how to create a graphical user interface for an application that makes queries of a logicbase, where a logicbase is a collection of Prolog facts and/or rules designed to be queried by an external source.

Starting from Eclipse

To run from Eclipse:

  1. Open Eclipse and select from the main menu: File/Import...
  2. Browse to and select the amzi/samples/tcltk/lb_query directory
  3. Select the new lb_query project in the Navigator window
  4. Select from main menu: Run/Run As/Interpreted Project
  5. At the listener prompt, type main: ?- main.
  6. The application window should appear.

Starting from the command line

To run from the command line:

  1. Change directory to amzi/samples/tcltk/lb_query
  2. At the prompt type: >alis lb_query
  3. The application window should appear

Using the Sample

The main menu help provides a description of how to use the application. It displays the content in help.txt.

 

Copyright ©1987-2004 Amzi! inc. All Rights Reserved. Amzi! is a registered trademark and Logic Server and e-Prolog are trademarks of Amzi! inc.