Closed astrochun closed 1 year ago
@bess and @Twade968
Here's an example of the current JSON metadata that is transformed into XML and sent to E-Link.
There are a few things worth noting. Because we currently don't support ORCID, we are using the creators
field instead of authors
for the E-Link API. The latter allows for providing email and ORCID, but would need to be a list/array. Here creators
is a simple semi-colon list of last-first name combination. We will probably need to move toward using authors
and can do so without ORCID as part of the first step. You can see more about this here at on ostiapi
documentation.
Keep in mind that the below does not have the doi
field, which is what we will use for PDC-minted DOIs. Also, in some instances, we have keywords
Another source of E-Link documentation is available here. This provides greater details on API and fields.
[
{
"title": "Wall conditioning and ELM mitigation with boron nitride powder injection in KSTAR",
"creators": "Gilson, Erik;Lee, H;Bortolon, A;Choe, W;Diallo, A;Hong, SH;Lee, HM;Maingi, R;Mansfield, DK;Nagy, A;Park, SH;Song, IW;Song, JI;Yun, SW;Nazikian, R",
"dataset_type": "FP",
"site_url": "https://dataspace.princeton.edu/handle/88435/dsp01hh63t006w",
"contract_nos": "AC02-09CH11466",
"sponsor_org": "USDOE Office of Science (SC)",
"research_org": "PPPL",
"accession_num": "88435/dsp01hh63t006w",
"publication_date": "05/25/2022",
"othnondoe_contract_nos": "EN2101-12;IN2010-3;NRF-2019M1A7A1A03087560",
"description": "Results from KSTAR powder injection experiments, in which tens of milligrams of boron nitride (BN) were dropped into low-power H-mode plasmas, show an improvement in wall conditions in subsequent discharges and, in some cases, a reduction or elimination of edge-localized modes (ELMs). Injected powder is distributed by the plasma flow and is deposited on the wall and, over the course of several discharges, was observed to gradually reduce recycling by 33%, and decrease both the ELM amplitude and frequency. This is the first demonstration of the use of BN for ELM mitigation. In all of these experiments, an Impurity Powder Dropper (IPD) was used to introduce precise, controllable amounts of the materials into ELMy H-mode KSTAR discharges. The plasma duration was between 10 s and 15 s, \ud835\udc3c\ud835\udc5d = 500 kA, \ud835\udc35\ud835\udc47 = 1.8 T, \ud835\udc43NBI = 1.6 MW, and \ud835\udc43ECH = 0.6 MW. Plasma densities were between 2 and 3 \u00d7 1019 m\u22123. In all cases, the pre-fill and startup gas-fueling was kept constant, suggesting that the decrease in baseline D\ud835\udefc emission is in fact due to a reduction in recycling. The results presented herein highlight the viability of powder injection for intra-shot and between-shot wall conditioning.",
"related_identifiers": [
{
"related_identifier": "10.1016/j.nme.2021.101043",
"relation_type": "IsReferencedBy",
"related_identifier_type": "DOI"
}
]
}
]
To prepare for PDC migration, we will need to enable metadata retrieval from PDC Discovery.
scraper
should be able to retrieve PDC metadata for multiple records from a collectionpydantic
BaseModel
for the PDC metadata and DataSpacedspace
andpdc
versionNote that Item Include DOI (See #40) is separate and out for scope for #35