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_00067

Proteins with alternative acetylation or Ubl conjugation (SUMO or Ubiquitin) at the same positions

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :crossLink /:start ?ptmpos.
 ?iso :modifiedResidue ?ptm.
 ?ptm :start ?ptmpos.
 ?ptm rdfs:comment ?comment.
 # We use this filter to select acetylations
 filter regex(?comment, "acetyl","i")
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?comment")
  v2("?entry"):::projected 
  v3("?iso")
  v5("?ptm")
  v4("?ptmpos")
  a1((" "))
  f0[["regex(?comment,'acetyl','i')"]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":crossLink"-->  a1
  a1 --":start"-->  v4
  v3 --":modifiedResidue"-->  v5
  v5 --":start"-->  v4
  v5 --"rdfs:comment"-->  v1