sparql-examples

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

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

NXQ_00060

rq turtle/ttl

Proteins which have one or more negatively charged residue in a transmembrane domain

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :transmembraneRegion ?tm.
 ?tm :start ?tmstart ; :end ?tmend.
 ?iso :sequence /:chain ?chain.
 bind (substr(?chain, ?tmstart, ?tmend - ?tmstart + 1) as ?tmseq)
 filter (regex(?tmseq, '([DE]+.*[^DE]){1,}')) # Change the 1 for the number of acidic residues required (5 seems to be the max)
}
:isoform
:transmembraneRegion
:start
:end
:sequence
:chain
as
?chain
?entry
?iso
?tm
?tmend
?tmseq
?tmstart
regex(?tmseq,'([DE]+.*[^DE]){1,}')
substring(?chain,?tmstart,?tmend - ?tmstart + '1^^xsd:integer')