amalgame/commit

FIXED: is_other_literal/3 was broken

authorJacco van Ossenbruggen
Sun Mar 29 14:25:37 2015 +0200
committerJacco van Ossenbruggen
Sun Mar 29 14:25:37 2015 +0200
commitd96aa339bc2f9890b8767008f07cd6b62400ee64
tree4761887af3bb69872443552b0045cb0c2129783a
parent847da6345acf9ad1cd708e1879bfc835128b1a2f
Diff style: patch stat
diff --git a/components/amalgame/correspondence.pl b/components/amalgame/correspondence.pl
index 3b033ec..4906c4f 100644
--- a/components/amalgame/correspondence.pl
+++ b/components/amalgame/correspondence.pl
@@ -221,9 +221,11 @@ html_resource_context(URI, _Prov) -->
 find_other_literals(URI, Taboo, Others):-
 	findall(Other, is_other_literal(URI, Taboo, Other), Others).
 
-is_other_literal(URI, Taboo, Prop:Other) :-
-	rdf(URI, Prop, literal(Other)),
-	\+ member(Other, Taboo).
+is_other_literal(URI, Taboo, Prop:OtherLit) :-
+	rdf(URI, Prop, Other),
+	rdf_is_literal(Other),
+	literal_text(Other, OtherLit),
+	\+ member(OtherLit, Taboo).
 
 html_relations([], _) --> !.
 html_relations([Rel-Label|Rs], Active) -->