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_00042

Proteins that bind a metal and are secreted

Use at

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

SELECT DISTINCT ?entry WHERE {
 values ?sloc {nextprot_cv:GO_0005576 nextprot_cv:SL-0243} # GO and SL values for secreted
 ?entry :isoform ?iso.
 ?iso :cellularComponent ?loc .
 ?loc :term /:childOf ?sloc .
 filter not exists {?sloc :negativeEvidence ?negev} # No negative localization evidence
 #filter not exists {?iso :cellularComponent /:term nextprot_cv:GO_0070062 .
					 #filter not exists {?iso :cellularComponent /:term /:childOf nextprot_cv:SL-0243 .}
					#} # filters out extracellular exosome only location (2758 entries)
 ?iso :goMolecularFunction / :term /:childOf nextprot_cv:GO_0046872 . # metal-binding
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?entry"):::projected 
  v4("?iso")
  v5("?loc")
  v2("?negev")
  v3("?sloc")
  a1((" "))
  a2((" "))
  a3((" "))
  c7([":terminology/GO_0046872"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":negativeEvidence"-->  e0v2
    e0v2("?negev"):::projected 
    e0v1("?sloc"):::projected 
  end
  f0--EXISTS--> f0e0
  f0 --> v3
  f0 --> c1
  f0 --> v2
  v3 --":negativeEvidence"-->  v2
  bind1[/VALUES ?sloc/]
  bind1-->v3
  bind10([":terminology/GO_0005576"])
  bind10 --> bind1
  bind11([":terminology/SL-0243"])
  bind11 --> bind1
  v3 --":isoform"-->  v4
  v4 --":cellularComponent"-->  v5
  v5 --":term"-->  a1
  a1 --":childOf"-->  v3
  v4 --":goMolecularFunction"-->  a2
  a2 --":term"-->  a3
  a3 --":childOf"-->  c7