This repository contains the source code of a structure-based approach to transfer Electronic Lab Notebook (ELN) protocols including research data into a Research Object Crates (RO-Crates) bundle whereas the semantic model rerpresents retrospective provenance about the research data.
Note that this software is a research prototype and may contain bugs and errors, i.e., do not use this in production.
The approach has been used in order to create the RO-Crates at: https://github.com/m6121/Infrastructure-based-Provenance-Tracking
The approach is described in full detail in this article: TBD
This work is licensed under the MIT License.
In order to reference this software, please consider the information in the CITATION.cff file.
Installation of the python package is required, e.g. by installing via pip:
pip install git+https://github.com/m6121/Structure-based-ELN2LOD.gitNote that in order to integrate the signature-based file format output of siegfried, docker must be installed and must be able to be invoked by the user executing the python commands.
A minimum running example is as follows:
model = ELN2Crate(LOGGER, NAMESPACE_URL, ELABFTW_URL, ELABFTW_MANAGER, EXP_ID, PSEUDONYMIZE_PERSONS, SIEGFRIED_IMAGE)
try:
model.write_files()
model.create_model()
model.write_crate('./ro-crate_%i' % (EXP_ID))
except ProtocolElementUnknown as e:
print('Protocol element is unknown: ' + str(e), file=sys.stderr)where the following variables have been set:
LOGGERcontains an initialized python-logger using the packageloggingNAMESPACE_URLis the base URL of the namespace of the semantic modelELABFTW_URLURL of the elabFTW instance that is used for the documentation of the experimentsELABFTW_MANAGERan initialized version of theelabapy.Manager()with read permissions on the experiment and the corresponding inventory itemsEXP_IDthe experiment ID that should be bundledPSEUDONYMIZE_PERSONSis an array of strings that should be replaced by pseudonymized before bundling in order to protect privacy.- Optional
SIEGFRIED_IMAGEis a string with the docker image to be used to invoke siegfried for the file format identification. In order to disable the integration of the siegfried output, useNone. By default the following image is used:'sfbelaine/common:siegfried_latest'Note: pulling the image is not enforced, i.e. if it is already present at the docker host, the local image will be used