Changeset 121
- Timestamp:
- 10/21/08 15:16:10 (5 years ago)
- Location:
- Explorator/trunk/app/controllers
- Files:
-
- 3 modified
-
explorator_controller.rb (modified) (1 diff)
-
facets_controller.rb (modified) (2 diffs)
-
viewer_controller.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/controllers/explorator_controller.rb
r115 r121 96 96 #The refresh method return a determined ResourceSet from the SetsPool 97 97 #This method is called by the Execute method, being passed as a parameter by the interface. 98 def refresh(uri,view=:subject_view )98 def refresh(uri,view=:subject_view, filter='') 99 99 @resourceset= session[:application].get(uri).setWithOffset(0) 100 100 @filter=filter -
Explorator/trunk/app/controllers/facets_controller.rb
r116 r121 46 46 def facet (id) 47 47 #gets a ResourceSet instance in the pool. 48 @resourceset= Application.get(id)48 @resourceset= session[:application].get(id) 49 49 #Gets a facet defined by the user in the repository. 50 50 # FACETO::FacetGroup belong to the ActiveRDF model and the vocabulary FACETO::FacetGroup was defined by the Explorator. … … 63 63 def infer (id) 64 64 #gets a ResourceSet instance in the pool. 65 @resourceset= Application.get(id)65 @resourceset= session[:application].get(id) 66 66 @groups=FACETO::FacetGroup.find_by_faceto::type(RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#userdefined')) 67 67 -
Explorator/trunk/app/controllers/viewer_controller.rb
r22 r121 11 11 view = params[:value] 12 12 #Gets the first resource in the set and sets the new view for it. 13 resource = Application.get(params[:setid]).resources[0]13 resource = session[:application].get(params[:setid]).resources[0] 14 14 #it will add a triple in the repository where the subject will be the resource uri, the predicate 15 15 #will be explorator:view and the object will be the view script. … … 23 23 @setid = params[:setid] 24 24 #returns the resource view. Notes that it was passed a set as parameter and not a resource itself. 25 @view = Application.get(params[:setid]).resources[0].explorator::view25 @view = session[:application].get(params[:setid]).resources[0].explorator::view 26 26 end 27 27 end
