added method to replace non canonical uris in the content graph