OWLDataRange description=dr.getDataRange();
if (description.isDatatype() && (Prefixes.isInternalIRI(description.asOWLDatatype().getIRI().toString()) || m_definedDatatypeIRIs.contains(description.asOWLDatatype()))) {
m_bodyAtoms.add(Atom.create(AtomicConcept.create(description.asOWLDatatype().getIRI().toString()),X));
}
else {
LiteralConcept literalConcept=m_dataRangeConverter.convertDataRange(dr);
if (literalConcept instanceof AtomicNegationConcept) {
AtomicConcept negatedConcept=((AtomicNegationConcept)literalConcept).getNegatedAtomicConcept();
if (!negatedConcept.isAlwaysTrue())
m_bodyAtoms.add(Atom.create(negatedConcept,X));
}
else {
if (!literalConcept.isAlwaysFalse())
m_headAtoms.add(Atom.create((DLPredicate)literalConcept,X));
}
}
}