app/models/trait_bank.rb
# JUST the list of triat IDs for the page! NOTE: duplication with
# #page_with_traits
JUST the list of triat IDs for the page. NOTE: duplication with
page_with_traits
JUST the list of triat IDs for the page . NOTE : duplication with page_with_traits
def page_traits(page, limit = 10_000, offset = nil)
      query = "SELECT DISTINCT *
      # page_with_traits
      WHERE {
        GRAPH <#{TraitBank.graph}> {
          <http://eol.org/pages/#{page}> ?predicate ?trait
        }
      }"
      begin
        connection.query(query)
      rescue EOL::Exceptions::SparqlDataEmpty => e
        EOL.log_error(e)
        []
      end
    end
def page_traits ( page , limit = 10_000 , offset = nil ) query = "SELECT DISTINCT *
      # page_with_traits
      WHERE {
        GRAPH <#{TraitBank.graph}> {
          <http://eol.org/pages/#{page}> ?predicate ?trait
        }
      }" begin connection . query ( query ) rescue EOL :: Exceptions :: SparqlDataEmpty => e EOL . log_error ( e ) [ ] end end
JUST the list of triat IDs for the page!
JUST the list of triat IDs for the page!
page
<not_specific>
limit
<not_specific>
offset
<not_specific>