まずは、様々なパスウェイデータベースの一覧を見てみましょう。
500 以上のデータベースが下記の分類でリストアップされています。
| # Dockerfile for https://github.com/dbcls/sparqlist | |
| FROM ubuntu:16.04 | |
| ARG node_version=v7.9.0 | |
| RUN apt-get -qq update && apt-get -qq install -y \ | |
| pkg-config \ | |
| sudo \ | |
| curl \ |
| #!/usr/bin/env ruby-2.3 | |
| =begin | |
| # SPARQL endpoint | |
| https://stirdf.jglobal.jst.go.jp/sparql | |
| # SPARQL query | |
| select * | |
| where { | |
| ?term a skos:Concept ; |
まずは、様々なパスウェイデータベースの一覧を見てみましょう。
500 以上のデータベースが下記の分類でリストアップされています。
| #!/usr/bin/env ruby | |
| # | |
| # % gem install linkeddata | |
| # % lodconvert.rb -h | |
| # % lodconvert.rb [-i input_format] [-o output_format] inputfile > outputfile | |
| # | |
| require 'rubygems' | |
| require 'linkeddata' | |
| require 'getoptlong' |
| require 'json' | |
| def metadatajson | |
| json = JSON.parse(' | |
| { | |
| "Name": "", | |
| "Description": "", | |
| "HrefAppSession": "", | |
| "Properties": [ | |
| { |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <html> | |
| <head> | |
| <!-- Twitter Bootstrap http://getbootstrap.com/2.3.2/ を取得してインストール --> | |
| <link rel="stylesheet" type="text/css" href="bootstrap.css"/> | |
| <!-- jQuery http://jquery.com/ を取得してインストール --> | |
| <script src="jquery.min.js"></script> | |
| <script> | |
| // SPARQL 検索を行う query() 関数を定義 |
| class Player | |
| def play_turn(warrior) | |
| # cool code goes here | |
| @health ||= warrior.health | |
| if warrior.feel.captive? | |
| warrior.rescue! | |
| elsif warrior.feel.enemy? | |
| warrior.attack! | |
| else | |
| if warrior.health < 20 and !(warrior.health < @health) |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <html> | |
| <head> | |
| <!-- Twitter Bootstrap http://getbootstrap.com/2.3.2/ を取得してインストール --> | |
| <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css"/> | |
| <!-- D3.js http://d3js.org/ を取得してインストール --> | |
| <script src="lib/d3/d3.v3.min.js"></script> | |
| <script> | |
| function query() { |
| #!/usr/bin/env ruby | |
| # | |
| # Taxonomy ontology generator | |
| # | |
| # Copyright (C) 2013, 2014 Toshiaki Katayama <ktym@dbcls.jp> | |
| # | |
| # Version: Jan 29, 2014 | |
| # | |
| # Usage: | |
| # |
| #!/usr/bin/env ruby | |
| # | |
| # Usage: | |
| # DAS XML for http://togogenome.org/das/645657/features?segment=NC_017196.1:1,100000 can be generated by | |
| # % ruby sparql2das.rb 645657 features segment=NC_017196.1:1,100000 | |
| # With ruby -d option, you'll see debug massages with pretty formatted XML (will miss <?xml> tag though) | |
| # | |
| # TODO: | |
| # Wrap as an Rack app and add X-DAS-* HTTP headers | |
| # |