kb.addSubProperty( p, q );
kb.addInverseProperty( p, invP );
kb.addInverseProperty( q, invQ );
// force b to be merged to one of c or d
kb.addType( b, or( value( c ), value( d ) ) );
assertTrue( kb.isConsistent() );
// ask a query that will force the merge to be restored. with the bug
// the q would not be restored causing either an internal exception or