-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
41 lines (35 loc) · 1.41 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SPANG is an easy-to-use command-line SPARQL client.
Getting started:
$ git clone https://github.com/dbcls/spang
$ ./spang/bin/spang # See if the main spang command works
Set path to the 'spang/bin' directly.
Examples:
- Using SPARQL shortcuts
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
- Using SPARQL templates
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
- Typing SPARQL directly
spang mbgd 'select * where {?s ?p ?o} limit 10'
- Using SPARQL code saved in clipboard
pbpaste | spang uniprot -
Copyright (c) 2015-2019 Hirokazu Chiba
Released under the MIT license
http://opensource.org/licenses/mit-license.php