lib/eol/sparql/client.rb
# NOTE: "callret-0" is the name of the symbol returned by a COUNT query.
# NOTE we aren't counting triples, we are counting the number of taxonIDs
# referenced, because both measurements and associations use this to mark
# the association between an "occurrence" and a "taxon" (which is really a
# hierarchy_entry.identifier)
"callret-0" is the name of the symbol returned by a COUNT query.
NOTE we aren't counting triples, we are counting the number of taxonIDs
referenced, because both measurements and associations use this to mark
the association between an "occurrence" and a "taxon" (which is really a
hierarchy_entry.identifier)
" callret - 0 " is the name of the symbol returned by a COUNT query . NOTE we aren ' t counting triples we are counting the number of taxonIDs referenced because both measurements and associations use this to mark the association between an " occurrence " and a " taxon " ( which is really a hierarchy_entry . identifier )
def count_traits_in_resource(resource)
        query("SELECT COUNT(*) WHERE { GRAPH "\
          "<#{resource.graph_name}> { ?s dwc:taxonID ?o } }").
          first[:"callret-0"].to_i
      end
def count_traits_in_resource ( resource ) query ( "SELECT COUNT(*) WHERE { GRAPH " "<#{resource.graph_name}> { ?s dwc:taxonID ?o } }" ) . first [ :" callret-0 " ] . to_i end
NOTE: "callret-0" is the name of the symbol returned by a COUNT query.
NOTE : " callret - 0 " is the name of the symbol returned by a COUNT query .
resource
<not_specific>