sparql-examples

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

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

sparql3

Select all glycosylations (glycan, protein, position) with their reference articles

Use at

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

SELECT distinct ?glycoprotein ?isoform ?position ?structure ?image  ?citation ?pmid
where {
?glycosite faldo:reference ?isoform .
?glycosite faldo:position ?position .
?specificglycosite faldo:location ?glycosite .
?glycoprotein glycan:glycosylated_at ?specificglycosite .
?structure glycan:glycosylates_at ?specificglycosite .
?structure foaf:depiction ?image .
?refconjugate glycan:has_protein_part ?glycoprotein .
?refconjugate glycan:published_in ?citation . 
?citation foaf:primaryTopicOf ?pmid .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v9("?citation"):::projected 
  v5("?glycoprotein"):::projected 
  v1("?glycosite")
  v7("?image"):::projected 
  v2("?isoform"):::projected 
  v10("?pmid"):::projected 
  v3("?position"):::projected 
  v8("?refconjugate")
  v4("?specificglycosite")
  v6("?structure"):::projected 
  v1 --"faldo:reference"-->  v2
  v1 --"faldo:position"-->  v3
  v4 --"faldo:location"-->  v1
  v5 --"glycan:glycosylated_at"-->  v4
  v6 --"glycan:glycosylates_at"-->  v4
  v6 --"foaf:depiction"-->  v7
  v8 --"glycan:has_protein_part"-->  v5
  v8 --"glycan:published_in"-->  v9
  v9 --"foaf:primaryTopicOf"-->  v10