I create ontology using Protege. This ontology is then saved at the same folder 
as the application. And to import the ontology, I use the following code:

m.getDocumentManager().addAltEntry( 
"http://www.myproject.com/ontologies/myproject.owl";, 
"file:C:/Application/myproject.owl");

As you can see, I use full path to indicate the location of the ontology file. 
This is of course become a problem if I save the application at different 
location. My question is how I can write a relative path so that the 
application still working wherever I save the application. 
Thanks.

Iman Paryudi

Reply via email to