Difference between revisions of "Working with the Database Backend in OWL"

From Protege Wiki
Jump to: navigation, search
(Opening an ontology using a web uri)
(Converting a Project to a Database Project)
Line 35: Line 35:
  
 
[[Image:OwlDatabaseBackendSelectProjectFormat.png]]
 
[[Image:OwlDatabaseBackendSelectProjectFormat.png]]
 +
 +
Once you click ok, you will see a dialog with several database settings.  You can fill them as shown below.
 +
 +
[[Image:OwlDatabaseBackendSelectDbSettings.png]]

Revision as of 13:11, April 21, 2008

Working with the Database Backend in OWL

Before you start

This example requires that the mysql jdbc drivers are available to Protege. To make the drivers available, download the drivers from here, copy the jar file into the Protege installation directory and call it driver.jar.

Opening an ontology using a web uri

This note will show by example how to convert an owl project and its imports to a database backend project. We will use the proton ontology as an example because it has a few non-trivial imports. The first step is to open it from the web. We start protege and in the welcome screen we select "New Project".

OwlDatabaseBackendProtegeWelcome.png

Note that if Protege is already open and you don't see the welcome screen then you can access the screen below by clicking on the File menu and selecting "New Project".

Now since we want to create a Protege OWL project using a url from the internet, we

  • select Use existing sources,
  • select OWL/RDF Files and
  • click next.

OwlDatabaseBackendCreateNewProject.png

Finally we enter the url (http://proton.semanticweb.org/2005/04/protonu) for the upper Proton ontology and click finish.

OwlDatabaseBackendChooseURLAndFinish.png

Wait a bit and the ontology will come up. When it does, you will see the reason that this ontology was chosen for this demonstration when you unravel the imports in the imports tab. There are two imports (protont and protons) which occur in two different places.

OwlDatabaseBackendProtonUImports.png

Converting a Project to a Database Project

Now we will convert the upper Proton ontology to a database project. To do this click on the Protege File menu and select "Convert Project to Format". In this window select the "OWL / RDF Database" format and click ok.

OwlDatabaseBackendSelectProjectFormat.png

Once you click ok, you will see a dialog with several database settings. You can fill them as shown below.

OwlDatabaseBackendSelectDbSettings.png