Skip to content

Latest commit

 

History

History
49 lines (47 loc) · 1.87 KB

READMEja.md

File metadata and controls

49 lines (47 loc) · 1.87 KB

SPANG

SPANGは、UNIXコマンドライン環境で利用可能なSPARQLクライアントです。

Getting started

  • spang-0.4.5.tgzをダウンロードして、解凍します。
  • spang-0.4.5/binにコマンドパスを通します。
  • コマンドラインでspangとタイプすると、利用可能なオプションが表示されます。

Examples

  • SPARQLショートカットを使う
    spang uniprot -S tax:511145
    spang uniprot -S tax:511145 -a
    spang uniprot -S tax:511145 -q
    spang uniprot -S tax:511145 -f rdfxml
    spang uniprot -S tax:511145 -P up:otherName
    spang uniprot -S tax:511145 -P rdfs:subClassOf+/up:scientificName
    spang uniprot -P a -O up:Protein -N
    spang mbgd -L 10
    spang mbgd -G
    spang mbgd -O tax:511145 -G
    spang mbgd -F mbgdr:organism -O tax:511145
  • SPARQLテンプレートを使う
    spang uniprot taxtree_ancestor 511145 -vac
    spang uniprot taxtree_ancestor 511145 -f json
    spang chembl list_dataset -vac
    spang chembl count_each_graph -vac
    spang mbgd search_each_class 'cyanobacteri*' -vac
    spang mbgd search_with_class orthology:OrthologsCluster 'photosystem ii' -vac
    spang mbgd mbgdl:get_ortholog K9Z723 | spang uniprot -S 1 -P rdfs:label
    spang mbgd mbgdl:get_ortholog K9Z723 | spang uniprot uniprot_xref PDB
    spang mbgd path/to/query.rq
  • SPARQLを直接入力する
    spang mbgd 'select * where {?s ?p ?o} limit 10'
  • クリップボードにコピーしたSPARQLを実行する
    pbpaste | spang uniprot -

Reference

Hirokazu Chiba and Ikuo Uchiyama. SPANG: a SPARQL client supporting generation and reuse of queries for distributed RDF databases. BMC Bioinformatics, 18:93 (2017).


Copyright (c) 2015 Hirokazu Chiba
Released under the MIT license
http://opensource.org/licenses/mit-license.php