sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_00021

rq turtle/ttl

Proteins with at least one HPA antibody that are located in the peroxisome

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>

SELECT DISTINCT ?entry WHERE {
 values ?peroxiloc {nextprot_cv:GO_0005777 nextprot_cv:SL-0204} # GO and SL values for peroxisome

 ?entry :isoform ?iso.
 ?iso :antibodyMapping ?map.
 ?iso :cellularComponent ?loc .
 ?loc :term /:childOf ?peroxiloc. # peroxisomal
 filter not exists { ?loc :negativeEvidence ?negev. } # No negative localization evidence
}
:negativeEvidence
:isoform
:antibodyMapping
:cellularComponent
:term
:childOf
EXISTS
Exists Clause
:negativeEvidence
?negev
?loc
?entry
?iso
?loc
?map
?negev
?peroxiloc
not
c1
VALUES ?peroxiloc
:terminology/GO_0005777
:terminology/SL-0204