/socop

Mirror of http://socop.oor.net/

Primary LanguageRuby

SOCoP Importer

Some ruby code to import metadata of ontologies and submissions from socop.oor.net.

Requirements

You need Ruby 2.0, libxml2 and libxslt

Installation

git clone git://github.com/ontohub/socop.git
cd socop_importer
bundle install

Configuration

Copy the config.yml.sample to config.yml and fill in your credentials.

cp config.yml.sample config.yml

Usage

Start the interactive ruby console:

./console

Create a repository with all downloaded submissions:

Socop.import_all

Now you can find the repository in ./workspace/.git

After pushing the repository to Ontohub you can update the ontologies metadata at Ontohub:

Ontohub::API.instance.update_metadata