RenameOperation { public static void renameFull( OWLOntology ontology, IOHelper ioHelper, Map<String, String> mappings) throws Exception { OWLOntologyManager manager = ontology.getOWLOntologyManager(); OWLEntityRenamer entityRenamer = new OWLEntityRenamer(manager, Sets.newHashSet(ontology)); for (Map.Entry<String, String> mapping : mappings.entrySet()) { IRI oldIRI = ioHelper.createIRI(mapping.getKey()); IRI newIRI = ioHelper.createIRI(mapping.getValue()); if (!ontology.containsEntityInSignature(oldIRI)) { throw new Exception(String.format(missingEntityError, oldIRI.toString())); } manager.applyChanges(entityRenamer.changeIRI(oldIRI, newIRI)); } }  static void renameFull(
      OWLOntology ontology, IOHelper ioHelper, Map<String, String> mappings); static void renamePrefixes(
      OWLOntology ontology, IOHelper ioHelper, Map<String, String> mappings);  }
@Test public void testFullRename() throws Exception { OWLOntology ont = loadOntology("/simple.owl"); Map<String, String> mappings = new HashMap<>(); mappings.put( "https: "http: RenameOperation.renameFull(ont, new IOHelper(), mappings); assertIdentical("/rename_full.owl", ont); }