amalgame/commit
rdf11
author | Jacco van Ossenbruggen |
---|---|
Fri Mar 27 16:53:49 2020 +0100 | |
committer | Jacco van Ossenbruggen |
Fri Mar 27 16:53:49 2020 +0100 | |
commit | efea001eb3edeef98d94d1b5b599c25633e7d777 |
tree | a5be4a9a710af49d2a4bbc2693ba6d451c17c5de |
parent | 52a74abd07ddd4ba8e3c2edcbec44b49322a81c8 |
Diff style: patch stat
diff --git a/lib/amalgame/hooks/skos_browser.pl b/lib/amalgame/hooks/skos_browser.pl index 79fd328..27ba0d3 100644 --- a/lib/amalgame/hooks/skos_browser.pl +++ b/lib/amalgame/hooks/skos_browser.pl @@ -1,9 +1,9 @@ :- module(skos_browser_hooks, []). :- use_module(library(option)). -:- use_module(library(semweb/rdf_db)). +:- use_module(library(semweb/rdf11)). :- use_module(library(skos/util)). -:- use_module(library(amalgame/expand_graph)). + cliopatria:concept_property(class, Concept, Graphs0, Class, Options) :- graph_mappings(Graphs0, Graphs), diff --git a/lib/amalgame/hooks/strategy_backward_compatability.pl b/lib/amalgame/hooks/strategy_backward_compatability.pl index e657dc4..10a0c4b 100644 --- a/lib/amalgame/hooks/strategy_backward_compatability.pl +++ b/lib/amalgame/hooks/strategy_backward_compatability.pl @@ -39,7 +39,7 @@ backward_compatibility_fixes(Strategy) :- fix_vocab_selecters(Strategy) :- findall(rdf(S,P,O,Strategy), is_old_vocab_selecter_triple(S,P,O,Strategy), OldTriples), maplist(old_vocab_selecter_to_new, OldTriples), - rdf_retract_list(OldTriples). + rdf_retract_triples(OldTriples). fix_old_mapping_filters(Strategy) :- findall(P-E-T, is_old_mapping_filter(Strategy, P,E,T), Filters), @@ -53,10 +53,10 @@ old_filter_to_new(Strategy, Process-Entity-OldType) :- rdf_assert(Process, rdf:type, NewType, Strategy), ag_strategy:assert_output(Process, amalgame:'MappingPartitioner', Strategy, _, _, Entity). -rdf_retract_list([]). -rdf_retract_list([rdf(S,P,O,G)|T]) :- +rdf_retract_triples([]). +rdf_retract_triples([rdf(S,P,O,G)|T]) :- rdf_retractall(S,P,O,G), - rdf_retract_list(T). + rdf_retract_triples(T). is_old_vocab_selecter_triple(S,amalgame:wasGeneratedBy,O, G) :- rdf(S,amalgame:wasGeneratedBy,O, G),