amalgame/commit

IMPROVED: showing/hiding empty results

authorJacco van Ossenbruggen
Thu Mar 5 16:41:28 2020 +0100
committerJacco van Ossenbruggen
Thu Mar 5 16:41:28 2020 +0100
commit08279e495c1b4314ab582aeeb60753382bea09a0
tree1c93c90824da0f1ae489b75f112b6d4dd50e32c4
parentd40236820bdb6078d22c61137c5468e2e6bef754
Diff style: patch stat
diff --git a/api/strategy_viz.pl b/api/strategy_viz.pl
index c022b7d..1841b72 100644
--- a/api/strategy_viz.pl
+++ b/api/strategy_viz.pl
@@ -10,7 +10,6 @@
 :- use_module(library(semweb/rdf_label)).
 :- use_module(components(label)).
 :- use_module(components(graphviz)).
-:- use_module(library(skos/util)).
 :- use_module(library(amalgame/ag_strategy)).
 :- use_module(library(amalgame/ag_stats)).
 :- use_module(library(amalgame/ag_evaluation)).
@@ -109,8 +108,9 @@ amalgame_graph_triple(Graph,Graph,P,Scheme) :-
 	strategy_vocabulary(Graph, Scheme).
 amalgame_graph_triple(Graph,O,P,S) :-
 	rdf(S,P,O,Graph),
-	is_amalgame_property(P).
-	% \+ empty_result(Graph, S).
+	is_amalgame_property(P),
+	\+ empty_result(Graph, S),
+	true.
 
 
 is_amalgame_property(P) :-
@@ -137,16 +137,18 @@ empty_result(Strategy, E) :-
 	node_stats(Strategy, E, Stats, [compute(false)]),
 	option(totalCount(0), Stats),
 	non_empty_sibling(Strategy, E),
+	\+ rdf(_NextProcess, amalgame:input, E, Strategy),
 	!.
 
 empty_result(_Strategy,M) :-
-	is_empty_eval_graph(M).
+	is_empty_eval_graph(M),
+	!.
 
 % and processes resulting in empty evals
-empty_result(Strategy,Process) :-
-	rdfs_individual_of(Process, amalgame:'EvaluationProcess'),
-	rdf(Empty, amalgame:wasGeneratedBy, Process, Strategy),
-	empty_result(Strategy, Empty).
+% empty_result(Strategy,Process) :-
+%	rdfs_individual_of(Process, amalgame:'EvaluationProcess'),
+%	rdf(Empty, amalgame:wasGeneratedBy, Process, Strategy),
+%	empty_result(Strategy, Empty), !.
 
 non_empty_sibling(Strategy, E) :-
 	rdf_has(E, amalgame:wasGeneratedBy, Process, RP),