A set of SPARQL examples that are used in different SIB resources
Proteins that are acetylated and methylated and located in the nucleus
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
SELECT DISTINCT ?entry WHERE {
values ?nucloc {nextprot_cv:GO_0005634 nextprot_cv:SL-0191} # GO and SL values for nucleus
?entry :isoform ?iso.
?iso :cellularComponent ?loc .
?loc :term/:childOf ?nucloc.
filter not exists {?loc :negativeEvidence ?negev} # No negative localization evidence
?iso :uniprotKeyword/:term nextprot_cv:KW-0007,nextprot_cv:KW-0488. # acetylated and methylated
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?entry"):::projected
v5("?iso")
v1("?loc")
v2("?negev")
v3("?nucloc")
a1((" "))
a2((" "))
c8([":terminology/KW-0488"]):::iri
c7([":terminology/KW-0007"]):::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 ?nucloc/]
bind1-->v3
bind10([":terminology/GO_0005634"])
bind10 --> bind1
bind11([":terminology/SL-0191"])
bind11 --> bind1
v4 --":isoform"--> v5
v5 --":cellularComponent"--> v1
v1 --":term"--> a1
a1 --":childOf"--> v3
v5 --":uniprotKeyword"--> a2
a2 --":term"--> c7
a2 --":term"--> c8