-
Notifications
You must be signed in to change notification settings - Fork 1
Home
hchiba1 edited this page Oct 1, 2017
·
10 revisions
Search triples by specifying the subject
spang uniprot -S tax:511145
Get abbreviated form using prefix definitions
spang uniprot -S tax:511145 -a
Get sorted results
spang uniprot -S tax:511145 -a | sort
Search by specifying the subject and predicate
spang uniprot -S tax:511145 -P up:otherName -a
Search by specifying the object
spang uniprot -O tax:511145 -a
Get the list of graphs
spang mbgd -G
Search from a specific graph and limit the output
spang mbgd -F mbgdr:uniprot-goa -L10
Count
spang mbgd -F mbgdr:uniprot-goa -N
Print the internally generated SPARQL query and quit
spang mbgd -F mbgdr:uniprot-goa -N -q
Make inference by specifying a rule set (only for Virtuoso)
spang mbgd -S tax:511145 -P rsfs:label -i ontologies -a
spang mbgd mbgdl:get_ortholog K9Z723
Users can additionally define the user-specific settings as follows.
cd ~
mkdir .spang
mkdir .spang/template
vi .spang/endpoints
vi .spang/prefix
vi .spang/template/example.rq
The user-specific settings overwrites the system-wide settings.
Endpoint aliases
- (system-wide settings) spang-*.*.*/etc/endpoints
- (user-specific settings) ~/.spang/endpoints
Prefix declarations
- (system-wide settings) spang-*.*.*/etc/prefix
- (user-specific settings) ~/.spang/prefix
SPARQL library
- (system-wide library) spang-*.*.*/etc/template/*
- (user-specific library) ~/.spang/template/*