Search code examples
jenaontologyowl

Merging Domain Ontologies


I have worked and developed two different domain ontologies. But now i like to merge these two ontologies as my application requirement has been changed and requires knowledge of both ontologies. What are merging techniques and how can i do it with ontology framework i.e jena, OWL-API etc


Solution

  • If your ontologies are following the OWL 2 EL profile you can do it with Brain:

    Brain brain = new Brain();
    brain.learn("path/to/first_ontology.owl");
    brain.learn("path/to/second_ontology.owl");
    //Do your logic here, like queries, etc...
    brain.save("path/to/merged_ontologies.owl");
    

    Entities with identical IRIs will be automatically merged.