Changeset 228
- Timestamp:
- 01/05/09 15:35:00 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/controllers/facets_controller.rb
r133 r228 47 47 end 48 48 #the parameter id is the ResourceSet identification in the SetsPool. 49 def facet ( id)49 def facet (exp) 50 50 #gets a ResourceSet instance in the pool. 51 @resourceset= session[:application].get(id) 51 set = session[:application].get(exp) #the object @resourceset is a global object that will be used by render 52 @resourceset = set 53 52 54 #Gets a facet defined by the user in the repository. 53 55 # FACETO::FacetGroup belong to the ActiveRDF model and the vocabulary FACETO::FacetGroup was defined by the Explorator. … … 64 66 end 65 67 #Infer the facets for the specific set 66 def infer ( id)68 def infer (exp) 67 69 #gets a ResourceSet instance in the pool. 68 @resourceset= session[:application].get(id) 70 set = session[:application].get(exp) 71 72 #the object @resourceset is a global object that will be used by render 73 @resourceset = set 74 75 69 76 @groups=FACETO::FacetGroup.find_by_faceto::type(RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#userdefined')) 70 77 … … 272 279 facet = FACETO::FacetGroup.find_by_faceto::use(predicate).first() 273 280 if facet == nil 274 281 275 282 id =UUID.random_create.to_s 276 283 facet = FACETO::Facet.new('<http://www.semanticnavigation.org/2008/faceto#' << id << '>')
