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_00043

Proteins that bind zinc and are not oxidoreductase and not involved in transcription

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-0479. # metal-binding
 ?iso :uniprotKeyword / :term nextprot_cv:KW-0862. # zinc
 filter not exists {?iso :uniprotKeyword / :term nextprot_cv:KW-0804} # transcription
 filter not exists {?iso :uniprotKeyword / :term nextprot_cv:KW-0560} # oxidoreductase
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v1("?iso")
  a3((" "))
  a4((" "))
  a2((" "))
  a1((" "))
  c4([":terminology/KW-0804"]):::iri 
  c3([":terminology/KW-0560"]):::iri 
  c7([":terminology/KW-0862"]):::iri 
  c6([":terminology/KW-0479"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":uniprotKeyword"-->  e0a1
    e0a1 --":term"-->  e0c3
    e0v1("?iso"):::projected 
    e0a1((" ")):::projected 
    e0c3([":terminology/KW-0560"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> a1
  f0 --> c2
  f0 --> c3
  v1 --":uniprotKeyword"-->  a1
  a1 --":term"-->  c3
  f1[["not  "]]
  subgraph f1e1["Exists Clause"]
    e1v1 --":uniprotKeyword"-->  e1a1
    e1a1 --":term"-->  e1c3
    e1v1("?iso"):::projected 
    e1a1((" ")):::projected 
    e1c3([":terminology/KW-0804"]):::iri 
  end
  f1--EXISTS--> f1e1
  f1 --> v1
  f1 --> c1
  f1 --> a2
  f1 --> c2
  f1 --> c4
  v1 --":uniprotKeyword"-->  a2
  a2 --":term"-->  c4
  v2 --":isoform"-->  v1
  v1 --":uniprotKeyword"-->  a3
  a3 --":term"-->  c6
  v1 --":uniprotKeyword"-->  a4
  a4 --":term"-->  c7