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