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_00137

Proteins that potentially interact with Class I PDZ domains (whose C-terminal sequence has a PDZ-binding consensus)

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :matureProtein / :end ?mend.
 ?iso :sequence / :chain ?seq.
 filter (strlen(?seq) > 2).
 bind (substr(?seq, ?mend-2, 3) as ?cterseq).
 filter(regex(?cterseq,'[ST].[ILV]')). # short motif consensus for C-terminal PDZ-binding
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v6("?cterseq")
  v3("?entry"):::projected 
  v4("?iso")
  v5("?mend")
  v2("?seq")
  a1((" "))
  a2((" "))
  f0[["regex(?cterseq,'#91;ST#93;.#91;ILV#93;')"]]
  f0 --> v6
  f1[["string-length(?seq) > '2^^xsd:integer'"]]
  f1 --> v2
  v3 --":isoform"-->  v4
  v4 --":matureProtein"-->  a1
  a1 --":end"-->  v5
  v4 --":sequence"-->  a2
  a2 --":chain"-->  v2
  bind2[/"substring(?seq,?mend + '-2^^xsd:integer','3^^xsd:integer')"/]
  v2 --o bind2
  v5 --o bind2
  bind2 --as--o v6