Skip to content

Commit

Permalink
Added more comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thordreck committed Mar 31, 2021
1 parent 65d48f8 commit 9ad360d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/reasoning/SWRL/swrl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
swrl_infer_scope(FScope).

%%
% Note: I ran into some cases where predicates
% generated by rules containing built-ins would
% not always ground the interval scope argument, resulting in an exception
% when the inferred head was asserted (see issue #285).
% The predicates below simply unify its input arg with the universal scope if needed.
swrl_infer_scope(FScope) :-
nonvar(FScope).

Expand Down Expand Up @@ -366,7 +371,7 @@
% the predicate instance_of/2 would
% run the notify predicate that checks if it is
% an event. Since those predicates are tabled, any subsequent
% updates that may happen in the rule head will not trigger
% updates that may happen in the rule head will not longer trigger
% a notification. I am calling triple/3 directly as a workaround.
swrlx_insert_new_individual(A) :-
lang_is_a:unique_name(swlrx, A),
Expand Down

0 comments on commit 9ad360d

Please sign in to comment.