amalgame/commit

save results in canonical format to simplify comparison

authorJacco van Ossenbruggen
Wed Mar 12 14:23:32 2014 +0100
committerJacco van Ossenbruggen
Wed Mar 12 14:23:32 2014 +0100
commit5f458a627e541c61904ff2fa1b2f0ee184e6dbd7
treedb7a0c55e42d9ed866650f219783e4fb5acd823c
parent07b558decea729d6fa3502b6a1a6a04f445be7ed
Diff style: patch stat
diff --git a/lib/amalgame/ag_publish.pl b/lib/amalgame/ag_publish.pl
index c3b71f4..b355134 100644
--- a/lib/amalgame/ag_publish.pl
+++ b/lib/amalgame/ag_publish.pl
@@ -25,7 +25,7 @@ save_mappings(Strategy, Dir, Options) :-
 	absolute_file_name(ProvGraphB, ProvFile,  [relative_to(Dir), extensions([ttl])]),
 	absolute_file_name(void,       VoidFile,  [relative_to(Dir), extensions([ttl])]),
 
-	rdf_save_turtle(StratFile, [graph(Strategy)|Options]),
+	rdf_save_canonical_turtle(StratFile, [graph(Strategy)|Options]),
 
 	assert_master_void(Strategy, AllMappingsURI, VoidGraph),
 	select_mappings_to_be_saved(Strategy, Mappings, Options),
@@ -37,9 +37,9 @@ save_mappings(Strategy, Dir, Options) :-
 	      ),
 
 
-	rdf_save_turtle(ProvFile,  [graph(ProvGraph)|Options]),
+	rdf_save_canonical_turtle(ProvFile,  [graph(ProvGraph)|Options]),
 	(   Mappings \= []
-	->  rdf_save_turtle(VoidFile, [graph(VoidGraph)|Options])
+	->  rdf_save_canonical_turtle(VoidFile, [graph(VoidGraph)|Options])
 	;   true
 	),
 	rdf_unload_graph(VoidGraph).
@@ -161,7 +161,7 @@ save_mapping(Id, Options) :-
 	option(format(Format), Options),
 	(   (Format == edoal ; Format == both)
 	->  (   Ext = ttl
-	    ->  rdf_save_turtle(EdoalName, [graph(Id)|Options])
+	    ->  rdf_save_canonical_turtle(EdoalName, [graph(Id)|Options])
 	    ;   rdf_save_trig(EdoalName, [graphs([Id|EvidenceGraphs])|Options])
 	    )
 	;   true
@@ -178,7 +178,7 @@ save_flat_triples(Filename, Id, Options) :-
 	rdf_unload_graph(SimpleGraph),
 	assert_metadata(Id, Strategy, SimpleGraph),
 	edoal_to_triples(Id, SimpleGraph, Options),
-	rdf_save_turtle(Filename, [graph(SimpleGraph)|Options]),
+	rdf_save_canonical_turtle(Filename, [graph(SimpleGraph)|Options]),
 	rdf_unload_graph(SimpleGraph).
 
 assert_metadata(Id, Strategy, Graph) :-