write dct:references only if $attachmentUri is set