lib/rdf/blazegraph/rest_client.rb
##
# Send a request to the server
#
# @param [String] query
#
# @return [Net::HTTP::Response] the server's response
# @raise [RequestError] if the request returns a non-success response code
Send a request to the server
Send a request to the server
def execute(query)
      response = @http.request(url + ::URI::encode(query))
      return response if response.is_a? Net::HTTPSuccess
      raise RequestError.new("#{response.code}: #{response.body}\n" \
                             "Processing query #{query}") 
    end
def execute ( query ) response = @http . request ( url + :: URI :: encode ( query ) ) return response if response . is_a? Net :: HTTPSuccess raise RequestError . new ( "#{response.code}: #{response.body}\n" "Processing query #{query}" ) end
Send a request to the server
Send a request to the server
the server's response
the server ' s response
Net::HTTP::Response
[RequestError] if the request returns a non-success response code
[ RequestError ] if the request returns a non - success response code
query
<not_specific>
<not_specific>
None