Skip to content

Instantly share code, notes, and snippets.

@ktym
ktym / sparql.rb
Last active June 20, 2024 20:45
SPARQL query interface
#!/usr/bin/env ruby
require "rubygems"
require "net/http"
require "uri"
require "cgi"
require "json" # gem install json
class SPARQL
@ktym
ktym / refseq2rdf.rb
Created September 12, 2012 04:30
Convert RefSeq genome entry into RDF/Turtle using FALDO (BH12)
#!/usr/bin/env ruby-1.9
require 'rubygems'
require 'bio'
require 'json'
require 'securerandom'
# [TODO] true to combine the result with the EdgeDB
if $DEBUG
$edgedb = true
@ktym
ktym / refseq2ttl.rb
Last active December 17, 2015 03:59
refseq2ttl.rb version 8 (migrated into https://github.com/dbcls/rdfsummit/tree/master/insdc2ttl in 2014)
#!/usr/bin/env ruby
require 'rubygems'
require 'uri'
require 'bio'
require 'json'
require 'securerandom'
# [TODO] integrate this into BioRuby
module Bio
@YoshihitoAso
YoshihitoAso / BigchainDB_Install.txt
Last active September 1, 2016 21:51
Ubuntu14.04環境へのBigchainDBのインストール方法
1)RethinkDB Serverをインストールする。
以下のコマンドを実行していけばインストール可能。
$ source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
$ wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install rethinkdb
起動してみる。
$ rethinkdb