attribute fixes - iri is optional, direction imported

Signed-off-by: greenTara <taraathan@gmail.com>