Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] how to preserve the ontology URI when saving it?

Julio Cesar dos Reis julio.reis at
Thu Aug 26 04:05:40 PDT 2010

Hi. My doubt is on how to preserve the ontology URI when saving it.
After loading an owl file into a JenaOWLModel and making some things, 
like including a new SWRL rule.... (e.g. SWRLImp imp = 
factory.createImp(rule); )

so I would like to save the model with such modifications with the same 

the following code enables me to save the model that I have loaded, but 
when I open the owl file created the ontology uri is the: file system 
path/xxx.owl.. :(

               String fileName = "xxx.owl";
               Collection errors = new ArrayList();               
FileUtils.langXMLAbbrev, errors);
               System.out.println("File saved with " + errors.size() + " 
errors.");   I would like to save the model updating the original owl 
file or making a new copy of the original owl ontology but preserving 
the uri. :)

Could you please help me?

thank you so much

Best Regards


More information about the protege-owl mailing list