[Pellet-users] execute SWRL rules

Michael Smith msmith at clarkparsia.com
Mon Jul 7 14:59:55 UTC 2008


On Mon, 2008-07-07 at 16:38 +0200, Fani wrote:

> Could anybody say me how I can execute SWRL rules by using Pellet-1.5 and OWLAPI? Are these rules automatically executed when I modify the ontology? Or do I have to execute some method?

Please see the rules FAQ entry at [1].  If the rules are in the ontology
they impact reasoning, there is no special method to execute.

> Would I have to do the same if I have the SWRL rules and my ontology in different files?

Assuming both files are loaded to Pellet, there is no problem with this.

> Are there any example or documentation of this?

Yes, see the examples directory in the Pellet distribution.  There is a
file RulesExample.java that demonstrates using rules and Pellet via the
Jena interface.

-- 
Mike Smith

Clark & Parsia

[1] http://pellet.owldl.com/faq/rules/



More information about the Pellet-users mailing list