amalgame/commit

make sure rdf literals in evidence are really literals

authorJacco van Ossenbruggen
Wed Aug 14 13:56:40 2013 +0200
committerJacco van Ossenbruggen
Wed Aug 14 13:56:40 2013 +0200
commitb8f36fde67069df692f5fcc35d8007411caddad3
tree1f3a747ae8f2a63d20de07f16f24a3338f456e79
parentb2e736657c902fb1c7750d92564f07199858cc83
Diff style: patch stat
diff --git a/lib/amalgame/edoal.pl b/lib/amalgame/edoal.pl
index e351919..c090999 100644
--- a/lib/amalgame/edoal.pl
+++ b/lib/amalgame/edoal.pl
@@ -153,7 +153,8 @@ assert_prov_elem(user, User, Subject, Graph, _Options) :-
 
 assert_prov_elem(Key, Value, Subject, Graph, _Options) :-
 	rdf_global_id(amalgame:Key, Property),
-	rdf_assert(Subject, Property, literal(Value), Graph).
+	term_to_atom(Value, ValueTxt),
+	rdf_assert(Subject, Property, literal(ValueTxt), Graph).
 
 rdf_assert_triples([], _).
 rdf_assert_triples([rdf(S,P,O)|Tail], Graph) :-