Skip to content

Commit

Permalink
removing unused predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Mar 6, 2024
1 parent fc855cd commit db5c946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7
0.0.8
45 changes: 5 additions & 40 deletions see.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:- use_module(library(semweb/turtle)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('SEE v0.0.7 (2024-03-06)').
version_info('SEE v0.0.8 (2024-03-07)').

help_info('Usage: see <options>* <data>*
see
Expand Down Expand Up @@ -451,38 +451,10 @@
trig_term(A, B) :-
atomic_list_concat(['<', A, '>'], B).

rename('\'<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>\'', []) :-
!.
rename('\'<http://www.w3.org/2000/10/swap/log#isImpliedBy>\'', ':-') :-
!.
rename(A, A).

%
% Reasoning output
%

w0([]) :-
!.
w0([A|B]) :-
( \+sub_atom(A, 1, _, _, '"'),
sub_atom(A, _, 1, _, ' '),
\+sub_atom(A, _, _, 1, '"')
-> format(' "~w"', [A])
; format(' ~w', [A])
),
w0(B).

w1([]) :-
!.
w1([A|B]) :-
( \+sub_atom(A, 1, _, _, '"'),
sub_atom(A, _, 1, _, ' '),
\+sub_atom(A, _, _, 1, '"')
-> format(' "~w"', [A])
; format(' ~w', [A])
),
w1(B).

wh :-
( keep_skolem(_)
-> nb_getval(var_ns, Sns),
Expand Down Expand Up @@ -551,7 +523,7 @@
wt(X) :-
var(X),
!,
write('?'),
write('var:'),
write(X).
wt(X) :-
functor(X, _, A),
Expand Down Expand Up @@ -595,7 +567,7 @@
)
; memberchk(X, L)
)
-> write('?U_')
-> write('var:U_')
; write('_:sk_')
),
write(Y).
Expand Down Expand Up @@ -635,7 +607,7 @@
-> write('_:')
; sub_atom(Y, 0, 2, _, Z),
memberchk(Z, ['x_', 't_']),
write('?')
write('var:')
)
; write('_:')
),
Expand Down Expand Up @@ -968,7 +940,7 @@
wg(X) :-
var(X),
!,
write('?'),
write('var:'),
write(X).
wg(X) :-
functor(X, F, A),
Expand Down Expand Up @@ -2945,12 +2917,6 @@
),
nb_getval(scope, A).

exo_pred(exopred(P, S, O), A) :-
atomic(P),
!,
A =.. [P, S, O].
exo_pred(A, A).

exopred(P, S, O) :-
( var(P),
var(S),
Expand Down Expand Up @@ -4273,4 +4239,3 @@
)
),
flush_output(user_error).

0 comments on commit db5c946

Please sign in to comment.