Skip to content

Commit

Permalink
renaming recent work to rdfreasoning
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Nov 20, 2023
1 parent 322eaca commit 079cf9a
Show file tree
Hide file tree
Showing 69 changed files with 36 additions and 33 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

v8.6.14 (2023-11-20) renaming recent work to rdfreasoning
v8.6.13 (2023-11-18) beautifying output for looking-through-rdf-glasses
v8.6.12 (2023-11-17) supporting shorthand 'a' in 3-tuples
v8.6.11 (2023-11-17) further fixing output for looking-through-rdf-glasses
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.6.13
8.6.14
44 changes: 22 additions & 22 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:- use_module(library(pcre)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('EYE v8.6.13 (2023-11-18)').
version_info('EYE v8.6.14 (2023-11-20)').

license_info('MIT License

Expand Down Expand Up @@ -418,8 +418,8 @@
; true
),
args(Args),
( flag(looking_through_rdf_glasses)
-> looking_through_rdf_glasses
( flag(rdfreasoning)
-> rdfreasoning
; true
),
( flag(blogic)
Expand Down Expand Up @@ -481,7 +481,7 @@
\+query(_, _),
\+flag('pass-only-new'),
\+flag(strings),
\+flag(looking_through_rdf_glasses),
\+flag(rdfreasoning),
\+flag(blogic)
-> throw(halt(0))
; true
Expand Down Expand Up @@ -617,10 +617,10 @@
).

%
% RDF Language
% RDF Reasoning
%

looking_through_rdf_glasses :-
rdfreasoning :-
% create list terms
( pred(P),
P \= '<http://www.w3.org/1999/02/22-rdf-syntax-ns#first>',
Expand Down Expand Up @@ -1462,8 +1462,8 @@
Triple =.. [Predicate, Subject, Object],
djiti_assertz(Triple),
( Predicate = '<http://eyereasoner.github.io/rule#premise>',
\+flag(looking_through_rdf_glasses)
-> assertz(flag(looking_through_rdf_glasses))
\+flag(rdfreasoning)
-> assertz(flag(rdfreasoning))
; true
),
( flag(intermediate, Out)
Expand Down Expand Up @@ -1524,8 +1524,8 @@
; true
),
( Rt = '<http://eyereasoner.github.io/rule#premise>'(_, _),
\+flag(looking_through_rdf_glasses)
-> assertz(flag(looking_through_rdf_glasses))
\+flag(rdfreasoning)
-> assertz(flag(rdfreasoning))
; true
),
( functor(Rt, F, _),
Expand Down Expand Up @@ -2607,8 +2607,8 @@
{ prolog_verb(Item, Verb),
( atomic(Verb),
Verb = '\'<http://eyereasoner.github.io/rule#premise>\'',
\+flag(looking_through_rdf_glasses)
-> assertz(flag(looking_through_rdf_glasses))
\+flag(rdfreasoning)
-> assertz(flag(rdfreasoning))
; true
),
( atomic(Verb),
Expand Down Expand Up @@ -4155,7 +4155,7 @@
wp('<http://eulersharp.sourceforge.net/2003/03swap/log-rules#derive>'),
write(' true').
wt0('<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>') :-
flag(looking_through_rdf_glasses),
flag(rdfreasoning),
!,
write(a).
wt0([]) :-
Expand Down Expand Up @@ -4355,7 +4355,7 @@
write(' true')
; wt(X),
ws(X),
( flag(looking_through_rdf_glasses)
( flag(rdfreasoning)
-> true
; write('.')
),
Expand Down Expand Up @@ -4389,7 +4389,7 @@
indentation(-4),
indent,
write(']')
; ( flag(looking_through_rdf_glasses),
; ( flag(rdfreasoning),
is_lott([X|Y])
-> write('('),
indentation(4),
Expand Down Expand Up @@ -4666,7 +4666,7 @@
-> write('"'),
writeq(X),
write('"')
; ( flag(looking_through_rdf_glasses),
; ( flag(rdfreasoning),
\+nb_getval(indentation, 0)
-> write('(')
; true
Expand All @@ -4676,7 +4676,7 @@
wp(P),
write(' '),
wg(O),
( flag(looking_through_rdf_glasses),
( flag(rdfreasoning),
\+nb_getval(indentation, 0)
-> write(')')
; true
Expand All @@ -4688,7 +4688,7 @@
( atom(P)
-> X =.. [P, S, O],
wt2(X)
; ( flag(looking_through_rdf_glasses),
; ( flag(rdfreasoning),
\+nb_getval(indentation, 0)
-> write('(')
; true
Expand All @@ -4698,7 +4698,7 @@
wg(P),
write(' '),
wg(O),
( flag(looking_through_rdf_glasses),
( flag(rdfreasoning),
\+nb_getval(indentation, 0)
-> write(')')
; true
Expand Down Expand Up @@ -4753,7 +4753,7 @@
; F = ':-'
)
)
-> ( flag(looking_through_rdf_glasses)
-> ( flag(rdfreasoning)
-> write('(')
; write('{')
),
Expand All @@ -4776,15 +4776,15 @@
-> true
; ( flag('no-beautified-output')
-> true
; ( flag(looking_through_rdf_glasses)
; ( flag(rdfreasoning)
-> true
; write('.')
),
nl,
indent
)
),
( flag(looking_through_rdf_glasses)
( flag(rdfreasoning)
-> write(')')
; write('}')
)
Expand Down
Binary file modified eye.zip
Binary file not shown.
5 changes: 0 additions & 5 deletions looking-through-rdf-glasses/README

This file was deleted.

3 changes: 0 additions & 3 deletions looking-through-rdf-glasses/temp/README

This file was deleted.

5 changes: 5 additions & 0 deletions rdfreasoning/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-------------
RDF Reasoning
-------------

Reasoning with rules described in RDF.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions rdfreasoning/temp/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-------------
RDF Reasoning
-------------

Testing various cases.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion looking-through-rdf-glasses/test → rdfreasoning/test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NORMAL="\e[0;39m"
OK=0
FAILED=0

echo -e "${YELLOW}Running eye/looking-through-rdf-glasses/test${NORMAL}"
echo -e "${YELLOW}Running eye/rdfreasoning/test${NORMAL}"
echo ""

for dir in */
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ pushd ~/github.com/eyereasoner/eye/reasoning > /dev/null
popd > /dev/null
echo ""

pushd ~/github.com/eyereasoner/eye/looking-through-rdf-glasses > /dev/null
pushd ~/github.com/eyereasoner/eye/rdfreasoning > /dev/null
./test
popd > /dev/null

0 comments on commit 079cf9a

Please sign in to comment.