MergeOperation { public static OWLOntology merge(OWLOntology ontology) { List<OWLOntology> ontologies = new ArrayList<>(); ontologies.add(ontology); mergeInto(ontologies, ontology, false, true); return ontology; }  static OWLOntology merge(OWLOntology ontology); static OWLOntology merge(List<OWLOntology> ontologies); static OWLOntology merge(
      List<OWLOntology> ontologies, boolean includeAnnotations, boolean collapseImportsClosure); static OWLOntology merge(List<OWLOntology> ontologies, Map<String, String> mergeOptions); static void mergeInto(OWLOntology ontology, OWLOntology targetOntology); static void mergeInto(
      List<OWLOntology> ontologies, OWLOntology targetOntology, boolean includeAnnotations); static void mergeInto(
      OWLOntology ontology, OWLOntology targetOntology, boolean includeAnnotations); static void mergeInto(
      OWLOntology ontology,
      OWLOntology targetOntology,
      boolean includeAnnotations,
      boolean collapseImportsClosure); static void mergeInto(List<OWLOntology> ontologies, OWLOntology targetOntology); static void mergeInto(
      List<OWLOntology> ontologies,
      OWLOntology targetOntology,
      boolean includeAnnotations,
      boolean collapseImportsClosure); static Map<String, String> getDefaultOptions();  }
@Test public void testMergeOne() throws IOException { OWLOntology simple = loadOntology("/simple.owl"); OWLOntology merged = MergeOperation.merge(simple); assertIdentical("/simple.owl", merged); }
@Test public void testMergeTwo() throws IOException { OWLOntology simple = loadOntology("/simple.owl"); OWLOntology simpleParts = loadOntology("/simple_parts.owl"); List<OWLOntology> ontologies = new ArrayList<>(); ontologies.add(simple); ontologies.add(simpleParts); OWLOntology merged = MergeOperation.merge(ontologies); assertIdentical("/simple_parts.owl", merged); }