Changeset 209

Show
Ignore:
Timestamp:
12/13/08 11:51:36 (9 years ago)
Author:
samuraraujo
Message:
 
Location:
activerdf_sparql-1.3.6/lib/activerdf_sparql
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • activerdf_sparql-1.3.6/lib/activerdf_sparql/sparql_sesame_api.rb

    r208 r209  
    55  $activerdflog.info "loading SPARQL SESAME API adapter" 
    66  ConnectionPool.register_adapter(:sparql_sesame_api, self)   
    7   attr_reader :caching   
     7  attr_reader :caching  , :bridge 
    88  def reset_cache()      
    99    @sparql_cache = {} 
     
    5656        return result 
    5757      end 
    58     end 
    59      
     58    end     
    6059    result = execute_sparql_query(qs,   &block) 
    6160    add_to_cache(qs, result) if @caching 
     
    6867    response = '' 
    6968    begin  
    70       response = @bridge.query(qs.to_s)        
    71       #puts response 
    72     rescue Timeout::Error 
     69        
     70      response = @bridge.query(qs.to_s) 
     71    #  puts response 
     72    rescue  
    7373      raise ActiveRdfError, "JAVA BRIDGE ERRO ON SPARQL ADAPTER" 
    7474      return "timeout"