SPARQLthon25/DDBJ

提供:TogoWiki

(版間での差分)
移動: 案内, 検索
(DDBJリソースの準備)
7行: 7行:
#* csv形式 https://docs.google.com/spreadsheets/d/1lcquFaRHHUs6weBd6_C6kgz6jBZ_HHYtnfgZx6vOeKA/gviz/tq?tqx=out:csv&headers=1&tq=SELECT%20A,B,C,D,F,G,H,I%20WHERE%20C%20IS%20NOT%20NULL
#* csv形式 https://docs.google.com/spreadsheets/d/1lcquFaRHHUs6weBd6_C6kgz6jBZ_HHYtnfgZx6vOeKA/gviz/tq?tqx=out:csv&headers=1&tq=SELECT%20A,B,C,D,F,G,H,I%20WHERE%20C%20IS%20NOT%20NULL
# ftdoc2ttl.rbでjsonを利用してOWL形式に変換
# ftdoc2ttl.rbでjsonを利用してOWL形式に変換
 +
* HUM, PRIのリソースはClass or Individiual ?
== json形式 例) DDBJ Division ==
== json形式 例) DDBJ Division ==

2014年10月28日 (火) 07:41時点における版

DDBJリソースの準備

  1. オントロジー定義情報のリソースをDDBJ HPからgoogle spreadsheetでIMPORTHTMLで取得、編集により用意
  2. Google Visualization APIを用いてデータ取得
  3. ftdoc2ttl.rbでjsonを利用してOWL形式に変換
* HUM, PRIのリソースはClass or Individiual ?

json形式 例) DDBJ Division

{"cols"=>
 [{"id"=>"A", "label"=>"feature", "type"=>"string"},
  {"id"=>"B", "label"=>"qualifier", "type"=>"string"},
  {"id"=>"C", "label"=>"value", "type"=>"string"},
  {"id"=>"D", "label"=>"label_en", "type"=>"string"},
  {"id"=>"F", "label"=>"label_ja", "type"=>"string"},
  {"id"=>"G", "label"=>"type_en", "type"=>"string"},
  {"id"=>"H", "label"=>"type_ja", "type"=>"string"},
  {"id"=>"I", "label"=>"uri", "type"=>"string"}],
"rows"=>
 [{"c"=>
    [{"v"=>"DIVISION"},
     {"v"=>"division"},
     {"v"=>"HUM"},
     {"v"=>"human"},
     {"v"=>"ヒト"},
     {"v"=>"taxonomic division"},
     {"v"=>"由来生物種に基づく分類"},
     {"v"=>"http://ddbj.nig.ac.jp/ontologies/nucleotide/division.HUM"}]},
  {"c"=>
    [{"v"=>"DIVISION"},
     {"v"=>"division"},
     {"v"=>"PRI"},
     {"v"=>"primates (other than human)"},
     {"v"=>"霊長類 (ヒトを除く)"},
     {"v"=>"taxonomic division"},
     {"v"=>"由来生物種に基づく分類"},
     {"v"=>"http://ddbj.nig.ac.jp/ontologies/nucleotide/division.PRI"}]},
  {"c"=>
    [{"v"=>"DIVISION"},
     {"v"=>"division"},
     {"v"=>"ROD"},
     {"v"=>"rodents"},
     {"v"=>"齧歯類"},
     {"v"=>"taxonomic division"},
     {"v"=>"由来生物種に基づく分類"},
     {"v"=>"http://ddbj.nig.ac.jp/ontologies/nucleotide/division.ROD"}]},
  {"c"=>
    [{"v"=>"DIVISION"},
     {"v"=>"division"},
     {"v"=>"MAM"},
     {"v"=>"mammals (other than primates and rodents)"},
     {"v"=>"哺乳類 (ヒト,霊長類,齧歯類を除く)"},
     {"v"=>"taxonomic division"},
     {"v"=>"由来生物種に基づく分類"},
     {"v"=>"http://ddbj.nig.ac.jp/ontologies/nucleotide/division.MAM"}]},
.
.
.
( 略)

参考

個人用ツール