Hi all,
I´m building a protege plugin wich contains jess rules to interact with a
protégé knowledge base.
Actually i can show a protégé instance for the user when he clicks a buttom:
try {
engine.eval("(assert (ViewModel (model GoalModel)))");
engine.run();
} catch (JessException ex) {
Logger.getLogger(MadaeIDE.class.getName()).log(Level.SEVERE, null,
ex);
}
(defrule ViewModel
(ModelingProduct (product ?m) (ref ?ref&~nil))
?x <- (ViewModel (model ?m))
=>
(show ?ref)
(retract ?x)
)
In this solution, the instance is showed not embbed in my plugin, so id
liked to show an instance inside a panel of my plugin.
Any idea?
Best regards.
--
Uiratan Cavalcante +55 (98) 8138-9212
TI/TRT-16-MA (Manhã) +55 (98) 2109-9430 http://www.trt16.gov.br
GESEC/UFMA (Tarde) +55 (98) 2109-8297 http://gesec.deinf.ufma.br
São Luís - MA - Brazil