Transform IRIs in @id to relative IRIs, ignore terms in @id

This addresses #204