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_09068

Check there are no entries with phenotypic variation annotations with evidence NOT from neXtProt

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>

select distinct ?entry ?src where {
  ?entry :isoform ?iso.
  ?iso :proteoform /:phenotypicVariation /:evidence /:assignedBy ?src.
  filter ( ?src not in (source:NextProt))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v3("?iso")
  v1("?src"):::projected 
  a1((" "))
  a2((" "))
  a3((" "))
  f0[["?src != ':source/NextProt'"]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":proteoform"-->  a1
  a1 --":phenotypicVariation"-->  a2
  a2 --":evidence"-->  a3
  a3 --":assignedBy"-->  v1