You can use owl:imports statements in your upper ontology.
And let Jena manage the imports for you:
cf http://jena.apache.org/documentation/ontology/ Section: "Compound
ontology documents and imports processing" and "Managing file references"

Note: I just read that OWL2 uses imports by location whereas OWL1 was using
import by name.
cf http://protegewiki.stanford.edu/wiki/How_Owl_2.0_Imports_Work




On Fri, May 24, 2013 at 4:39 AM, Bahador(reza)? OFOGHI
<[email protected]>wrote:

> 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