Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Last active August 29, 2015 13:56
Show Gist options
  • Save jctoledo/9001916 to your computer and use it in GitHub Desktop.
Save jctoledo/9001916 to your computer and use it in GitHub Desktop.
query to get the counts of cycles in ligand neighbourhoods
select STR(?ahash) AS ?level2profile COUNT(distinct ?a)
from <http://bio2rdf.org/narf:rna_cycles>
where{
?a a <http://bio2rdf.org/narf_vocabulary:cycle>.
?a <http://bio2rdf.org/narf_vocabulary:has_attribute> ?c.
?c a <http://bio2rdf.org/narf_vocabulary:cycle_profile_level_2> .
?c <http://bio2rdf.org/narf_vocabulary:has_md5hash> ?ahash .
?a <http://bio2rdf.org/narf_vocabulary:has_part> ?ap.
?lh <http://bio2rdf.org/lighood_vocabulary:has_member> ?ap.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment