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_00035

Proteins located in the mitochondrion and which are enzymes

Use at

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

SELECT DISTINCT ?entry WHERE {
 values ?mitoloc {nextprot_cv:SL-0173 nextprot_cv:GO_0005739} # SL and GO values for mitochondrion
 ?entry :isoform / :enzymeClassification ?_ .
 ?entry :isoform ?iso.
 ?iso :cellularComponent ?loc .
 ?loc :term / :childOf ?mitoloc.
 filter not exists { ?loc :negativeEvidence ?negev. } # No negative localization evidence
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?_")
  v4("?entry"):::projected 
  v6("?iso")
  v1("?loc")
  v3("?mitoloc")
  v2("?negev")
  a1((" "))
  a2((" "))
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":negativeEvidence"-->  e0v2
    e0v1("?loc"):::projected 
    e0v2("?negev"):::projected 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> v2
  v1 --":negativeEvidence"-->  v2
  bind1[/VALUES ?mitoloc/]
  bind1-->v3
  bind10([":terminology/SL-0173"])
  bind10 --> bind1
  bind11([":terminology/GO_0005739"])
  bind11 --> bind1
  v4 --":isoform"-->  a1
  a1 --":enzymeClassification"-->  v5
  v4 --":isoform"-->  v6
  v6 --":cellularComponent"-->  v1
  v1 --":term"-->  a2
  a2 --":childOf"-->  v3