Search Mailing List Archives
[protege-owl] create owl
tredmond at stanford.edu
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 owlapi.sourceforge.net.
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
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 =
> 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: http://protege-ontology-editor-knowledge-acquisition-system.136.n4.nabble.com/create-owl-tp4396842p4403717.html
> Sent from the Protege OWL mailing list archive at Nabble.com.
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
More information about the protege-owl