Working with the Database Backend in OWL

From Protege Wiki
Revision as of 14:02, April 21, 2008 by Tredmond (talk | contribs) (Opening an ontology using a web uri)

Jump to: navigation, search

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