Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created March 25, 2014 15:16
Show Gist options
  • Save jctoledo/9763950 to your computer and use it in GitHub Desktop.
Save jctoledo/9763950 to your computer and use it in GitHub Desktop.
range of minimum cycle sizes that belong to ligand neighbourhoods
select distinct STR(?size) as ?s
from <http://bio2rdf.org/rna_cycles_pdb>
where{
?a a <http://bio2rdf.org/pdb_vocabulary:Experiment>.
?mcb <http://bio2rdf.org/narf_vocabulary:derived_from> ?a.
?a <http://bio2rdf.org/pdb_vocabulary:hasPart> ?cse.
?cse a <http://bio2rdf.org/pdb_vocabulary:ChemicalSubstanceExtraction>.
?cse <http://bio2rdf.org/pdb_vocabulary:hasProduct> ?polymer.
?polymer a <http://bio2rdf.org/pdb_vocabulary:Polymer>.
?residue <http://bio2rdf.org/pdb_vocabulary:isPartOf> ?polymer.
?lh a <http://bio2rdf.org/lighood_vocabulary:ligand_neighbourhood>.
?lh <http://bio2rdf.org/lighood_vocabulary:has_member> ?residue.
?cyc <http://bio2rdf.org/narf_vocabulary:has_part> ?residue.
?cyc a <http://bio2rdf.org/narf_vocabulary:cycle>.
?cyc <http://bio2rdf.org/narf_vocabulary:has_attribute> ?d.
?d a <http://bio2rdf.org/narf_vocabulary:cycle_size>.
?d <http://bio2rdf.org/narf_vocabulary:has_value> ?size.
} ORDER BY DESC(?size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment