sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

neXtProt/NXQ_09425

Check there are no entries which do not have a valid protein existence value

Use at

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