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