I think you can do this:OntModelontModel_sub1 = 
ModelFactory.createOntologyModel(...);
ontModel_sub1 = (OntModel)ontModel_sub1.read("file:"+ "your sub ontology 1 
file");//if the sub ontology is in a file
OntModelontModel_sub2 = ModelFactory.createOntologyModel(...);
ontModel_sub2 = (OntModel)ontModel_sub2.read("file:"+ "your sub ontology 2 
file");//if the sub ontology is in a file
 
OntModelontModel_merged = 
ModelFactory.createOntologyModel(...);ontModel_merged.add(ontModel_sub1);
ontModel_merged.add(ontModel_sub2);
 
and I believe you are right to go.

BO
  

________________________________
 From: Don <[email protected]>
To: [email protected] 
Sent: Friday, 24 May 2013 12:14 PM
Subject: top level ontology creation
  

HI,

                  I am using jena for my semantic application 
development.  I have a common question. Currently I designed two 
separate ontology for two separate application. My doubt is it possible 
to create a new ontology such that the two previously created ontology 
should be the sub ontology of newly created one. OR should I need to 
create a new ontology from scratch.

With Regards

Reply via email to