Changeset 486

Show
Ignore:
Timestamp:
10/06/10 08:04:03 (8 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/controllers/explorator_controller.rb

    r485 r486  
    1616  #default rails method. returns the view index.rhtml. 
    1717  def index 
    18     if params[:url] != nil 
    19        
    20       begin       
    21          
     18    if params[:url] != nil       
     19      begin               
     20         RDFS::Resource.reset_cache()      
     21        session[:enablerepositories] << ('EXPLORATOR(Local)')  
     22        session[:enablerepositories].uniq! 
     23          session[:triples]=Hash.new 
    2224        #creates a new set.  
    23         #the expression must be passed by the uri 
    24          
     25        #the expression must be passed by the uri         
    2526        set = EXPLORATOR::Set.new('http://www.tecweb.inf.puc-rio.br/resourceset/id/' + UUID.random_create.to_s)        
    2627