@Nonnull
private SWRLRule rule;
@Before
public void setUp() {
OWLDataFactory dataFactory = new OWLDataFactoryImpl();
PrefixManager pm = new DefaultPrefixManager(null, null,
"http://stuff.com/A/");
OWLClass clsA = Class("A", pm);
OWLClass clsB = Class("B", pm);
OWLClass clsC = Class("C", pm);
OWLClass clsD = Class("D", pm);
OWLClass clsE = Class("E", pm);
SWRLVariable varA = dataFactory.getSWRLVariable(IRI
.create("http://other.com/A/VarA"));
SWRLVariable varB = dataFactory.getSWRLVariable(IRI
.create("http://other.com/A/VarA"));
SWRLVariable varC = dataFactory.getSWRLVariable(IRI
.create("http://other.com/A/VarA"));
body.add(dataFactory.getSWRLClassAtom(clsC, varA));
body.add(dataFactory.getSWRLClassAtom(clsB, varB));
body.add(dataFactory.getSWRLClassAtom(clsA, varC));
head.add(dataFactory.getSWRLClassAtom(clsE, varA));
head.add(dataFactory.getSWRLClassAtom(clsD, varA));
rule = dataFactory.getSWRLRule(body, head);
}