A set of SPARQL examples that are used in different SIB resources
Proteins with sequences 100% identical to other proteins
PREFIX : <http://nextprot.org/rdf/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform / :sequence / :chain ?chain1.
?entry2 :isoform / :sequence / :chain ?chain2.
filter ( (?chain1 = ?chain2) && (?entry != ?entry2))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?chain1")
v2("?chain2")
v3("?entry"):::projected
v4("?entry2")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
f0[["?chain1 = ?chain2?entry != ?entry2"]]
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
v3 --":isoform"--> a1
a1 --":sequence"--> a2
a2 --":chain"--> v1
v4 --":isoform"--> a3
a3 --":sequence"--> a4
a4 --":chain"--> v2