Composition Searches

Composition Searches

Search for compositions where only basetype is known e.g. Hex, HexNAc, dHex.

select distinct ?c ?hexnac ?hex ?dhex ?neuac ?neugc ?id #?neugc #?pent ?s #?p ?xyl ?hexa 
where {   
  ?c  a glycan:has_composition , gco:ReferencedSaccharide , glycan:Saccharide     

  OPTIONAL  { ?c glycan:has_dhex ?dhex      
  { ?c glycan:has_hexnac ?hexnac }      
  { ?c glycan:has_hex ?hex }     
  { ?c glycan:has_neuac ?neuac } 
  { ?c glycan:has_neuac ?neugc } 
  { ?c glycan:has_unicarbkb_comp_id ?id }
}      
  
  FILTER(regex(str(?c), ".*HexNAc.*")) 
}  
  group by  ?c ?hexnac ?hex ?dhex ?neuac ?neugc ?id

Above is base type this can be used for residue defined compositions (TO DO)

select distinct ?c ?b ?m 
where {   ?c ?b ?m .
  
  FILTER(regex(str(?c), ".*GAL.*")) 
}  
  group by  ?c ?b ?m 
  limit 5

Last updated