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_00135

Proteins involved in both Wnt and Hippo signaling pathways

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso .
 # nextprot_cv:GO:0016055 wnt pathway
 ?iso :goBiologicalProcess ?func1 .
 ?func1 :term / :childOf nextprot_cv:GO_0016055.
 filter not exists { ?func1 :negativeEvidence ?negev. } # No negative function evidence
 # nextprot_cv:GO:0035329 Hippo pathway
 ?iso :goBiologicalProcess ?func2 .
 ?func2 :term / :childOf nextprot_cv:GO_0035329.
 filter not exists { ?func2 :negativeEvidence ?negev. } # No negative function evidence
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?entry"):::projected 
  v3("?func1")
  v1("?func2")
  v5("?iso")
  v2("?negev")
  a1((" "))
  a2((" "))
  c7([":terminology/GO_0035329"]):::iri 
  c6([":terminology/GO_0016055"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":negativeEvidence"-->  e0v2
    e0v1("?func2"):::projected 
    e0v2("?negev"):::projected 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> v2
  v1 --":negativeEvidence"-->  v2
  f1[["not  "]]
  subgraph f1e1["Exists Clause"]
    e1v1 --":negativeEvidence"-->  e1v2
    e1v1("?func1"):::projected 
    e1v2("?negev"):::projected 
  end
  f1--EXISTS--> f1e1
  f1 --> v3
  f1 --> c1
  f1 --> v2
  v3 --":negativeEvidence"-->  v2
  v4 --":isoform"-->  v5
  v5 --":goBiologicalProcess"-->  v3
  v3 --":term"-->  a1
  a1 --":childOf"-->  c6
  v5 --":goBiologicalProcess"-->  v1
  v1 --":term"-->  a2
  a2 --":childOf"-->  c7