Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created March 25, 2014 15:08
Show Gist options
  • Save jctoledo/9763755 to your computer and use it in GitHub Desktop.
Save jctoledo/9763755 to your computer and use it in GitHub Desktop.
get the counts of cycles that belong to ligand neighbourhoods
select count (distinct ?cyc)
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>.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment