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_00076

Proteins which are located in mitochondrion and have at least one HPA antibody and exist in at least one proteome identification sets

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 ?iso.
 ?iso :cellularComponent ?loc .
 ?loc :term /:childOf ?mitoloc .
 filter not exists { ?loc :negativeEvidence ?negev. } # No negative localization evidence
 ?iso :antibodyMapping ?abmap.
 ?iso :peptideMapping ?pepmap.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v6("?abmap")
  v4("?entry"):::projected 
  v5("?iso")
  v1("?loc")
  v3("?mitoloc")
  v2("?negev")
  v7("?pepmap")
  a1((" "))
  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"-->  v5
  v5 --":cellularComponent"-->  v1
  v1 --":term"-->  a1
  a1 --":childOf"-->  v3
  v5 --":antibodyMapping"-->  v6
  v5 --":peptideMapping"-->  v7