}
// All facets must be allowed for the restricted datatype
for (OWLFacetRestriction r : node.getFacetRestrictions()) {
OWL2Datatype dt = node.getDatatype().getBuiltInDatatype();
if (!dt.getFacets().contains(r.getFacet())) {
profileViolations.add(new UseOfIllegalFacetRestriction(
getCurrentOntology(), getCurrentAxiom(), node, r
.getFacet()));
}
}
}