Ontology compilation
Drools uses Java classes in rules as fact templates. Before using in
rules Java classes must be created that is defined and compiled.
With DroolsTab these Java classes can be defined as Protege classes
and after that compiled into Java classes.
To do that after definition in Protege top classes of class
hierarchies should be put in "onto-topclasses" slot of "Rule Base
Instance" on DroolsTab.
After that click "Compile Ontology" button on DroolsTab and these
classes and their subclasses will be translated into Java language
sources and placed into a Java package, defined by a slot
"onto-package". After that they will be compiled into Java classes
and stored in a folder, defined by a slot "onto-classpath"
automatically.
Java language sources of generated Java classes can be viewed in a
"compilation.log" file in <DroolsTabScene-Home> directory.
So, to run examples you have to compile ontology for every
Protege project containing examples, but only once.