SpeciesSubsetterUtil { public void removeOtherSpecies() { this.remove(true); } SpeciesSubsetterUtil(OWLGraphWrapper g);  SpeciesSubsetterUtil(OWLGraphWrapper g, boolean performMacroExpansion); void removeOtherSpecies(); void removeSpecies(); Collection<List<OWLObject>> explainTaxonConstraint(Collection<String> clsIds, 
	        Collection<String> taxonIds); public OWLReasoner reasoner; public OWLObjectProperty viewProperty; public OWLClass taxClass; public OWLClass rootClass; }
@Test public void testSubsetterSpecies() throws Exception { ParserWrapper p = new ParserWrapper(); p.setCheckOboDoc(false); OWLOntology owlOntology = p.parse(getResourceIRIString("speciesMergeTest.obo")); OWLGraphWrapper graph = new OWLGraphWrapper(owlOntology); OWLReasonerFactory rf = new ElkReasonerFactory(); OWLReasoner reasoner = rf.createReasoner(graph.getSourceOntology()); SpeciesSubsetterUtil smu = new SpeciesSubsetterUtil(graph); smu.taxClass = graph.getOWLClassByIdentifier("T:1"); smu.reasoner = reasoner; smu.removeOtherSpecies(); p.saveOWL(smu.ont, new OBODocumentFormat(), "target/speciesSubset.obo"); assertNull(graph.getOWLClassByIdentifier("U:24")); }