Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SWRLAPI Drools Engine
Clone this wiki locally
It also provides an OWL 2 RL-based reasoner implementation in Drools.
An embedded SWRL Drools Tab component provides a graphical interface to this engine.
Table of Contents
A bridge mechanism is provided by the SWRLAPI 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.
The following code snippet shows the creation of a Drools-backed SWRL rule engine using the SWRLAPI. It assumes that you know how to create an instance of an OWL ontology using the OWLAPI.
OWLOntology ontology = ... // Create using normal OWLAPI mechanisms SWRLRuleEngine ruleEngine = SWRLAPIFactory.createSWRLRuleEngine(ontology);
The source code is available in the SWRL Drools Engine Git Repository.
See the top level project README.md file for a description of building this engine.