The SWRLDroolsBridge is a plug-in to the SWRLTab in Protege-OWL that supports the execution of SWRL rules using the Drools rule engine. An associated SWRLDroolsTab component provides a graphical interface to this bridge. (CDE)
Installation (CDF)
The SWRLDroolsBridge is part of Protege-OWL 3.5 and does not need to be downloaded separately. Since many of the SWRLTab components are under active development, the most recent Protege-OWL 3.5 release should be used when possible. (CDG)
Can I interact with the SWRL-Drools Bridge at the Java API level? (CDH)
A bridge mechanism is provided in Protege-OWL to allow interaction between an OWL knowledge base containing SWRL rules and a rule engine. This mechanism is described here. This bridge is specialized for each rule engine implementation. However, interaction with the bridge should be same irrespective of the underlying rule engine implementation. (CDI)
An implementation for the Drools bridge is supplied with the standard Protege-OWL distribution in a JAR called swrl-drools-bridge.jar. The source code for the SWRLDroolsBridge is distributed separately from the Protege-OWL source code and is located in the SWRL-Drools bridge Subversion repository. (CDC)
The following code snippet shows the creation of a Drools bridge. It assumes that you know how to create an instance of an OWL model using the Protege-OWL API. (CDJ)
OWLModel owlModel = ... // Create using normal Protege-OWL mechanisms. SWRLRuleEngine ruleEngine = P3SWRLRuleEngineFactory.create("Drools", owlModel); (CDK)
Where can I get the source code for the SWRL-Drools Bridge? (CDM)
The source code is available in the SWRL Drools bridge Subversion Repository. (CDN)
How can I build a SWRL-Drools Bridge? (CDO)
The SWRLDroolsBridge can be downloaded from the SWRL Drools Bridge Subversion Repository. The root of the download directory has an Ant build file that can be used to compile and install it. An option called install can be used to perform an install. The installation step is expecting an existing Protege installation and determines its location using the PROTEGE_HOME environment variable. (CDD)
In general, it is advisable to download and build the latest version of the SWRLTab before building a new SWRLDroolsBridge. Instructions on how to build the SWRLTab can be found here. (CDP)