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_00078

Proteins which have been identified in at least one proteomics set and that 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 .}
 #					} # you can uncomment this to filters out extracellular exosome only location (2240 entries), most of them evidenced only by large-scale proteomic analysis
 ?iso :peptideMapping ?map.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?entry"):::projected 
  v4("?iso")
  v5("?loc")
  v6("?map")
  v2("?negev")
  v3("?sloc")
  a1((" "))
  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 --":peptideMapping"-->  v6