The script creates goes about minting DOI’s in the following fashion:
We create the draft and commit that to the DB first due to the following “chicken and egg” issue:
To create a DataPublication we need a DOI [mandatory field]
To create a DOI we need a URL which will have the DataPublication in it
Various ICAT tables need other entities to be created first as they are needed as a mandatory relationship. Below is a diagram of what is needed to create a DataPublication and how the script goes about it.
Facility is taken directly from the investigation
DataPublicationType is a constant so is only retreived from the ICATDB once and appended to any DataPublications
0 Comments