📌 Introduction
If you want to set up an automatic tool to export metadata to a FAIR data point but do not know where to start you may consider using SeMPyRO package to prepare data.
SeMPyRO is a pydantic-based Python package aiming to make working with ontologies easier by implementing main DCAT instances as pydantic classes and providing logic to convert instances of those classes to an RDF graph.
🧠Explanation / Approach
More details on the SeMPyRO package itself can be found in the repository: https://github.com/Health-RI/SeMPyRO/tree/main
Among other documentation we provide a Jupyter notebook with example code: https://github.com/Health-RI/SeMPyRO/blob/main/docs/Usage_example_FDP.ipynb
You can execute this notebook with your FAIR Data Point instance to get a grasp what metadata preparation and uploading to an FDP may look like and create scripts of your own.
Prerequirements
A running FDP instance
How to run the notebook
Clone SeMPyRO repository
Install Jupyter notebook (An official installation guid: https://jupyter.org/install )
Install SeMPyRO package (
pip install sempyro
) and dependeciesInstall additional dependencies for the particular notebook:
tabulate
andpandas
Run Jupyter notebook, the repository with a running kernel will be opened in your browser.
Navigate to
./docs/Usage_example_FDP.ipynb
, you can execute statements there one by one