JenaVariableMap jenaVariableMap = new JenaVariableMapImpl();
Iterator<RuleAtom> it = this.head.iterator();
for(int i=0; it.hasNext(); i++){
RuleAtom atom = it.next();
JenaClauseEntry jenaClauseEntry = atom.toJenaClauseEntry(jenaVariableMap);
head[i] = jenaClauseEntry.getClauseEntry();
}
it = this.body.iterator();
for(int i=0; it.hasNext(); i++){
RuleAtom atom = it.next();
JenaClauseEntry jenaClauseEntry = atom.toJenaClauseEntry(jenaVariableMap);
body[i] = jenaClauseEntry.getClauseEntry();
}
jenaRule = new com.hp.hpl.jena.reasoner.rulesys.Rule(ruleName, head, body);