From 3fe8a116f1255eedd4628d68d9a6ae16064b0d7c Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 8 May 2012 14:48:20 +0200 Subject: Added metadata: minfreq and nr_hits --- fminer.rb | 11 ++++++++--- last-utils | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/fminer.rb b/fminer.rb index 8559628..3c282c8 100644 --- a/fminer.rb +++ b/fminer.rb @@ -186,7 +186,10 @@ post '/fminer/bbrc/?' do OT.hasSource => url_for('/fminer/bbrc', :full), OT.parameters => [ { DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] }, - { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] } + { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] }, + { DC.title => "min_frequency", OT.paramValue => fminer.minfreq }, + { DC.title => "nr_hits", OT.paramValue => (params[:nr_hits] == "true" ? "true" : "false") } + ] }) feature_dataset.save(@subjectid) @@ -455,8 +458,10 @@ post '/fminer/last/?' do OT.hasSource => url_for('/fminer/last', :full), OT.parameters => [ { DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] }, - { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] } - ] + { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] }, + { DC.title => "min_frequency", OT.paramValue => fminer.minfreq }, + { DC.title => "nr_hits", OT.paramValue => (params[:nr_hits] == "true" ? "true" : "false") } + ] }) feature_dataset.save(@subjectid) diff --git a/last-utils b/last-utils index 8a3dd9b..efcc3f4 160000 --- a/last-utils +++ b/last-utils @@ -1 +1 @@ -Subproject commit 8a3dd9bb550f0ea264c2f4e844f664f0a42ca16f +Subproject commit efcc3f41dd9e2f590a1520dfee3bf709120b2e41 -- cgit v1.2.3