OWL 2 Tools

 Here we provide various OWL 2 Tools. Currently you can find

RACER reasoning support for OWLAPI and Protégé

The RACER OWLAPI Adapter and the RACER Protégé Adapter Plugin enables you to efficently reason about ontologies within your OWLAPI-based application as well as within Protégé using the highly optimized RACER reasoning system provided by Racer Systems GmbH & Co. KG.

Together with Racer Systems the adapters has been developed to efficently support RACER from Protégé 4 as well as from JAVA applications based on the de-facto framework for working with OWL ontologies (see OWLAPI).

Note that we do not ship the RACER engine with any of our plugins. In order to use it please make sure that you have downloaded RacerPro 2 (currently a preview version is freely available at http://www.racer-systems.com/owlapi. In order to offer you an efficent and optimized reasoner link-up we regret that previous versions (prior to version 2) of RACER are not supported.

Questions, Feedback

We invite you to give us feedback about the adapter in order to improve it. For now please use the "direct" contact as mentioned on top of the page until we set up a mailing list/forum.

RACER Protégé Plugin

The RACER Protégé Adapter Plugin enables you to efficently reason about your ontology within Protégé 4 using RACER reasoning system provided by Racer Systems GmbH & Co KG. The Adapter Plugin has been developed ontop of the RACER OWLAPI interface. 

Download

The plugin is licensed under the terms of the LGPL version 2.1. The software component is provided AS IS without any warranty. Use it on your own risk.

If you agree to the terms and conditions above you may proceed and download the RACER Protégé Adapter plugin! Please carefully read the installation instructions and information about usage given below.

Racer Protege Adapter Plugin

Note that when using Safari browser it has been reported that the file extension may be wrong interpreted. Make sure that the extension is "jar".

Installation instructions

  1. Download the RACER Protégé adapter plugin. By downloading you accept the current license terms.
  2. Copy the downloaded file into the plugin folder (typically called plugins) of your local Protégé directory.
  3. Download the RacerPro 2 (resp. the mentioned preview)
  4. (Optional) Create a directory named racer in the Protégé directory and copy all Racer binaries.

Usage

Please make sure that you have an installed RacerPro 2 (resp. RacerPro 2 preview) system on your computer. There are the following possibilities:

  1. Make sure that you had followed the installation instructions mentioned in step 4. RacerPro will then be automatically started and stopped from Protégé when selecting the RacerPro reasoner. (recommanded)
  2. Tell Protégé where to find RacerPro to start and stop it automatically (also recommanded).
  3. Start RacerPro manually (running RacerPro on the Microsoft Windows Platform please start racer via "RacerPro -- -ef @UTF8"). Make sure that you telling Protégé the port number. 

RACER OWL API adapter

The RACER OWLAPI adapter allows you to reason about ontologies from your OWLAPI-based application. The OWLAPI is a de-facto standard for building and using ontologies within a JAVA application.

Download

The plugin is licensed under the terms of the LGPL version 2.1. The software component is provided AS IS without any warranty. Use it on your own risk.

If you agree to the terms and conditions above you may proceed and download the OWLAPI Adapter! Please carefully read the installation instructions and information about its usage given below.

OWLAPI adapter for RACER

Note that the download does not include the RACER reasoning engine. Please read the information above for getting RACER.

Installation

After downloading the jar file containing the adapter make sure that JAVA knows about it by either adding the file to your global CLASSPATH or by adding it the the local library folder of your application. 

Usage

  • The adapter tries to connect to a running RACER systems via a TCP connection. Please make sure that the RACER system is running on your machine or in case it is running on a remote machine that no firewall blocks TCP streams. Please refer to the readme files provided by your RACER installation how to start RACER. Running RacerPro on the Microsoft Windows Platform please start RacerPro via "RacerPro -- -ef @UTF8".
  • On the JAVA side you can obtain a new RACER adapter as follows:
    •  Using de.uulm.ecs.ai.owl.inference.racer.tcp.RacerTCPReasonerFactory

        OWLOntologyManager manager = ...;
        RacerTCPReasonerFactory factory = new RacerTCPReasonerFactory(); 

        OWLReasoner racer = factory.createOWLReasoner(manager);

                The adapter will try to connect to a RACER system running on the local machine using the default port (8088).

        String hostname = "..."; //e.g. "127.0.0.1"
        int port = ...;//e.g. default port 8088;
        InetSocketAddress addr= new InetSocketAddress(host, port);
        OWLReasoner reasoner = factory.createOWLReasoner(addr);

                 The adapter will try to connect to a RACER system running on the given machine using the given port.

    • RacerTCPReasonerFactory will create an de.uulm.ecs.ai.owl.inference.racer.RacerOWLReasoner object (subclass of OWLReasoner) that provides additional methods to communicate with RACER.

        RacerOWLReasoner racer = factory.createOWLReasoner();
        String command = "(in-tbox)";
        String answer = racer.sendNativeCommand(command, true); 

      The example above demonstrates how to send native commands to racer. Please make sure that you enclose your command in bracets. The second parameter determines whether the command is executed in the RACER knowledge base manged by this RacerOWLReasoner object.

      Note that it depends on the license of your RACER version which kinds of native commands are supported. Please refer to the readme of your RACER installation.

Questions/Feedback

We invite you to give us feedback about the adapter in order to improve it. For now please use the "direct" contact as mentioned above until we set up a mailing list/forum.