On 09/04/2021 18:24, Justin Clark-Casey wrote:
> Hi Padmini. I'm going to respond as no-one else has. However, I'm far from an expert - this may draw someone from the woodwork to correct/elaborate.
>
> I'm unsure what you're trying to do in this API example but I'm going to presume you ultimately want to create DRS URIs, for example of the form
> drs://
drs.example.org/314159 where 314159 is an example DRS object ID.
>
> You need to generate the DRS object IDs yourself. My assumption is that it's up to you how you do it - I've never seen any guidance for this.
>
> For example, you could use could simply have an incrementing counter. Or you could create a random UUID. Or you could use a hash of the file content - for
> example the SHA1 of your file.tsv. You might also have an an accession/ID from elsewhere that you could reuse if it conforms to the characters allowed in a DRS
> object ID. I'd be quite interested to know what people out there do for this.
>
> One you have your object ID you append it to your host (above
drs.example.org) and hey presto, there's your DRS ID.