amalgame/commit
FIXED: quoting issues in literal evidence values
author | Jacco van Ossenbruggen |
---|---|
Wed Jul 30 12:30:53 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Wed Jul 30 12:30:53 2014 +0200 | |
commit | 5f3e33d41a5762482dc9134d86f2550405280824 |
tree | 6023e31e8e26368d0c6435c87ae980c78fb84fd4 |
parent | 3215f7fd4dd402f59f5cef7c32cb2bffba78c18c |
Diff style: patch stat
diff --git a/lib/amalgame/edoal.pl b/lib/amalgame/edoal.pl index 8a2f0c7..6fb9d9c 100644 --- a/lib/amalgame/edoal.pl +++ b/lib/amalgame/edoal.pl @@ -155,8 +155,8 @@ assert_prov_elem(user, User, Subject, Graph, _Options) :- assert_prov_elem(Key, Value, Subject, Graph, _Options) :- rdf_global_id(amalgame:Key, Property), - term_to_atom(Value, ValueTxt), - rdf_assert(Subject, Property, literal(ValueTxt), Graph). + format(atom(Atom), '~w', [Value]), + rdf_assert(Subject, Property, literal(Atom), Graph). rdf_assert_triples([], _). rdf_assert_triples([rdf(S,P,O)|Tail], Graph) :-