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] Protege-OWL API, Problem saving an Ontology

Kevin Alonso kalonso at
Mon Jan 4 03:51:38 PST 2010

Dear all,

I´m using Protege-OWL API and when i´m going to save the ontology the 
process takes about 30 minutes. Is it normal?

The code I used:

OWLModel owlModel = null;
try {
	owlModel = ProtegeOWL.createJenaOWLModelFromURI(phuri);
} catch (OntologyLoadException e) {
	// TODO Auto-generated catch block
	System.out.println("Errror Loading Ontology: "+ phuri);

Then I use a Protege-OWL Java cede classes to create a factory and add 
some individuals to the ontology.

Factory model = new Factory(owlModel);

And finally I save the ontology:
JenaOWLModel jenaModel =(JenaOWLModel)owlModel;
try { File("ModifiedOntology.owl").toURI());
} catch (Exception e) {
	// TODO Auto-generated catch block
	System.out.println("Error saving Ontology");

Is another way to save the ontology more efficiently?

Thanks in advance,


More information about the protege-owl mailing list