Skip to content

rdmorganiser/rdmo-plugins-somef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDMO Plugin SOMEF

This plugin imports extracted metadata from the SOMEF into RDMO for the SMP catalogue. It can be used for the automated transfer of information in GitHub repositories to RDMO.

Setup

Install the plugin in your RDMO virtual environment using pip (directly from GitHub):

pip install git+https://github.com/rdmorganiser/rdmo-plugins-somef.git

The dependency tomli will be installed automatically.

Configuration of rdmo in the rdmo-app

Add the rdmo_plugins_somef app to your INSTALLED_APPS in `config/settings/local.py``:

from . import INSTALLED_APPS
INSTALLED_APPS = ['rdmo_plugins_somef'] + INSTALLED_APPS

Add the export plugins to the PROJECT_IMPORTS in config/settings/local.py:

from django.utils.translation import gettext_lazy as _
from . import PROJECT_IMPORTS

PROJECT_IMPORTS += [
    ('somef', _('as somef JSON'), 'rdmo_plugins_somef.imports.somef.SomefImport')
]

Local installation of somef in separate python env

The dependency somef will be installed in a separate environment from rdmo and executed by rdmo via a script with a subprocess function call. For the setup of the local somef environment an installation of python 3.9 needs to be present. Please use the following commands to set up the enviroment.

chmod +x rdmo_plugins_somef/imports/scripts/create_somef_env.sh
./rdmo_plugins_somef/imports/scripts/create_somef_env.sh

# please enable execution of the somef call script as well
chmod +x rdmo_plugins_somef/imports/scripts/somef_describe.sh

The local installation of somef can be tested with:

source rdmo_plugins_somef/imports/scripts/env/bin/activate
somef describe -r https://github.com/dgarijo/Widoco/ -o test.json -t 0.8
somef describe -r https://github.com/rdmorganiser/rdmo -o test.json -t 0.8

Acknowledgements

This plugin rdmo-plugins-somef, was created during the maSMP hackathon at ZB MED sponsored by NFDI4DataScience. NFDI4DataScience is a consortium funded by the German Research Foundation (DFG), project number 460234259.