A set of SPARQL examples that are used in different SIB resources
Proteins with at least one HPA antibody that are located in the peroxisome
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
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?entry"):::projected
v5("?iso")
v1("?loc")
v6("?map")
v2("?negev")
v3("?peroxiloc")
a1((" "))
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":negativeEvidence"--> e0v2
e0v1("?loc"):::projected
e0v2("?negev"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --":negativeEvidence"--> v2
bind1[/VALUES ?peroxiloc/]
bind1-->v3
bind10([":terminology/GO_0005777"])
bind10 --> bind1
bind11([":terminology/SL-0204"])
bind11 --> bind1
v4 --":isoform"--> v5
v5 --":antibodyMapping"--> v6
v5 --":cellularComponent"--> v1
v1 --":term"--> a1
a1 --":childOf"--> v3