All Manuals > KnowledgeWorks and Prolog User Guide > 5 The Programming Environment


5.7 The Rule Browser

Figure 5.9 KnowledgeWorks Rule Browser

The Rule Browser may be obtained by choosing KnowledgeWorks > Rules . It displays contexts and their rules. The Contexts pane at the top allows you to select from a drop-down list either a forward chaining context or the special pseudo-context containing all the backward chaining rules. The Rules pane lists the rules for the selected context.

The Works > Context menu acts on the selected context. Choosing Works > Context > Find Source will bring up the definition of the context in the file where it was defined, and choosing Works > Context > Gspy will bring up a Spy Window (see Debugging with the Environment) for the context, displaying the meta-interpreter (see Meta Rule Protocol) for the context if one is defined. If debugging is turned on a meta-interpreter is always defined. Choosing Works > Context > NoGspy will remove the Spy Window (see Debugging with the Environment).

The Works > Rule menu acts on the rule selected in the lower pane. All rules may be edited by choosing Works > Rule > Find Source . Spy Windows can be brought up or removed by choosing Works > Rule > Gspy . Forward chaining rules may have Monitor Windows (see Debugging with the Environment) brought up or removed by choosing Works > Rule > Monitor (this command is disabled when a backward chaining rule has been selected). These are explained in Debugging with the Environment.

The package used for displaying symbols may be modified by choosing Tools > Preferences... > Rule Browser > Package and entering a package name into the Package area. Clicking OK will update the tool.

KnowledgeWorks and Prolog User Guide (Windows version) - 24 Mar 2017