Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created February 14, 2014 14:38
Show Gist options
  • Save jctoledo/9002044 to your computer and use it in GitHub Desktop.
Save jctoledo/9002044 to your computer and use it in GitHub Desktop.
get the cycle size distribution of all rna cycles
select STR(?size) as ?cycle_size COUNT(?a) as ?frequency
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.
?a <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.
?c a <http://bio2rdf.org/narf_vocabulary:cycle_profile_level_2> .
?c <http://bio2rdf.org/narf_vocabulary:has_md5hash> ?ahash .
} ORDER BY DESC (?size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment