accurator/commit

Added comments agenda.

authorChris Dijkshoorn
Sun Mar 8 21:56:55 2015 +0000
committerChris Dijkshoorn
Sun Mar 8 21:56:55 2015 +0000
commit6564499d811047291e369be00efd06c63a6baef2
tree6f5b128a2a4814925b4e081e515b8e280837cc55
parent0314dce4206944cd64a623d8b392e99c12d2c985
Diff style: patch stat
diff --git a/lib/accurator/expertise.pl b/lib/accurator/expertise.pl
index c7df151..4f67350 100644
--- a/lib/accurator/expertise.pl
+++ b/lib/accurator/expertise.pl
@@ -9,7 +9,6 @@
 */
 
 :- use_module(library(semweb/rdf_db)).
-:- use_module(library(pairs)).
 
 :- rdf_register_prefix(as, 'http://accurator.nl/schema#').
 :- rdf_register_prefix(txn, 'http://lod.taxonconcept.org/ontology/txn.owl#').
diff --git a/lib/accurator/recommendation/strategy_expertise.pl b/lib/accurator/recommendation/strategy_expertise.pl
index f84b5df..a6a29ed 100644
--- a/lib/accurator/recommendation/strategy_expertise.pl
+++ b/lib/accurator/recommendation/strategy_expertise.pl
@@ -14,6 +14,12 @@ strategy_expertise(_Result, _Options) :-
 	atom_string(Domain, DomainString),
 	set_expertise_agenda(5, _Agenda, [user(User), domain(Domain)]).
 
+
+%%	set_expertise_agenda(+MaxNumber, -Agenda, +Options)
+%
+%	Set the agenda by retrieving all the expertise values of user given
+%	a domain, sort based on the values and pick the highest values with
+%	a maximum number.
 set_expertise_agenda(MaxNumber, Agenda, Options) :-
 	get_user_expertise_domain(ExpertiseValues, Options),
 	transpose_pairs(ExpertiseValues, SortedExpertiseValues),