Index: /Explorator/trunk/app/controllers/facets_controller.rb
===================================================================
--- /Explorator/trunk/app/controllers/facets_controller.rb	(revision 121)
+++ /Explorator/trunk/app/controllers/facets_controller.rb	(revision 133)
@@ -19,5 +19,5 @@
   end  
   def create
-    properties= eval(params[:exp]).result    
+    properties= eval(params[:exp]).result.collect{|s,p,o| s}.compact.uniq    
     facetgroup=FACETO::FacetGroup.new('<http://www.semanticnavigation.org/2008/faceto#' << params[:name] << '>')
     facetgroup.rdfs::label=params[:name]
@@ -28,4 +28,5 @@
     properties.each do |predicate|
       if predicate.instance_of? RDF::Property        
+        puts predicate
         #create a object FACETO:Facet for each resource property and add it to the facets array.
         #This code only creates facets that represents properties. Facets that represents expressions are not considerated here.
@@ -42,4 +43,6 @@
     end
     facetgroup.faceto::facet = facets  
+    facetgroup.save
+    render  :action=> 'create',:layout=>false;
   end  
   #the parameter id is the ResourceSet identification in the SetsPool.
