OWLClassExpression desc = accessor
.translateClassExpression(classIRI);
return dataFactory.getSWRLClassAtom(desc, iObject);
} else if (consumer.isSWRLDataRangeAtom(firstObject)) {
// DR(?x) or DR(val)
SWRLDArgument dObject = translateSWRLAtomDObject(firstObject,
ARGUMENT_1.getIRI());
IRI dataRangeIRI = consumer.getResourceObject(firstObject,
DATA_RANGE.getIRI(), true);
if (dataRangeIRI == null) {
throw new OWLRuntimeException(
"Don't know how to translate SWRL Atom: data range IRI is null "
+ firstObject);
}
OWLDataRange dataRange = consumer
.translateDataRange(dataRangeIRI);
return dataFactory.getSWRLDataRangeAtom(dataRange, dObject);
} else if (consumer.isSWRLDataValuedPropertyAtom(firstObject)) {
SWRLIArgument arg1 = translateSWRLAtomIObject(firstObject,
ARGUMENT_1.getIRI());
SWRLDArgument arg2 = translateSWRLAtomDObject(firstObject,
ARGUMENT_2.getIRI());
IRI dataPropertyIRI = consumer.getResourceObject(firstObject,
PROPERTY_PREDICATE.getIRI(), true);
if (dataPropertyIRI == null) {
throw new OWLRuntimeException(