Show
Ignore:
Timestamp:
11/05/10 18:54:05 (7 years ago)
Author:
mauriciobomfim
Message:

Added jruby support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/lib/dataload.rb

    r469 r487  
    3030       
    3131    end 
    32   rescue 
     32  rescue => ex 
     33        begin #try add datasource once again if it fail at the first time. 
     34          adapter = ConnectionPool.add_data_source :type => :sparql_sesame_api, :title => x + '(Local)'  ,  :caching =>true, :repository => x, :dir => $sesamedir.path 
     35        rescue 
     36        end 
    3337  end 
    3438end 
     
    5458#adapter.title='IMDB_SPARQL' 
    5559# 
    56 begin 
    57   adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'DBPEDIA(Local)', :url => "http://tecweb08.tecweb.inf.puc-rio.br:8890/sparql", :results => :sparql_xml, :caching =>true  
    58 rescue Exception => e 
    59   puts 'Removing datasource: '  
    60   #puts e.backtrace  
    61   ConnectionPool.remove_last_data_source_added() 
    62   puts 'Datasource removed' 
    63 end  
    64   
    65 begin 
    66   adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'MEDICAL(Local)', :url => "http://tecweb08.tecweb.inf.puc-rio.br:8890/sparql?default-graph-uri=http://medical.org", :results => :sparql_xml, :caching =>true  
    67 rescue Exception => e 
    68   puts 'Removing datasource: '  
    69  # puts e.backtrace   
    70   ConnectionPool.remove_last_data_source_added() 
    71   puts 'Datasource removed' 
    72 end  
     60#begin 
     61#  adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'DBPEDIA(Local)', :url => "http://tecweb08.tecweb.inf.puc-rio.br:8890/sparql", :results => :sparql_xml, :caching =>true  
     62#rescue Exception => e 
     63#  puts 'Removing datasource: '  
     64#  #puts e.backtrace  
     65#  ConnectionPool.remove_last_data_source_added() 
     66#  puts 'Datasource removed' 
     67#end  
     68#  
     69#begin 
     70#  adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'MEDICAL(Local)', :url => "http://tecweb08.tecweb.inf.puc-rio.br:8890/sparql?default-graph-uri=http://medical.org", :results => :sparql_xml, :caching =>true  
     71#rescue Exception => e 
     72#  puts 'Removing datasource: '  
     73# # puts e.backtrace   
     74#  ConnectionPool.remove_last_data_source_added() 
     75#  puts 'Datasource removed' 
     76#end  
    7377 
    7478