OWLObjectProperty prop = factory
.getOWLObjectProperty(IRI.create(rel));
OWLClassExpression prop_val = factory
.getOWLObjectSomeValuesFrom(prop, value);
OWLSubClassOfAxiom axiom = factory
.getOWLSubClassOfAxiom(cls, prop_val);
AddAxiom addAxiom = new AddAxiom(ont, axiom);
manager.applyChange(addAxiom);
if (applyinverse) {
OWLObjectProperty invprop = factory
.getOWLObjectProperty(IRI.create(invrel));
OWLClassExpression invprop_cls = factory
.getOWLObjectSomeValuesFrom(invprop, cls);
OWLSubClassOfAxiom invaxiom = factory
.getOWLSubClassOfAxiom(value, invprop_cls);
AddAxiom invAddAxiom = new AddAxiom(ont, invaxiom);
manager.applyChange(invAddAxiom);
}
}