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_00015

Proteins with a PDZ domain that interact with at least one protein which is expressed in brain

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :region / :term nextprot_cv:DO-00477. #PDZ domain
 ?iso :binaryInteraction/:interactant/:isoform?/:detectedExpression/:term/:childOf nextprot_cv:TS-0095 #brain
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v2("?iso")
  a1((" "))
  a2((" "))
  a3((" "))
  a4((" "))
  a5((" "))
  a6((" "))
  c4([":terminology/DO-00477"]):::iri 
  c9([":terminology/TS-0095"]):::iri 
  v1 --":isoform"-->  v2
  v2 --":region"-->  a1
  a1 --":term"-->  c4
  v2 --":binaryInteraction"-->  a2
  a2 --":interactant"-->  a3
  subgraph union0[" Union "]
  subgraph union0l[" "]
    style union0l fill:#abf,stroke-dasharray: 3 3;
    a3 --":isoform"-->  a4
  end
  subgraph union0r[" "]
    style union0r fill:#abf,stroke-dasharray: 3 3;
  end
  union0r <== or ==> union0l
  end
  a4 --":detectedExpression"-->  a5
  a5 --":term"-->  a6
  a6 --":childOf"-->  c9