robot-core/src/test/java/org/obolibrary/robot/OntologyHelperTest.java
@Test
  public void testGetLabelIRIs() throws IOException {
    OWLOntology simple = loadOntology("/simple.owl");
    Map<String, IRI> expected = new HashMap<>();
    expected.put("Test 1", IRI.create(base + "simple.owl#test1"));
    expected.put("test one", IRI.create(base + "simple.owl#test1"));
    Map<String, IRI> actual = OntologyHelper.getLabelIRIs(simple);
    assertEquals(expected, actual);
  }
/**
   * Test getting a map from labels to IRIs.
   *
   * @throws IOException on file problem
   */
Test getting a map from labels to IRIs.
@throws IOException on file problem
Test getting a map from labels to IRIs . @throws IOException on file problem
@Test
  public void testGetLabelIRIs() throws IOException {
    OWLOntology simple = loadOntology("/simple.owl");
    Map<String, IRI> expected = new HashMap<>();
    expected.put("Test 1", IRI.create(base + "simple.owl#test1"));
    expected.put("test one", IRI.create(base + "simple.owl#test1"));
    Map<String, IRI> actual = OntologyHelper.getLabelIRIs(simple);
    assertEquals(expected, actual);
  }
@ Test public void testGetLabelIRIs ( ) throws IOException { OWLOntology simple = loadOntology ( "/simple.owl" ) ; Map < String , IRI > expected = new HashMap < > ( ) ; expected . put ( "Test 1" , IRI . create ( base + "simple.owl#test1" ) ) ; expected . put ( "test one" , IRI . create ( base + "simple.owl#test1" ) ) ; Map < String , IRI > actual = OntologyHelper . getLabelIRIs ( simple ) ; assertEquals ( expected , actual ) ; }
Test getting a map from labels to IRIs.
Test getting a map from labels to IRIs .