accurator/commit
Set expertise topics with no value to -1, to not get them on the recommender agenda.
author | Chris Dijkshoorn |
---|---|
Sat Oct 3 13:30:23 2015 +0200 | |
committer | Chris Dijkshoorn |
Sat Oct 3 13:30:23 2015 +0200 | |
commit | 81980e9a2d954a6d6d5fb8d9bf11f4fbcd87c0ed |
tree | 5c66de69b4157d088f54afc17b8a138efe642537 |
parent | 29449fd32f4b02635e6e43fd6e5ff39efd6b293c |
Diff style: patch stat
diff --git a/lib/accurator/expertise.pl b/lib/accurator/expertise.pl index 85229dc..2247bf7 100644 --- a/lib/accurator/expertise.pl +++ b/lib/accurator/expertise.pl @@ -10,8 +10,6 @@ :- use_module(library(semweb/rdf_db)). :- use_module(library(accurator/recommendation/strategy_expertise)). -:- use_module(api(cluster_search)). -:- use_module(library(accurator/accurator_user)). :- rdf_register_prefix(as, 'http://accurator.nl/schema#'). :- rdf_register_prefix(txn, 'http://lod.taxonconcept.org/ontology/txn.owl#'). @@ -191,7 +189,8 @@ get_latest_user_expertise(User, Topic, Topic-Value) :- reverse(SortedPairs, ReversePairs), member(Date-Value, ReversePairs), !. -get_latest_user_expertise(_User, Topic, Topic-no_value). +% Set value to -1 if not provided +get_latest_user_expertise(_User, Topic, Topic-"-1"). %% get_label(Locale, Uri, Label) %