SDR CLI is a command line tool that wraps the Geocombine
utility to manage metadata for the Spatial Data Repository (SDR).
Install the gem and add to the application's Gemfile by executing:
$ bundle add sdr_cli
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install sdr_cli
sdr-cli audit
compares a local NYU metadata repo with what's available in NYU GeoServer instances- Example:
sdr-cli audit --directory tmp/opengeometadata/edu.nyu --destination tmp
- Example:
sdr-cli clone
clones all OGM repositories or pass --repo to clone a specific repositorysdr-cli help [COMMAND]
describe available commands or one specific commandsdr-cli index
index a directory of geospatial documents to Solrsdr-cli pull
updates all OGM repositories or pass --repo to update a specific repositorysdr-cli transform
transforms a collection of GeoBlacklight 1.0 documents to OGM Aardvark
-
After checking out the project, copy
.env.example
to.env
. These variables will inform thesolr_wrapper
gem how to start up a Solr instance when running the test suite.$ cp .env.example .env
-
Install the neccesary java and ruby versions as well as ruby gems:
$ asdf install $ bundle install
-
Then run the test suite with the following command:
$ bundle exec rake
Bug reports and pull requests are welcome on GitHub at https://github.com/NYULibraries/sdr-cli.
The gem is available as open source under the terms of the MIT License.