A set of SPARQL examples that are used in different SIB resources
Proteins with a DNA-binding region but not located in the nucleus
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?iso.
?entry :gene / :name / rdfs:label ?gen .
?iso :dnaBindingRegion ?dnab.
filter not exists { ?entry :isoform / :cellularComponent /:term /:childOf nextprot_cv:SL-0191} # SL for nucleus
filter not exists { ?entry :isoform / :cellularComponent /:term /:childOf nextprot_cv:GO_0005634} # GO for nucleus
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?dnab")
v1("?entry"):::projected
v3("?gen")
v2("?iso")
a7((" "))
a8((" "))
a4((" "))
a5((" "))
a6((" "))
a1((" "))
a2((" "))
a3((" "))
c5([":terminology/GO_0005634"]):::iri
c6([":terminology/SL-0191"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":cellularComponent"--> e0a2
e0a2 --":term"--> e0a3
e0a3 --":childOf"--> e0c5
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
e0a3((" ")):::projected
e0c5([":terminology/GO_0005634"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> a3
f0 --> c4
f0 --> c5
v1 --":isoform"--> a1
a1 --":cellularComponent"--> a2
a2 --":term"--> a3
a3 --":childOf"--> c5
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --":isoform"--> e1a1
e1a1 --":cellularComponent"--> e1a2
e1a2 --":term"--> e1a3
e1a3 --":childOf"--> e1c5
e1v1("?entry"):::projected
e1a1((" ")):::projected
e1a2((" ")):::projected
e1a3((" ")):::projected
e1c5([":terminology/SL-0191"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c1
f1 --> a4
f1 --> c2
f1 --> a5
f1 --> c3
f1 --> a6
f1 --> c4
f1 --> c6
v1 --":isoform"--> a4
a4 --":cellularComponent"--> a5
a5 --":term"--> a6
a6 --":childOf"--> c6
v1 --":isoform"--> v2
v1 --":gene"--> a7
a7 --":name"--> a8
a8 --"rdfs:label"--> v3
v2 --":dnaBindingRegion"--> v4