Skip to content

ObdalibPluginPellet

Guohui Xiao edited this page Sep 18, 2013 · 2 revisions

Table of Contents

Description

The OBDAlib Pellet Connector Plugin for Protégé 4 provides the infrastructure to issue SPARQL queries directly to the Pellet Reasoner (version 2.2.2) using the OBDA Query Tab of the OBDA plugin.

Download and installation

Download

A pre-packed version of the plugin can be downloaded here: <under></under>

Requirements

  1. Your system must be ready to run Java 1.6 applications, i.e. you need to be able to go into the console and execute the "java" command. If you haven't done so, please follow these instructions.
  2. A working copy of Protege 4.0 installed in your system. You can find download links and instructions on how to setup Protege 4 here. If you are new to Protege 4 we also recommend browsing trough the Protege 4 documentation.
  3. A woking istallation of the OBDA Plugin for Protégé 4.0. Detailed information about the plugin and a step by step installation tutorial can be found here.

Installing and updating the plugins

To install the OBDA Plugin do as follows:

  1. First step is to extract the archive you downloaded in a local folder


To update the plugins simply remove the old jar files and replace them with the new ones.

Comment

Before classifying an ontology with the reasoner provided by this plugin it is neccessary to save the currently loaded ontology. Right now, due to some limitations of the plugin, it cannot pass direclty an ontology from Protege to the reasoner, so the reasoner has to reload the ontolgy from its owl file.

Compiling source code with Eclipse

These are the instructions to setup an Eclipse workspace to be able to compile and run the OBDAlib Pellet Connector Plugin for Protege 4 from Eclipse 3.4 and above. After following these instructions you should be ready to run protege together with the plugin within Eclipse.

  1. Install SVN for Eclipse. Follow the instructions at http://subclipse.tigris.org/
2. Install the Maven plugin for Eclipse. Foll the instructions at http://m2eclipse.sonatype.org/installing-m2eclipse.html

3. Setup Protege 4 in your Eclipse workspace. Follow the instructions http://www.cs.man.ac.uk/~iannonel/eclipseSetup/eclipseSetupMain.html and make sure you are able to run Protege 4 from within Eclipse before proceeding.

4. Setup the OBDALib, OWLAPI-OBDALib-bindings and OBDA for Protege 4 projects following the instruction at https://babbage.inf.unibz.it/trac/obdapublic/wiki/svneclipse

5. Checkout the following project as maven project

https&#58;//babbage.inf.unibz.it/krdb/obdapublic/pellet&#45;obda/trunk

6. Do a maven install. Right click on the project, select Run As and click on Maven install

7. Add a new source folder called plugin_runtime to the project, then extract everything form the jar file obtained in step 6 and copy all .jar and .xml files togehter with the META-INF folder into it.

8. Open the Eclipse Launch file created during the installation of the OBDA plugin and add $&#123;workspace_loc&#58;&lt;project name&gt;&#125;/target/classes to the &#45;Dorg.protege.plugin.extra argument. If you use Windows use &#59;, otherwise use &#58; as seperator.

9. Apply the changes and run the Launch file.

10. If everything worked fine, Protege should be started togehter with the OBDA plugin and the OBDAlib Pellet Connector Plugin.

Clone this wiki locally