{
AtomIVariable v = new AtomIVariable( "v" );
RuleAtom body = new ClassAtom( G, v );
RuleAtom head = new IndividualPropertyAtom( p, v, new AtomIConstant( y ) );
Rule rule = new Rule( Collections.singleton( head ), Collections.singleton( body ) );
kb.addRule( rule );
}
assertTrue( kb.isConsistent() );
assertIteratorValues( kb.getPropertyValues( p, x ).iterator(), new ATermAppl[] { a, b, c, y } );
assertEquals( Collections.singletonList( y ), kb.getPropertyValues( q, x ) );