sparql-examples

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

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

NXQ_00076

rq turtle/ttl

Proteins which are located in mitochondrion and have at least one HPA antibody and exist in at least one proteome identification sets

Use at

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

SELECT DISTINCT ?entry WHERE {
 values ?mitoloc {nextprot_cv:SL-0173 nextprot_cv:GO_0005739} # SL and GO values for mitochondrion

 ?entry :isoform ?iso.
 ?iso :cellularComponent ?loc .
 ?loc :term /:childOf ?mitoloc .
 filter not exists { ?loc :negativeEvidence ?negev. } # No negative localization evidence
 ?iso :antibodyMapping ?abmap.
 ?iso :peptideMapping ?pepmap.
}
:negativeEvidence
:isoform
:cellularComponent
:term
:childOf
:antibodyMapping
:peptideMapping
EXISTS
Exists Clause
:negativeEvidence
?negev
?loc
?abmap
?entry
?iso
?loc
?mitoloc
?negev
?pepmap
not
c1
VALUES ?mitoloc
:terminology/SL-0173
:terminology/GO_0005739