m_headAtoms.add(Atom.create(atLeastConcept,X));
}
}
public void visit(OWLDataMaxCardinality object) {
int number=object.getCardinality();
LiteralConcept negatedDataRange=m_dataRangeConverter.convertDataRange(object.getFiller()).getNegation();
ensureYNotZero();
Variable[] yVars=new Variable[number+1];
for (int i=0;i<yVars.length;i++) {
yVars[i]=nextY();
m_bodyAtoms.add(getRoleAtom(object.getProperty(),X,yVars[i]));
if (negatedDataRange instanceof AtomicNegationConcept) {
AtomicConcept negatedConcept=((AtomicNegationConcept)negatedDataRange).getNegatedAtomicConcept();
if (!negatedConcept.isAlwaysTrue())
m_bodyAtoms.add(Atom.create(negatedConcept,yVars[i]));
}
else {
if (!negatedDataRange.isAlwaysFalse())
m_headAtoms.add(Atom.create((DLPredicate)negatedDataRange,yVars[i]));
}
}
for (int i=0;i<yVars.length;i++)
for (int j=i+1;j<yVars.length;j++)