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_00234

Proteins with at least two proteotypic synthetic peptides from SRMAtlas of at least 9 amino acids in length

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :srmPeptideMapping ?srm .
 ?srm :start ?ps; :end ?pe .
 filter(?pe - ?ps + 1 >= 9)
 ?srm :proteotypic true .
 ?srm :peptideName ?pepid .
}
group by ?entry having(count(distinct ?pepid) > 1)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v7("?_anon_524857e97b124dceaa8a4ecc8d1a18272488")
  v3("?entry"):::projected 
  v4("?iso")
  v1("?pe")
  v6("?pepid")
  v2("?ps")
  v5("?srm")
  a1((" "))
  c8(["true^^xsd:boolean"]):::literal 
  f0[[" > '1^^xsd:integer'"]]
  f0 --> a1
  f1[["?pe - ?ps + '1^^xsd:integer' >= '9^^xsd:integer'"]]
  f1 --> v1
  f1 --> v2
  v3 --":isoform"-->  v4
  v4 --":srmPeptideMapping"-->  v5
  v5 --":start"-->  v2
  v5 --":end"-->  v1
  v5 --":proteotypic"-->  c8
  v5 --":peptideName"-->  v6
  bind3[/"count(?pepid)"/]
  v6 --o bind3
  bind3 --as--o v7