A set of SPARQL examples that are used in different SIB resources
Check there are no entries which are PE2-PE4 with a mutagenesis annotation with GOLD evidence assigned by neXtProt
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
select distinct ?entry where {
?entry a :Entry.
?entry :existence ?pe.
filter ( ?pe not in (:Evidence_at_protein_level,:Uncertain ))
?entry :isoform ?iso .
?iso :mutagenesis /:evidence ?ev.
?ev :assignedBy source:NextProt.
?ev :quality :GOLD.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v4("?ev")
v3("?iso")
v1("?pe")
a1((" "))
c4([":Entry"]):::iri
c12([":GOLD"]):::iri
c10([":source/NextProt"]):::iri
f0[["?pe != ':Evidence_at_protein_level'?pe != ':Uncertain'"]]
f0 --> v1
v2 --"a"--> c4
v2 --":existence"--> v1
v2 --":isoform"--> v3
v3 --":mutagenesis"--> a1
a1 --":evidence"--> v4
v4 --":assignedBy"--> c10
v4 --":quality"--> c12