Some ruby code to import metadata of ontologies and submissions from socop.oor.net.
You need Ruby 2.0, libxml2 and libxslt
git clone git://github.com/ontohub/socop.git
cd socop_importer
bundle install
Copy the config.yml.sample
to config.yml
and fill in your credentials.
cp config.yml.sample config.yml
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