GCIUtil { public static Set<OWLSubClassOfAxiom> getSubClassOfSomeValuesFromAxioms(OWLReasoner reasoner) { return getSubClassOfSomeValuesFromAxioms(reasoner.getRootOntology(), reasoner); }  static Set<OWLSubClassOfAxiom> getSubClassOfSomeValuesFromAxioms(OWLReasoner reasoner); static Set<OWLSubClassOfAxiom> getSubClassOfSomeValuesFromAxioms(OWLOntology ontology,
			OWLReasoner reasoner);  }
@Test public void testOrganismPair() throws Exception{ g = getOntologyWrapper("limb_gci.owl"); ElkReasonerFactory rf = new ElkReasonerFactory(); OWLReasoner r = rf.createReasoner(g.getSourceOntology()); try { Set<OWLSubClassOfAxiom> axioms = GCIUtil.getSubClassOfSomeValuesFromAxioms(r); int n = 0; for (OWLSubClassOfAxiom axiom : axioms) { String c = ((OWLClass) axiom.getSubClass()).getIRI().toString(); OWLObjectSomeValuesFrom svf = (OWLObjectSomeValuesFrom) axiom.getSuperClass(); String rel = ((OWLObjectProperty) svf.getProperty()).getIRI().toString(); String p = ((OWLClass) svf.getFiller()).getIRI().toString(); String axstr = c + " " + rel + " " + p; System.out.println(axstr); if ("http: n |= 1; } if ("http: n |= 2; } if ("http: n |= 4; } if ("http: n |= 8; } } assertEquals(4, axioms.size()); assertEquals(15, n); } finally { r.dispose(); } }