Skip to : [Content] [Navigation]
 

Does Pellet support rules?

Pellet supports a subset of SWRL called DL-Safe Rules. The following SWRL features are not currently supported by Pellet: class atoms with anonymous classes, data valued property atoms, and built-in functions.

You don’t need to use any utility function to use SWRL in Pellet. You can directly load the SWRL file into Pellet and rules will be parsed and processed. See the examples directory in the Pellet distribution for a sample program that shows how to use DL-safe rules with Pellet. You can either use the OWLAPI or Jena interface; they both handle SWRL. Using the configuration option DL_SAFE_RULES, the reasoner can be configured to ignore SWRL rules. Rules support is enabled by default and only the rules that use one of the mentioned unsupported features will be ignored (or an exception will be thrown based on the value of the configuration option IGNORE_UNSUPPORTED_AXIOMS).