amalgame/commit

WIP: show label stats of underlying vocs in mapping stats

authorJacco van Ossenbruggen
Sat May 9 21:16:36 2015 +0200
committerJacco van Ossenbruggen
Sat May 9 21:16:36 2015 +0200
commitd8d3475b7ef3c1fbc77f13e3eda0377db9782afb
treeee5c2c2222b3e6142a9e0fa7f4bf8008c28a0496
parent62c3f0b1db10baaa25e6165f0d07727a7446c986
Diff style: patch stat
diff --git a/api/node_info.pl b/api/node_info.pl
index a0c50f4..70cbfff 100644
--- a/api/node_info.pl
+++ b/api/node_info.pl
@@ -186,10 +186,20 @@ amalgame_info(URL, Strategy, Stats) :-
 	->  true
 	;   ReferenceStats = []
 	),
+
+	(   option(vocs(Vocs), MStats),
+	    option(source(SScheme), Vocs), option(stats(SStats),SScheme),
+	    option(target(TScheme), Vocs), option(stats(TStats),TScheme),
+	    option(properties(SProps), SStats), option(totalCount(STotal), SStats),
+	    option(properties(TProps), TStats), option(totalCount(TTotal), TStats)
+	->  label_property_stats(SProps, PSstats, [totalCount(STotal)]),
+	    label_property_stats(TProps, PTstats, [totalCount(TTotal)])
+	;   PSstats = [], PTstats=[]
+	),
 	append([
 	    BasicStats,
 	    IpStats,
-	    ReferenceStats,
+	    ReferenceStats, PSstats, PTstats,
 	    [DepthSStats], [ChildSStats],
 	    [DepthTStats], ChildTStats
 	], Stats).