how to get the owlModel?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get the owlModel?

Abir Boujelbène
Hi,
i would get the owlModel of the current project. the problem is that casting  knowledgeBase to owlModel is not working : 

OWLModel owlModel = (OWLModel)project.getKnowledgeBase()  gives this exception " edu.stanford.smi.protege.model.DefaultKnowledgeBase cannot be cast to edu.stanford.smi.protegex.owl.model.OWLModel"

thanks.

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: how to get the owlModel?

Csongor Nyulas
Administrator
Hello Abir,

Please post programming related questions to the Protege Developer (protege-dev) mailing list [1]. You can subscribe to that list also through the support section of the Protege web page [2].

It appears that you are trying to open a Protege Fames ontology (usually saved in .pprj, .pont and .pint files) and trying to cast it to a Protege-OWL Model. This of course won't work. I suppose this is due to an oversight on your part.

Just in case you want to convert an existing Frames ontology to OWL, here are some links with some useful information for you [3,4]

Regards,
Csongor

[1] https://mailman.stanford.edu/mailman/listinfo/protege-dev
[2] http://protege.stanford.edu/support.php
[3] http://protege-project.136.n4.nabble.com/Protege-3-farmes-gt-Protege-4-OWL-tc4656874.html (Samson's answer is the best)
[4] http://protege.cim3.net/cgi-bin/wiki.pl?Frame2OWLExport

On 03/07/2014 03:14 PM, Abir Boujelbène wrote:
Hi,
i would get the owlModel of the current project. the problem is that casting  knowledgeBase to owlModel is not working : 

OWLModel owlModel = (OWLModel)project.getKnowledgeBase()  gives this exception " edu.stanford.smi.protege.model.DefaultKnowledgeBase cannot be cast to edu.stanford.smi.protegex.owl.model.OWLModel"

thanks.


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user