sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_00109

rq turtle/ttl

Proteins that have a MS-identified proteotypic peptide that maps partly or fully into a signal sequence

Use at

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

SELECT DISTINCT ?entry ?overlap WHERE {
 ?entry :isoform ?iso.
 #get Signal position (start is always 1)
 ?iso :signalPeptide [:end ?s2] .
 ?iso :peptideMapping ?pm .
 ?pm :proteotypic true .
 #get peptide position
 ?pm :start ?p1 ; :end ?p2 .
 #match positions
 filter ( ?p1 < ?s2 )
 bind ( if(?p2<?s2, ?p2, ?s2) - ?p1 as ?overlap) .
 filter(?overlap > 2)
}
:isoform
:end
:signalPeptide
:peptideMapping
:proteotypic
:start
:end
as
?entry
?iso
?overlap
?p1
?p2
?pm
?s2
true^^xsd:boolean
?overlap > '2^^xsd:integer'
?p1 < ?s2
if(?p2 < ?s2,?p2,?s2) - ?p1