Skip to content

Commit

Permalink
further fixing issue #115
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 1, 2024
1 parent 1cccfa1 commit 0e28f21
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 15 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

v10.19.9 (2024-09-01) further fixing issue https://github.com/eyereasoner/eye/issues/115
v10.19.8 (2024-08-30) fixing issue https://github.com/eyereasoner/eye/issues/115
v10.19.7 (2024-08-24) fixing query generation
v10.19.6 (2024-08-24) fixing issue https://github.com/eyereasoner/eye/issues/113
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.19.8
10.19.9
50 changes: 36 additions & 14 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:- catch(use_module(library(process)), _, true).
:- catch(use_module(library(http/http_open)), _, true).

version_info('EYE v10.19.8 (2024-08-30)').
version_info('EYE v10.19.9 (2024-09-01)').

license_info('MIT License

Expand Down Expand Up @@ -8194,16 +8194,20 @@
when(
( ground([X, Y])
),
( sub_atom(X, _, _, _, Y)
( escape_atom(X, Xe),
escape_atom(Y, Ye),
sub_atom(Xe, _, _, _, Ye)
)
).

'<http://www.w3.org/2000/10/swap/string#containsIgnoringCase>'(literal(X, Z), literal(Y, Z)) :-
when(
( ground([X, Y])
),
( downcase_atom(X, U),
downcase_atom(Y, V),
( escape_atom(X, Xe),
escape_atom(Y, Ye),
downcase_atom(Xe, U),
downcase_atom(Ye, V),
sub_atom(U, _, _, _, V)
)
).
Expand All @@ -8212,8 +8216,10 @@
when(
( ground([X, Y])
),
( downcase_atom(X, R),
downcase_atom(Y, S),
( escape_atom(X, Xe),
escape_atom(Y, Ye),
downcase_atom(Xe, R),
downcase_atom(Ye, S),
normalize_space(atom(U), R),
normalize_space(atom(V), S),
sub_atom(U, _, _, _, V)
Expand All @@ -8224,7 +8230,9 @@
when(
( ground([X, Y])
),
( sub_atom(X, _, _, 0, Y)
( escape_atom(X, Xe),
escape_atom(Y, Ye),
sub_atom(Xe, _, _, 0, Ye)
)
).

Expand All @@ -8241,11 +8249,13 @@
when(
( ground([A, B])
),
( atom_codes(A, D),
( escape_atom(A, Ae),
atom_codes(Ae, D),
subst([[[0'%, 0's], [0'~, 0'w]]], D, E),
preformat(B, F),
format_to_chars(E, F, G),
atom_codes(C, G)
atom_codes(Ce, G),
escape_atom(C, Ce)
)
).

Expand Down Expand Up @@ -8340,7 +8350,9 @@
when(
( ground(X)
),
( downcase_atom(X, Y)
( escape_atom(X, Xe),
downcase_atom(Xe, Ye),
escape_atom(Y, Ye)
)
).

Expand Down Expand Up @@ -8474,7 +8486,9 @@
),
( H < 0
-> D = ''
; sub_atom(A, G, H, _, D)
; escape_atom(A, Ae),
escape_atom(D, De),
sub_atom(Ae, G, H, _, De)
)
)
).
Expand All @@ -8493,7 +8507,9 @@
),
( H < 0
-> D = []
; sub_atom(A, G, H, _, D)
; escape_atom(A, Ae),
escape_atom(D, De),
sub_atom(Ae, G, H, _, De)
)
)
).
Expand All @@ -8502,7 +8518,9 @@
when(
( ground(X)
),
( upcase_atom(X, Y)
( escape_atom(X, Xe),
upcase_atom(Xe, Ye),
escape_atom(Y, Ye)
)
).

Expand Down Expand Up @@ -12504,6 +12522,9 @@
getstring(A, B) :-
'<http://www.w3.org/2000/10/swap/log#uri>'(A, B),
!.
getstring(literal(A, B), literal(C, B)) :-
!,
escape_atom(A, C).
getstring(A, A).

getcodes(literal(A, _), B) :-
Expand All @@ -12523,8 +12544,9 @@

preformat([], []) :-
!.
preformat([literal(A, type('<http://www.w3.org/2001/XMLSchema#string>'))|B], [A|D]) :-
preformat([literal(A, type('<http://www.w3.org/2001/XMLSchema#string>'))|B], [C|D]) :-
!,
escape_atom(A, C),
preformat(B, D).
preformat([A|B], [A|D]) :-
preformat(B, D).
Expand Down
Binary file modified eye.zip
Binary file not shown.

0 comments on commit 0e28f21

Please sign in to comment.