throws Exception {
OWLOntology o = createOnto();
OWLOntologyManager m = o.getOWLOntologyManager();
declare(o, DATAP);
m.addAxiom(o, DataPropertyRange(DATAP, DataComplementOf(Double())));
OWL2ELProfile profile = new OWL2ELProfile();
int expected = 2;
Class[] expectedViolations = { UseOfIllegalDataRange.class,
UseOfIllegalDataRange.class };
runAssert(o, profile, expected, expectedViolations);
}