OWLOntology o = createOnto();
OWLOntologyManager m = o.getOWLOntologyManager();
declare(o, DATAP);
m.addAxiom(o,
DataPropertyRange(DATAP, DataUnionOf(Integer(), Boolean())));
OWL2QLProfile profile = new OWL2QLProfile();
int expected = 2;
Class[] expectedViolations = { UseOfIllegalDataRange.class,
UseOfIllegalDataRange.class };
runAssert(o, profile, expected, expectedViolations);
}