A set of SPARQL examples that are used in different SIB resources
Proteins interacting with at least one protein which is located in the mitochondrion
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 / :interaction ?it .
?it :quality :GOLD . # remove this filter for lower quality interactions
?it :interactant ?interactant.
?interactant :isoform? / :cellularComponent ?loc .
# the question mark at :isoform allows to select also isoform-specific interactions
?loc :term / :childOf ?mitoloc.
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
v6("?interactant")
v5("?it")
v1("?loc")
v3("?mitoloc")
v2("?negev")
a1((" "))
a2((" "))
a3((" "))
c5([":GOLD"]):::iri
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 ?mitoloc/]
bind1-->v3
bind10([":terminology/SL-0173"])
bind10 --> bind1
bind11([":terminology/GO_0005739"])
bind11 --> bind1
v4 --":isoform"--> a1
a1 --":interaction"--> v5
v5 --":quality"--> c5
v5 --":interactant"--> v6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v6 --":isoform"--> a2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
a2 --":cellularComponent"--> v1
v1 --":term"--> a3
a3 --":childOf"--> v3