Sources for my OWL2 and SWRL tutorial at http://dior.ics.muni.cz/~makub/owl/#java
This is a Maven project, so all needed libraries are automatically downloaded from public repositories.
Compile and run the project from command line:
mvn compile exec:java
or open the project in your favourite IDE and run the class cz.makub.Tutorial