Changeset 359

Show
Ignore:
Timestamp:
03/17/09 17:45:04 (10 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/lib
Files:
2 modified

Legend:

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

    r352 r359  
    2929  if x.rindex('.') == nil && x!= ('SYSTEM') && x!= ('INTERNAL')  
    3030     
    31     adapter = ConnectionPool.add_data_source :type => :sparql_sesame_api, :title => x + '_LOCAL'  ,  :caching =>true, :repository => x, :dir => $sesamedir.path 
     31    adapter = ConnectionPool.add_data_source :type => :sparql_sesame_api, :title => x + '(Local)'  ,  :caching =>true, :repository => x, :dir => $sesamedir.path 
    3232    
    3333  end 
     
    5555 
    5656 
    57 adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'DBPEDIA_LOCAL', :url => "http://139.82.71.60:8890/sparql", :results => :sparql_xml, :caching =>true 
     57adapter =ConnectionPool.add_data_source :type => :sparql,:engine => :virtuoso,:title=>'DBPEDIA(Local)', :url => "http://139.82.71.60:8890/sparql", :results => :sparql_xml, :caching =>true 
    5858 
    5959 
  • Explorator/trunk/lib/query_builder.rb

    r345 r359  
    8585  def go(uri) 
    8686    adapter = ConnectionPool.adapters.select {|adapter|  
    87       adapter.title == 'EXPLORATOR_LOCAL' 
     87      adapter.title == 'EXPLORATOR(Local)' 
    8888    } 
    8989    uri = RDFS::Resource.new(uri) 
     
    223223  #r - the position on the triple that should be returned. 
    224224  def union(s,p=nil,o=nil, r=nil)    
    225     puts 'SPO' 
     225    
    226226    if s.instance_of? SemanticExpression  
    227227      @result = @result | s.result