protected OWLDescription translateRestriction(URI mainNode) throws OWLException {
URI hasValueObject = getResourceObject(mainNode, OWLRDFVocabulary.OWL_HAS_VALUE.getURI(), true);
if (hasValueObject == null) {
throw new MalformedDescriptionException(OWLRDFVocabulary.OWL_HAS_VALUE + " triple not present");
}
OWLObjectPropertyExpression prop = translateOnProperty(mainNode);
OWLIndividual ind = getConsumer().getOWLIndividual(hasValueObject);
getConsumer().addIndividual(ind.getURI());
return getDataFactory().getOWLObjectValueRestriction(prop, ind);
}