OWLOntology owl = store.getOntology();
String ID = owl.getOntologyID().toString().replace("<", "").replace(">", "") + "#";
IRI ruleName = IRI.create(ID + "MyRuleA");
String ruleBodyHead = "MyRuleABody -> MyRuleAHead";
String ruleDescription = "My comment to the rule A";
AddRule instance = new AddRule(store);
boolean result = instance.addRule(ruleName, ruleBodyHead, ruleDescription);
OWLOntology newonto = instance.getStore().getOntology();
if (result) {
OWLNamedIndividual ruleind = newonto.getOWLOntologyManager().getOWLDataFactory()
.getOWLNamedIndividual(ruleName);
int axiom = newonto.getAxioms(ruleind).size();