Difference between revisions of "Protege 5 Development Environment"

From Protege Wiki
Jump to: navigation, search
(Install From Svn and Server Startup)
(Install From Svn and Server Startup)
Line 7: Line 7:
 
     svn checkout http://smi-protege.stanford.edu/repos/protege/protege4/misc/society/protege.server
 
     svn checkout http://smi-protege.stanford.edu/repos/protege/protege4/misc/society/protege.server
 
</pre>
 
</pre>
 +
If you are using eclipse this will become your eclipse project later.
  
Some of the following directions will seem a little strange because at the moment the server is started by starting the junits.  This will be fixed presently.
+
Some of the following directions will seem a little strange because at the moment the server is started by starting the junits.  This will be fixed presently. As a consequence of this, before you run the ant targets you will need to go into org.protege.owl.server.junit, copy the junit.properties.template to junit.properties and configure settings that work with your database.  All that needs to be set up is the database url, the user name and the password:
If you are using eclipse this will become your eclipse project later. In the org.protege.owl.server.junit directory copy the junit.properties.template file to junit.properties and adjust the database connection properties as needed. MySQL and PostGreSQL databases should work. Now there are a couple of ant tasks that are available:
+
<pre>
 +
    db.url=jdbc:postgresql://localhost/protege4
 +
    db.user=protege
 +
    db.password=troglodyte
 +
</pre>
 +
MySQL and PostGreSQL databases should work.
 +
 
 +
Now there are a couple of ant tasks that are available:
 
<ul>
 
<ul>
 
<li><b>install</b> installs the Protege client and server in the subdirectory build/Protege.</li>
 
<li><b>install</b> installs the Protege client and server in the subdirectory build/Protege.</li>
 
<li><b>run.server</b> builds and runs the server.  As part of this target the install target is also built.</li>
 
<li><b>run.server</b> builds and runs the server.  As part of this target the install target is also built.</li>
 
<li><b>debug.server</b> builds and runs the server with debugging turned on at port 8500.</li>
 
<li><b>debug.server</b> builds and runs the server with debugging turned on at port 8500.</li>
<li><b>run.database.manager</b> runs the database manager which will allow one to copy owl ontologies into the database.
+
<li><b>run.database.manager</b> runs the database manager which will allow one to copy owl ontologies into the database. Ontologies in the
 +
    database will automatically become available on the server
 
</ul>
 
</ul>
  

Revision as of 16:57, July 13, 2010

Setting Up the Protege 4 Server Development Environment

Install From Svn and Server Startup

First checkout the development tree

     svn checkout http://smi-protege.stanford.edu/repos/protege/protege4/misc/society/protege.server

If you are using eclipse this will become your eclipse project later.

Some of the following directions will seem a little strange because at the moment the server is started by starting the junits. This will be fixed presently. As a consequence of this, before you run the ant targets you will need to go into org.protege.owl.server.junit, copy the junit.properties.template to junit.properties and configure settings that work with your database. All that needs to be set up is the database url, the user name and the password:

     db.url=jdbc:postgresql://localhost/protege4
     db.user=protege
     db.password=troglodyte

MySQL and PostGreSQL databases should work.

Now there are a couple of ant tasks that are available:

  • install installs the Protege client and server in the subdirectory build/Protege.
  • run.server builds and runs the server. As part of this target the install target is also built.
  • debug.server builds and runs the server with debugging turned on at port 8500.
  • run.database.manager runs the database manager which will allow one to copy owl ontologies into the database. Ontologies in the database will automatically become available on the server

After the install step, a copy of the client and the server is put in the directory build/Protege. When the server is running, this client can be used to connect to the server and edit the shared ontologies.

Setting up Eclipse

To set up eclipse, unzip the ide-eclipse.zip file. Then start eclipse using protege.server as the workspace. In eclipse, you will be able to import the projects. This eclipse will come with a couple of runnables:

  • Client starts the Protege OWL Client.
  • Server not working yet for some reason.
  • ConnectToAntServer connects to the "ant debug.server" script for debugging.