In XCT JSON-LD template, a sample corresponds to an XCT image taken during an experiment. It encloses relevant experimental metadata from the sample being imaged, machinery used, and image information. More detailed structure is shown in the schema diagram below.
library(FAIRmaterials)
# An example data frame for XCT
<- data.frame(
xct_data 'SampleID' = c('sx_0001_0000', 'sx_0032_1245'),
'Alloy' = c('AlMg', 'AlMg'),
'SequenceNumber' = c('0001', '0032'),
'StackNumber' = c('0000', '1245'),
'FilePath' = c('/home/0001_0000.tiff', '/home/0032_1245.tiff'),
'Load' = c(10, 16)
)
# This will generate json-ld files for the example data
# Be sure to put in exact domain name as shown in fairify_data documentation.
# See ?fairify_data for domain names.
<- fairify_data(xct_data, domain = 'XCT') xct_output
from fairmaterials.fairify_data import *
import pandas as pd
# Create an example data frame for XCT
= pd.DataFrame(
data 'SampleID' = ['sx_0001_0000', 'sx_0032_1245'],
'Alloy' = ['AlMg', 'AlMg'],
'SequenceNumber' = ['0001', '0032'],
'StackNumber' = ['0000', '1245'],
'FilePath' = ['/home/0001_0000.tiff', '/home/0032_1245.tiff'],
'Load' = [10, 16]
)
# This will generate JSON-LD file for the example data
<- fairify_data(data, domain = 'XCT') output
This material is based upon work supported by the Department of Energy (National Nuclear Security Administration) under Award Number(s) DE-NA0004104.