Changeset 90
- Timestamp:
- 10/08/08 22:33:42 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/controllers/facets_controller.rb
r73 r90 63 63 def infer (id) 64 64 #gets a ResourceSet instance in the pool. 65 @resourceset= Application.get(id) 65 @resourceset= Application.get(id) 66 @groups=FACETO::FacetGroup.find_by_faceto::type(RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#userdefined')) 67 66 68 inference(@resourceset.resources,UUID.random_create.to_s) 67 69 #Calculates all the facets for a set of resources … … 254 256 predicates= predicates | Query.new.distinct(:p).where(s,:p,:o).execute 255 257 end 258 256 259 #create a object FacetGroup for this instance of resources 257 260 @facetgroup=FACETO::FacetGroup.new('<http://www.semanticnavigation.org/2008/faceto#' << cid << '>') 261 @facetgroup.rdfs::label=cid 258 262 @facetgroup.faceto::type=RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#infered') 259 263 @facetgroup.save … … 265 269 id =UUID.random_create.to_s 266 270 facet = FACETO::Facet.new('<http://www.semanticnavigation.org/2008/faceto#' << id << '>') 267 facet.save 271 facet.save 268 272 facet.faceto::derivedTerm = predicate 269 273 facet.faceto::use = predicate
