Difference between revisions of "Protege 5 Development Environment"
(→Introduction) |
(→Setting Up the Protege 4 Server Development Environment) |
||
Line 37: | Line 37: | ||
To set up eclipse, | To set up eclipse, | ||
<ol> | <ol> | ||
− | <li> unzip the ide-eclipse.zip file. | + | <li> run "ant install". This step ensures that the built sources will be included in the |
− | <li> start eclipse using protege.server as the workspace. | + | org.protege.owl.server project.</li> |
− | <li>import the projects (File -> Import -> General -> Existing Projects Into Workspace). | + | <li> unzip the ide-eclipse.zip file.</li> |
+ | <li> start eclipse using protege.server as the workspace.</li> | ||
+ | <li>import the projects (File -> Import -> General -> Existing Projects Into Workspace).</li> | ||
</ol> | </ol> | ||
This eclipse workspace will come with a couple of runnables: | This eclipse workspace will come with a couple of runnables: | ||
<ul> | <ul> | ||
− | <li><b>Client</b> starts the Protege OWL Client. | + | <li><b>Client</b> starts the Protege OWL Client.</li> |
− | <li><b>Server</b> starts the Protege OWL Sever | + | <li><b>Server</b> starts the Protege OWL Sever</li> |
− | <li><b>ConnectToAntServer</b> connects to the "ant debug.server" script for debugging. | + | <li><b>ConnectToAntServer</b> connects to the "ant debug.server" script for debugging.</li> |
</ul> | </ul> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Connecting to the server programatically == | == Connecting to the server programatically == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 08:39, August 27, 2012
Contents
[hide]Introduction
This page is now deprecated. But the Protege server is under active development and a new version will be made shortly.
The Protege 4 client server allows multiple Protege 4 clients (such as the desktop application) to browse and edit concurrently an ontology stored on a Protege 4 server.
The Protege 4 client server works in a way similar to SVN (update, commit, resolve conflicts). The conflict resolution mechanism is pluggable. You can read more about the client-server implementation (as a generic OWL-API server) in this paper.
Setting Up the Protege 4 Server Development Environment
The Protege server is going to be released with a version of Protege 4.2 very soon. At that time this page will be divided into instructions for users wanting to try it out and a developer page for developers. Until that time, we will only include the developer page.
Install From Svn
First checkout the development tree
svn checkout http://smi-protege.stanford.edu/repos/protege/protege4/misc/composite/protege.server
If you are using eclipse this will become your eclipse workspace later.
To configure the server, run ant install. This will build a copy of Protege with the server installed in the directory 'build/Protege'. At this point, you will have some ant targets that can replace some of the steps listed below:
- run.client runs the Protege client.
- 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
- 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.client builds and runs the client. As part of this target the install target is also built.
- debug.client builds and runs the client with debugging turned on at port 8501
Setting up Eclipse
To set up eclipse,
- run "ant install". This step ensures that the built sources will be included in the org.protege.owl.server project.
- unzip the ide-eclipse.zip file.
- start eclipse using protege.server as the workspace.
- import the projects (File -> Import -> General -> Existing Projects Into Workspace).
This eclipse workspace will come with a couple of runnables:
- Client starts the Protege OWL Client.
- Server starts the Protege OWL Sever
- ConnectToAntServer connects to the "ant debug.server" script for debugging.