Skip to content

Commit

Permalink
having functional terms as triple terms <<( functor func:args (argume…
Browse files Browse the repository at this point in the history
…nts) )>>
  • Loading branch information
josd committed Oct 17, 2024
1 parent 914b754 commit 208dd32
Show file tree
Hide file tree
Showing 12 changed files with 628 additions and 653 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.25.1 (2024-10-17) having functional terms as triple terms <<( functor func:args (arguments) )>>
v10.25.0 (2024-10-17) introducing (^ functor args) functional terms
v10.24.23 (2024-10-16) adding list:reverse built-in and rdfdatasets lee example
v10.24.22 (2024-10-15) not asserting graph:statement when the name is in use
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.25.0
10.25.1
12 changes: 1 addition & 11 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.25.0 (2024-10-17)').
version_info('EYE v10.25.1 (2024-10-17)').

license_info('MIT License

Expand Down Expand Up @@ -2140,11 +2140,6 @@
{ sort(List, Distinct)
},
['$', ')'].
pathitem(functional(List), Triples) -->
['(', '^'],
!,
pathlist(List, Triples),
[')'].
pathitem(List, Triples) -->
['('],
!,
Expand Down Expand Up @@ -4127,11 +4122,6 @@
write('($'),
wl(X),
write(' $)').
wt1(functional(X)) :-
!,
write('(^'),
wl(X),
write(')').
wt1('$VAR'(X)) :-
!,
write('?V'),
Expand Down
Binary file modified eye.zip
Binary file not shown.
5 changes: 0 additions & 5 deletions reasoning/functionals/README

This file was deleted.

3 changes: 0 additions & 3 deletions reasoning/functionals/cat-answer.n3

This file was deleted.

9 changes: 0 additions & 9 deletions reasoning/functionals/cat.n3

This file was deleted.

2 changes: 0 additions & 2 deletions reasoning/functionals/test

This file was deleted.

5 changes: 3 additions & 2 deletions reasoning/good-cobbler/cobbler.n3
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# Example from https://shs.hal.science/halshs-04148373/document
# Using term logic http://intrologic.stanford.edu/chapters/chapter_11.html

@prefix func: <http://www.w3.org/2000/10/swap/func#>.
@prefix : <urn:example:>.

# some x is a good cobbler
_:x :is (^ :good :Cobbler).
_:x a <<( :good func:args (:Cobbler) )>>.

# is there some x which is good at some y
{
?x :is (^ :good ?y).
?x a <<( :good func:args (?y) )>>.
} =^ {
:test :is true.
}.
3 changes: 2 additions & 1 deletion reasoning/peano/peano-answer.n3
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@prefix : <http://example.org/#>.
@prefix func: <http://www.w3.org/2000/10/swap/func#>.

(^ :s (^ :s (^ :s (^ :s (^ :s 0))))) :factorial (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s (^ :s 0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))).
<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (0) )>>) )>>) )>>) )>>) )>> :factorial <<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (<<( :s func:args (0) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>) )>>.
Loading

0 comments on commit 208dd32

Please sign in to comment.