@prefix ex: <https://glyconnect.expasy.org/sparql> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:3 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Select all glycosylations (glycan, protein, position) with their reference articles"@en ;
    sh:prefixes ex: ;
    sh:select """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 .
}""" ;
    schema:target ex: .

