Coder Social home page Coder Social logo

rdmo-plugins-somef's Introduction

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.

rdmo-plugins-somef's People

Contributors

mypydavid avatar

Stargazers

 avatar

Watchers

Jochen Klar avatar Olaf Michaelis avatar  avatar  avatar

Forkers

yvgrossmann

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.