Search Mailing List Archives
[protege-discussion] protege-discussion Digest, Vol 76, Issue 39
tredmond at stanford.edu
Mon Dec 3 14:02:41 PST 2012
If you want to use the code generator that comes with Protege 4 then you
go to the Tools->Generate Protege-OWL Java code menu.
If you want to use the code generators that come with Protege 3.5.* then
you need to get the latest Protege 3.5 and try out the menus underneath
the Code menu. I think that the "Generate Protege-OWL Java" code is the
most recently updated code generation plugin here. I believe that the
last time I tried the Kazuki Java classes mechanism, it did not work.
If you want to use the ontology bean generator then you need to install
some version of Protege 3 (perhaps as old as Protege 3.3.1). I don't
know anything about this plugin but it does look a bit older (last
update was 2008 and it indicates compatibility with Protege 3.3.1 which
is pretty old.)
On 12/3/12 12:47 PM, André Luiz Tietböhl Ramos wrote:
> Dear Timothy,
> Thanks for the reply. Read my comments below please,
> > I don't actually know much about this plugin but it looks like it is a
> > Protege 3 plugin. If this is right then you need to install and use it
> > with Protege 3 and not Protege 4.
> >The latest Protege 4.2 also has a code generation capability but I don't
> >know how this compares to the ontology bean generator.
> How does it work actually? I tried using the link above, followed its
> instructions and it did not work for the reasons below:
> 1. Go to Protege's menu open>configure but it does not exist. I even
> tried the File>Preferences submenu options to no avail however.
> 2. The BeanGenerator tab shows up but there is nothing in it.
> In addition, I tried to make a simple ontology with one class without
> bean genetarion for testing version 4.2b and no code is generated.
> The ontology has two version is saved OWL and RDF. Why could that be?
> What should I do then? Install another version that work perhaps?
> The errors above were for version 4.2b in ubuntu 12.04.
> Thanks again,
> Andre Luiz
> On 11/30/2012 11:04 AM, Andr? Luiz Tietb?hl Ramos wrote:
> > Hello,
> > How to actually use the beangenerator plugin please? It is
> > installed as shown below but the BeanGenerator tab does not show.
> > The relevant environment variables are below. I use ubuntu 12.04.
> > export PATH
> > export CLASSPATH
> > export JAVA_HOME=/usr/lib/jvm/java-7-oracle
> > export PATH=$PATH:$JAVA_HOME/bin
> > PROTEGE_HOME=/opt/Protege_4.1
> > export PROTEGE_HOME
> > The Protege 4.1 root directory has the beangenerator.properties file
> > in it and its plugins subdirectory has the plugin.properties files.
> > It does not generate any Java code.
> > Finally, a newbie question: is there any way to change manually
> > the relationship type from is-a for instance to something else?
> > Thanks in advance,
> > Andre Luiz
> > _______________________________________________
> > protege-discussion mailing list
> > protege-discussion at lists.stanford.edu
> <mailto:protege-discussion at lists.stanford.edu>
> > https://mailman.stanford.edu/mailman/listinfo/protege-discussion
> > Instructions for unsubscribing:
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-discussion