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] create owl

Timothy Redmond tredmond at
Tue Feb 21 05:46:34 PST 2012

I suspect that you are linking against the wrong java library.  In fact, 
at a guess, I suspect that you are linking against the jena libraries.   
I could verify this if I were to see the import declarations in your 
code.  If you are going to use the OWL api then you should take the jena 
libraries off your classpath and place the owlapi-bin.jar file on your 
classpath that can be downloaded from

Your error messages make sense for the Jena libraries.  On line 2, the 
jena IRI class has a create method that takes a String argument but it 
is not a static method.  On line 3 there is no IRI.create that takes a 
java.util.File argument.


On 02/20/2012 02:28 AM, jamelmharsi wrote:
> i didn't understand well
> i am just want to create an owl file like protege owl file result
> when reading the given code
>   1-       OWLOntologyManager manager =
> OWLManager.createOWLOntologyManager();
>   2-      OWLOntology ontology = manager.createOntology(IRI.create(NS));
>   3-       manager.saveOntology(ontology, IRI.create(new File("")));
> the line number 2 has generated the error "non static method create cannot
> be referenced from a static context"
> the line number 3 has generated the error no suitable method found to create
> ..."
> --
> View this message in context:
> Sent from the Protege OWL mailing list archive at
> _______________________________________________
> protege-owl mailing list
> protege-owl at
> Instructions for unsubscribing:

More information about the protege-owl mailing list