@@ -0,0 +1,1715 @@
+package owltools.graph.test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0A%0Aimport org.junit.Test;%0Aimport org.obolibrary.obo2owl.Obo2Owl;%0Aimport org.obolibrary.oboformat.model.OBODoc;%0Aimport org.obolibrary.oboformat.parser.OBOFormatParser;%0Aimport org.semanticweb.owlapi.model.OWLObject;%0Aimport org.semanticweb.owlapi.model.OWLOntology;%0Aimport org.semanticweb.owlapi.model.OWLOntologyCreationException;%0A%0Aimport owltools.graph.OWLGraphWrapper;%0Aimport owltools.test.OWLToolsTestBasics;%0A%0A%0Apublic class RetrieveRelationByLabelTest extends OWLToolsTestBasics %7B%0A%0A%09@Test%0A%09public void findRelations() throws Exception %7B%0A%09%09OWLGraphWrapper wrapper = getOBO2OWLOntologyWrapper(%22go_xp_predictor_test_subset.obo%22);%0A%09%09%0A%09%09OWLObject negatively_regulates = wrapper.getOWLObjectByLabel(%22negatively_regulates%22);%0A%09%09assertNotNull(%22All relations need to be retrievable by label.%22, negatively_regulates);%0A%09%09%0A%09%09OWLObject part_of = wrapper.getOWLObjectByLabel(%22part_of%22);%0A%09%09assertNotNull(%22All relations need to be retrievable by label.%22, part_of);%0A%09%09%0A%09%09OWLObject occurs_in = wrapper.getOWLObjectByLabel(%22occurs_in%22);%0A%09%09assertNotNull(%22All relations need to be retrievable by label.%22,occurs_in);%0A%09%7D%0A%0A%09private OWLGraphWrapper getOBO2OWLOntologyWrapper(String file) throws OWLOntologyCreationException, FileNotFoundException, IOException%7B%0A%09%09OBOFormatParser p = new OBOFormatParser();%0A%09%09OBODoc obodoc = p.parse(new BufferedReader(new FileReader(getResource(file))));%0A%09%09Obo2Owl bridge = new Obo2Owl();%0A%09%09OWLOntology ontology = bridge.convert(obodoc);%0A%09%09OWLGraphWrapper wrapper = new OWLGraphWrapper(ontology);%0A%09%09return wrapper;%0A%09%7D%0A%7D%0A

add test case for issue #18