Changeset 411
- Timestamp:
- 05/04/09 13:36:31 (10 years ago)
- Location:
- Explorator/trunk/app/controllers
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/controllers/explorator_controller.rb
r406 r411 16 16 #default rails method. returns the view index.rhtml. 17 17 def index 18 RDFS::Resource.new('<http://sw.nokia.com/id/5865201a-b7ba-47b8-b4a8-1b7efd25cc07/N95_8GB>'). email_solution19 18 20 19 end -
Explorator/trunk/app/controllers/repository_controller.rb
r406 r411 42 42 session[:disablerepositories] << (params[:title]) 43 43 session[:disablerepositories].uniq! 44 session[:triples]=Hash.new 44 45 # Repository.disable_by_title(params[:title]) 45 46 #render nothing. … … 51 52 RDFS::Resource.reset_cache() 52 53 session[:disablerepositories].delete(params[:title]) 54 session[:triples]=Hash.new 53 55 # Repository.enable_by_title(params[:title]) 54 56 #render nothing. … … 68 70 session[:disablerepositories] << (params[:title]) 69 71 session[:disablerepositories].uniq! 72 70 73 71 74 rescue Exception => e … … 81 84 end 82 85 begin 83 RDFS::Resource.find_all_predicates86 84 87 # construct the necessary Ruby Modules and Classes to use the Namespace 85 88 ObjectManager.construct_classes … … 97 100 # render_component :controller => 'message',:action => 'error',:message => e.message ,:layout => false 98 101 end 102 session[:triples]=Hash.new 99 103 redirect_to :action => 'endpointsform',:message => 'Sparql endpoint added successfully!' ,:messageaction=>'confirmation' 100 104