示例#1
0
  private String runTests(String query) throws Exception {
    QuestOWLStatement st = conn.createStatement();
    // StringBuilder bf = new StringBuilder(query);
    String retval;
    try {

      QuestOWLResultSet rs = st.executeTuple(query);

      assertTrue(rs.nextRow());
      OWLIndividual ind1 = rs.getOWLIndividual("x");
      retval = ind1.toString();

    } catch (Exception e) {
      throw e;
    } finally {
      try {

      } catch (Exception e) {
        st.close();
        assertTrue(false);
      }
      conn.close();
      reasoner.dispose();
    }
    return retval;
  }
示例#2
0
 public void tearDown() throws Exception {
   conn.close();
   reasoner.dispose();
 }