Skip to content

Data

Usage

  • Searches by name if the node doesn't exist it creates it otherwise updates it
  • Idempotent operation
from cript import *

data = Data(name="mydata")
exp1 = Experiment(name="exp1")
col1=Collection(name="col1", experiment=exp1)

proj = Project(
    name="Change Project Name",
    collection=[col1]
)

print(proj)

Attributes

Attribute Type Example Description Required Vocab
name str "my_data_name" Name of the data node True
type str "nmr_h1" True Name
file List[File] [file_1, file_2, file_3] list of file nodes False
sample_preparation Process False
computation List[Computation] data produced from this Computation method False
computation_process ComputationProcess data was produced from this computation process False
material List[Material] materials with attributes associated with the data node False
process List[Process] processes with attributes associated with the data node False
citation Citation reference to a book, paper, or scholarly work False
notes str "my awesome notes" miscellaneous information, or custom data structure False

Delete

Generic Deletion