obj = factory.getOWLObjectHasSelf( prop );
}
public void visitOneOf(ATermAppl term) {
ATermList list = (ATermList) term.getArgument( 0 );
if( ATermUtils.isLiteral((ATermAppl) ((ATermAppl) list.getFirst()).getArgument( 0 ))) {
Set<OWLLiteral> set = new HashSet<OWLLiteral>();
for( ; !list.isEmpty(); list = list.getNext() ) {
ATermAppl first = (ATermAppl) list.getFirst();
if (!ATermUtils.isLiteral((ATermAppl) first.getArgument(0)))
throw new InternalReasonerException("Conversion error, expecting literal but found: " + first);
visitLiteral((ATermAppl) first.getArgument(0));
set.add( (OWLLiteral) obj );
}
obj = factory.getOWLDataOneOf( set );
}
else {
Set<OWLIndividual> set = new HashSet<OWLIndividual>();
for( ; !list.isEmpty(); list = list.getNext() ) {
ATermAppl first = (ATermAppl) list.getFirst();
OWLIndividual ind = convertIndividual( (ATermAppl) first.getArgument( 0 ) );
set.add( ind );
}
obj = factory.getOWLObjectOneOf( set );