šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

bel-search-sqlite

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bel-search-sqlite

1.1.0
Rubygems
Version published
Maintainers
1
Created
Source

This implements a Resource Search plugin for bel.rb backed by a Sqlite3 database. The database utilizes Sqlite's FTS tables to provide full-text query over BEL Resource concepts.

Features

  • Plugs in to bel.rb as a Resource Search API implementation.
  • Efficient full-text searching.

System Requirement

  • SQLite 3

Todo

  • Implement sqlite3 database creation as an executable. Currently code to build the sqlite3 FTS database exists at rdf-misc.

How can I use this?

bel.rb provides an approach to plugins that is meant to be uncomplicated. The following steps will get you started:

  • Build gem with gem build .gemspec and install with gem install bel-search-sqlite-1.0.0.gem.
  • On JRuby, build gem with gem build .gemspec-java and install with gem install bel-search-sqlite-1.0.0-java.gem.
  • Now you have this plugin installed and ready for use in bel.rb!
  • With bel.rb installed run the command bel plugins to list available plugins.
$ bin/bel plugins
Resource Search plugins
-----------------------

 Name:        Resource search on sqlite FTS
 Description: A resource search implementation using sqlite FTS capabilities.
  • To create the search implementation in Ruby try:
search_plugin = BEL::Resource::Search.plugins[:sqlite]

search_plugin.create_search(:database_file => 'resources.db')
  • Enjoy FTS goodness with Sqlite!

Development

branches

  • master branch

    • Contains stable code. Releases are created from this branch using a tag (e.g. MAJOR.MINOR.PATCH).
  • next branch

    • Contains unstable code. Commits should be merged into master after it stabilizes.

releases

Releases of bel-search-sqlite should follow these steps:

  • Update the version in the VERSION file.

  • Add changes for this version to the CHANGELOG file. This file is modelled after http://keepachangelog.com/.

  • Push the changes for VERSION and CHANGELOG on the master branch.

  • Ensure the master branch has all of the required changes.

  • Create a git tag, named after the version, on the master branch. Push this tag to GitHub.

  • Create the Ruby and Java RubyGem for bel-search-sqlite.

gem build .gemspec

gem build .gemspec-java

  • Create a release on GitHub for this version and attach the gem files.

  • Push gems to RubyGems.

gem push bel-search-sqlite-VERSION.gem

gem push bel-search-sqlite-VERSION-java.gem

FAQs

Package last updated on 13 Jan 2017

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