New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cap-vivo-mapper

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cap-vivo-mapper

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Cap::Vivo::Mapper

This utility maps Stanford CAP profiles to VIVO.

Initial Objectives

  • Identification of how CAP overlaps with the basics of the VIVO-ISF model
    • specifically as relates to People and their relationships
    • e.g. the LODE and eagle-i views, plus docs and examples on the wiki
  • A test case transformation
    • A document mapping CAP person data to VIVO-ISF
    • A json transform utility to implement the mapping
    • Retrieving CAP profile data from the CAP API
  • Also investigate CAP publication data
    • consider mapping to both VIVO-ISF and simple BibFrame

Stanford CAP Resources

  • https://cap.stanford.edu/cap-api/console

VIVO Resources

Installation

Add this line to your application's Gemfile:

gem 'cap-vivo-mapper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cap-vivo-mapper

Usage

Setup

MongoDB
# The following worked on an Ubuntu desktop system
sudo apt-get install mongodb
4store
# The following worked on an Ubuntu desktop system
sudo apt-get install 4store
sudo 4store status
sudo service 4store stop
sudo service 4store status
# Only setup the backend once (it erases existing data)
sudo 4s-backend-setup cap_vivo
sudo 4s-backend cap_vivo
sudo 4s-httpd -h # describes the options used below
sudo 4s-httpd -p 9000 -U -s -1 cap_vivo

4store should be running a SPARQL server on the cap_vivo knowledge base; take a look at http://localhost:9000/status/.

Configure and Run Conversion

Use the example configuration in https://github.com/sul-dlss/cap-vivo-mapper/blob/master/.env_example

mkdir -p ~/tmp/cap_vivo/log
cd ~/tmp/cap_vivo
project='https://raw.githubusercontent.com/sul-dlss/cap-vivo-mapper'
wget ${project}/master/.env_example
cp .env_example .env
vim .env  # hopefully this file is self explanatory
# If it's not already installed, install the the gem.
gem install cap-vivo-mapper
# Run it overnight, unless you have a high bandwidth connection to the
# CAP API and a fast system.  So, watch it for any immediate failures;
# if it's running, then leave it overnight.  The expected runtime is on
# the order of hours.
cap2vivo

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sul-dlss/cap-vivo-mapper.

License

Copyright 2015 The Board of Trustees of the Leland Stanford Junior University.

The gem is available as open source under the terms of the Apache 2 License.

FAQs

Package last updated on 04 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc