Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created March 6, 2014 16:47
Show Gist options
  • Save jctoledo/9394011 to your computer and use it in GitHub Desktop.
Save jctoledo/9394011 to your computer and use it in GitHub Desktop.
get the cycle size distribution of level 1 cycles extracted from Aptamer base data
select STR(?size) as ?cycle_size COUNT(?a) as ?frequency
from <http://bio2rdf.org/narf:ab_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_1> .
?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