Hi everybody
I have everything working in Jess. I define the deftemplates with slots:
(deftemplate Rel (slot name) (slot bRel))
Now I am to embed jess in my java application. I was following the Price
example, and created a model: a class for each of the templates and then
replace it in my rules file:
(deftemplate Rel (declare (from-class Rel)))
The java class has the exact slot names as I had before. However, the second
slot, bRel, is not read.
if I replace it back to the original deftemplate with slots, it does work.
Any pointers?
Thanks
Jess reported an error in routine Jesp.parsePattern.
Message: No such slot bRel in template MAIN::Rel at token 'bRel'.
Program text: ( defrule isClass "Determine if a relation is a Class" ?r <-
( Rel { bRel at line 25 in file generateOntology.clp.
at jess.Jesp.error(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.InfixSlotParser.a(Unknown Source)
at jess.InfixSlotParser.a(Unknown Source)
at jess.InfixSlotParser.a(Unknown Source)
at jess.InfixSlotParser.if(Unknown Source)
at jess.InfixSlotParser.if(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.if(Unknown Source)
at jess.Jesp.parseDefrule(Unknown Source)
at jess.Jesp.parseExpression(Unknown Source)
at jess.Jesp.promptAndParseOneExpression(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Batch.batch(Unknown Source)
at jess.Batch.batch(Unknown Source)
at jess.Batch.batch(Unknown Source)
at jess.Batch.batch(Unknown Source)
at jess.Rete.batch(Unknown Source)
at
org.morphster.sql2sw.rules.OntologyEngine.<init>(OntologyEngine.java:34)
at
org.morphster.sql2sw.rules.OntologyEngine.main(OntologyEngine.java:43)
Juan Sequeda, Ph.D Student
Dept. of Computer Sciences
The University of Texas at Austin
www.juansequeda.com
www.semanticwebaustin.org