lib/browser_web_data_entity_sumarization/sparql_request.rb
###
# The method helps to process SPARQL query request to endpoint.
#
# @param [String] query
# @param [Fixnum] retries_count
The method helps to process SPARQL query request to endpoint.
The method helps to process SPARQL query request to endpoint .
def process_query(query, retries_count = 15)
      try = 1
      begin
        @sparql_client.query(query)
      rescue => e
        if try < retries_count
          sleep(5 + (try * 2))
          try += 1
          retry
        else
          raise e
        end
      end
    end
def process_query ( query , retries_count = 15 ) try = 1 begin @sparql_client . query ( query ) rescue => e if try < retries_count sleep ( 5 + ( try * 2 ) ) try += 1 retry else raise e end end end
The method helps to process SPARQL query request to endpoint.
The method helps to process SPARQL query request to endpoint .
query
<not_specific>
retries_count
<not_specific>
<not_specific>
None