*/
public boolean removeRecipe(String recipeName){
boolean ok = false;
OWLClass ontocls = factory.getOWLClass(IRI.create(owlIDrmi+"Recipe"));
OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(IRI.create(owlID+recipeName));
OWLEntityRemover remover = new OWLEntityRemover(owlmanager, Collections.singleton(owlmodel));
OWLObjectProperty precedes = factory.getOWLObjectProperty(IRI.create("http://www.ontologydesignpatterns.org/cp/owl/sequence.owl#directlyPrecedes"));
OWLObjectPropertyAssertionAxiom objectPropAssertion;
GetRecipe getrecipe = new GetRecipe(storeaux);
HashMap<IRI, String> map = getrecipe.getRecipe(recipeName);
String[] sequence = map.get(IRI.create(owlID+recipeName)).split(",");
Vector<IRI> ruleseq = new Vector();
for(String seq : sequence){
if(!seq.replace(" ","").trim().isEmpty())
ruleseq.add(IRI.create(seq.replace(" ","").trim()));
}
HashMap<String, Integer> count = getrecipe.getBinSequenceRecipeCount();
Vector<String> binseq = new Vector();
String bs="";
for(int i = 0; i<ruleseq.size()-1;i++){
bs=ruleseq.get(i).toString()+" precedes "+ruleseq.get(i+1).toString();
if(count.containsKey(bs)){
if(count.get(bs)==1){
binseq.add(bs);
}
}
}
if(owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){
ontoind.accept(remover);
owlmanager.applyChanges(remover.getChanges());
remover.reset();
if(owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){
log.error("Some error occurs during deletion.");
ok = false;
return(ok);