RuleAtom atom = new DatavaluedPropertyAtom( p, var, arg );
atoms.add(atom);
}
else {
AtomIConstant arg = new AtomIConstant( nominal );
RuleAtom atom = new IndividualPropertyAtom( p, var, arg );
atoms.add(atom);
}
}
else {
varCount++;
if( kb.isDatatypeProperty( p ) ) {
AtomDObject newVar = new AtomDVariable( "var" + varCount );
RuleAtom atom = new DatavaluedPropertyAtom( p, var, newVar );
atoms.add(atom);
processDatatype( newVar, filler, atoms );
}
else{
AtomIObject newVar = new AtomIVariable( "var" + varCount );
RuleAtom atom = new IndividualPropertyAtom( p, var, newVar );
atoms.add(atom);
varCount = processClass( newVar, filler, atoms, varCount );
}
}
}