A set of SPARQL examples that are used in different SIB resources
glycan to epi set
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX glystreem: <https://glyconnect.expasy.org/rdf/structures#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?glycan ?glycanid ?type ?core ?epiSet
WHERE {
?glycan a glystreem:Glycan ;
glystreem:id ?glycanid ;
glystreem:glycan_type ?type ;
glystreem:glycan_core ?core ;
glystreem:hasEpitopeSet ?epiSet .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?core"):::projected
v5("?epiSet"):::projected
v1("?glycan"):::projected
v2("?glycanid"):::projected
v3("?type"):::projected
c2([https://glyconnect.expasy.org/rdf/structures#Glycan]):::iri
v1 --"a"--> c2
v1 --https://glyconnect.expasy.org/rdf/structures#id--> v2
v1 --https://glyconnect.expasy.org/rdf/structures#glycan_type--> v3
v1 --https://glyconnect.expasy.org/rdf/structures#glycan_core--> v4
v1 --https://glyconnect.expasy.org/rdf/structures#hasEpitopeSet--> v5