sparql-examples

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

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

sparql-examples1

Get all Glyconnect proteins their Uniprot reference isoform

Use at

PREFIX faldo: <http://biohackathon.org/resource/faldo#>
PREFIX glycan: <http://purl.jp/bio/12/glyco/glycan#>

SELECT distinct ?glycoprotein ?isoform
where {
?glycosite faldo:reference ?isoform .
?specificglycosite faldo:location ?glycosite .
?glycoprotein glycan:glycosylated_at ?specificglycosite .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?glycoprotein"):::projected 
  v1("?glycosite")
  v2("?isoform"):::projected 
  v3("?specificglycosite")
  v1 --"faldo:reference"-->  v2
  v3 --"faldo:location"-->  v1
  v4 --"glycan:glycosylated_at"-->  v3