A set of SPARQL examples that are used in different SIB resources
Check there are no entries which do not have a valid protein existence value
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry a :Entry.
?entry :existence ?pe.
filter ( ?pe not in (:Evidence_at_protein_level,:Evidence_at_transcript_level,:Inferred_from_homology,:Predicted,:Uncertain ))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?pe")
c7([":Entry"]):::iri
f0[["?pe != ':Evidence_at_protein_level'?pe != ':Evidence_at_transcript_level'?pe != ':Inferred_from_homology'?pe != ':Predicted'?pe != ':Uncertain'"]]
f0 --> v1
v2 --"a"--> c7
v2 --":existence"--> v1