Something
public text v1 · immutable // make a result ontology
OWLOntology result = getSchema();
// add axioms for this query
for (OWLAxiom axiom : axioms) {
new AddAxiom(result, axiom);
}
// lookup the class
OWLClass myCls;
for (OWLClass cls : result.getReferencedClasses()) {
if (cls.getURI().equals(desiredInstances)) {
myCls = cls;
}
}
// get the QueryManager for the beans representing this ontology,
// and the createQuery() method
Class queryManager = BeanUtils.getQueryManagerClass(result, myCls);