cluster_search/commit

try to resolve step_weight/4 dependency issues reported by xref

authorJacco van Ossenbruggen
Fri May 3 09:29:53 2013 +0200
committerJacco van Ossenbruggen
Fri May 3 09:29:53 2013 +0200
commitc4d9b8ed8ad5fd0e16857711c3d68b5dc08083ce
treee4f36d17d6b08976e670f7a2cc72261107be6774
parenta842a786b27f4713025c8a5683b687a3c3aadbdd
Diff style: patch stat
diff --git a/api/cluster_search.pl b/api/cluster_search.pl
index b6bea77..24634c6 100644
--- a/api/cluster_search.pl
+++ b/api/cluster_search.pl
@@ -458,7 +458,7 @@ result_roles([Target|T], Graph, [Key-R|Ps]) :-
 	target(Target, R, _),
 	findall(Weight-P,
 		( search_graph_rdf(Graph, R, P, V),
-		  rdf_cluster:step_weight(P, V, Graph, Weight)
+		  step_weight(P, V, Graph, Weight)
 		),
 		Ps0
 	),
diff --git a/lib/cluster_search/rdf_cluster.pl b/lib/cluster_search/rdf_cluster.pl
index 1c672c0..69b770e 100644
--- a/lib/cluster_search/rdf_cluster.pl
+++ b/lib/cluster_search/rdf_cluster.pl
@@ -34,6 +34,7 @@
 	    canonical_path/2,   % +Path, -CanonicalPath
 	    strip_alignment/2,  % +Path, -StrippedPath
 	    strip_rdf_value/2,
+	    step_weight/4,
 	    direct_path/2
 	  ]).
 
@@ -335,7 +336,7 @@ agenda_head(R,        R, [R]).
 
 
 step_weight(P, _V, _Graph, Weight) :-
-	graph_search:predicate_weight(P, Weight), !.
+	rdf_backward_search:predicate_weight(P, Weight), !.
 step_weight(_, _V, _Graph, 0.3).