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_09674

Check there are no entries with expression profile annotations with evidence from microarray with an expression level other than detected or not detected

Use at

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

select distinct ?entry where {
  ?entry :isoform ?iso.
  ?iso :expressionProfile /:evidence ?ev.
  ?ev :evidenceCode cv:ECO_0000104. # microarray
  ?ev :expressionLevel ?level
  filter ( ?level not in (:Negative, :Positive))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v4("?ev")
  v3("?iso")
  v1("?level")
  a1((" "))
  c7([":terminology/ECO_0000104"]):::iri 
  f0[["?level != ':Negative'?level != ':Positive'"]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":expressionProfile"-->  a1
  a1 --":evidence"-->  v4
  v4 --":evidenceCode"-->  c7
  v4 --":expressionLevel"-->  v1