accurator/commit
Saves pretty turtle.
author | Chris Dijkshoorn |
---|---|
Mon Mar 14 11:58:49 2016 +0100 | |
committer | Chris Dijkshoorn |
Mon Mar 14 11:58:49 2016 +0100 | |
commit | a23eefdfc9462f5595929fc7b2a58ac590032493 |
tree | 3cea71a6d9e0f96559a6a6c68f3e4343570f15d1 |
parent | 40955bc0a2106b39fd96ac253cb7a0fb82d7c826 |
Diff style: patch stat
diff --git a/lib/accurator/review.pl b/lib/accurator/review.pl index e35a69f..96da951 100644 --- a/lib/accurator/review.pl +++ b/lib/accurator/review.pl @@ -8,6 +8,7 @@ :- use_module(library(oa_annotation)). :- use_module(library(semweb/rdf_db)). :- use_module(library(accurator/annotation)). +:- use_module(library(semweb/rdf_turtle_write)). :- rdf_meta review(r, -, r). @@ -77,7 +78,8 @@ select_annotations(ConceptScheme, User, Annotations) :- % Export a list of annotations export_annotations(Graph, Annotations) :- rdf_unload_graph(Graph), - maplist(add_annotation(Graph), Annotations). + maplist(add_annotation(Graph), Annotations), + rdf_save_turtle(Graph, [graph(Graph)]). add_annotation(Graph, Annotation) :- % get all triples related to annotation