kb.addIndividual( k );
kb.addDatatypeProperty( p );
kb.addObjectProperty( r );
kb.addSubClass( TOP, min( r, 3, TOP ) );
kb.addSubClass( TOP, or( value( i ), value( j ), value( k ) ) );
kb.addPropertyValue( p, i, d );
AtomIVariable x = new AtomIVariable( "x" ), y = new AtomIVariable( "y" );
AtomDVariable z = new AtomDVariable( "z" );
RuleAtom head = new DatavaluedPropertyAtom( p, x, z );