All pastes #623234 Raw Edit

Something

public text v1 · immutable
·published 2007-07-17 13:27 UTC
rendered paste body
      // 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);