Generate and add URN to metadata