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_00036

Proteins that are oxidoreductases and that bind to NAD/NADP

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :uniprotKeyword /:term nextprot_cv:KW-0560. #oxidoreductase
 ?iso :uniprotKeyword /:term ?kw
 filter( ?kw in (nextprot_cv:KW-0520,nextprot_cv:KW-0521)) # NAD or NADP
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v3("?iso")
  v1("?kw")
  a1((" "))
  a2((" "))
  c6([":terminology/KW-0560"]):::iri 
  list0c2([":terminology/KW-0521"]):::iri 
  list0c1([":terminology/KW-0520"]):::iri 
  list0c1 --o f0
  list0c2 --o f0
  f0[[" in "]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":uniprotKeyword"-->  a1
  a1 --":term"-->  c6
  v3 --":uniprotKeyword"-->  a2
  a2 --":term"-->  v1