Changeset 228

Show
Ignore:
Timestamp:
01/05/09 15:35:00 (10 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

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

    r133 r228  
    4747  end   
    4848  #the parameter id is the ResourceSet identification in the SetsPool. 
    49   def facet (id 
     49  def facet (exp 
    5050    #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     
    5254    #Gets a facet defined by the user in the repository. 
    5355    # FACETO::FacetGroup belong to the ActiveRDF model and the vocabulary FACETO::FacetGroup was defined by the Explorator. 
     
    6466  end 
    6567  #Infer the facets for the specific set 
    66   def infer   (id)       
     68  def infer   (exp)       
    6769    #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     
    6976    @groups=FACETO::FacetGroup.find_by_faceto::type(RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#userdefined')) 
    7077     
     
    272279      facet = FACETO::FacetGroup.find_by_faceto::use(predicate).first() 
    273280      if facet == nil 
    274           
     281         
    275282        id =UUID.random_create.to_s 
    276283        facet = FACETO::Facet.new('<http://www.semanticnavigation.org/2008/faceto#' << id << '>')