kb.addIndividual( j );
kb.addObjectProperty( r );
kb.addSubClass( TOP, min( r, 1, TOP ) );
kb.addSubClass( TOP, oneOf( i, j ) );
kb.addRule( new Rule( Collections.singletonList( new DifferentIndividualsAtom( x, y ) ),
Collections.singletonList( new IndividualPropertyAtom( r, x, y ) ) ) );
kb.realize();
assertTrue( kb.isConsistent() );
assertTrue( kb.isDifferentFrom( i, j ) );