lib/activerdf_sparql-1.3.6/lib/activerdf_sparql/sparql_sesame_api.rb
# do the real work of executing the sparql query
do the real work of executing the sparql query
do the real work of executing the sparql query
def execute_sparql_query(qs, header=nil, &block)
    response = ''
    begin
      response = @bridge.query(qs.to_s)
    rescue
      raise ActiveRdfError, "JAVA BRIDGE ERRO ON SPARQL ADAPTER"
      return "timeout"
    end
    results =  parse_xml(response)
    if block_given?
      results.each do |*clauses|
        yield(*clauses)
      end
    else
    results
    end
  end
def execute_sparql_query ( qs , header = nil , & block ) response = '' begin response = @bridge . query ( qs . to_s ) rescue raise ActiveRdfError , "JAVA BRIDGE ERRO ON SPARQL ADAPTER" return "timeout" end results = parse_xml ( response ) if block_given? results . each do | * clauses | yield ( * clauses ) end else results end end
do the real work of executing the sparql query
do the real work of executing the sparql query
#        puts response # we parse content depending on the result format
qs
header
block