Skip to content

Commit

Permalink
scope of blank nodes is graph term for N3 and explicit for RDF Surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Oct 3, 2023
1 parent 810c9b7 commit f7b8158
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 31 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

v5.0.0 (2023-10-03) scope of blank nodes is graph term for N3 and explicit for RDF Surfaces
v4.18.7 (2023-10-02) refresh is now coherentlogic
v4.18.6 (2023-10-01) fixing trigger for refresh
v4.18.5 (2023-10-01) supporting premis disjunction for refresh
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.18.7
5.0.0
51 changes: 34 additions & 17 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 v4.18.7 (2023-10-02)').
version_info('EYE v5.0.0 (2023-10-03)').

license_info('MIT License

Expand Down Expand Up @@ -1460,9 +1460,9 @@
-> assertz(flag(coherentlogic))
; true
),
( \+flag(rdfsurfaces),
functor(Rt, F, _),
regex('^<.*#on.*Surface>$', F, _)
( functor(Rt, F, _),
regex('^<.*#on.*Surface>$', F, _),
\+flag(rdfsurfaces)
-> assertz(flag(rdfsurfaces))
; true
),
Expand Down Expand Up @@ -1970,10 +1970,6 @@
A =.. [C|D],
tr_tr(D, E),
( regex('^\'<.*#on.*Surface>\'$', C, _),
( \+flag(rdfsurfaces)
-> assertz(flag(rdfsurfaces))
; true
),
E = [V, G],
is_list(V),
is_graph(G),
Expand Down Expand Up @@ -2520,7 +2516,13 @@

propertylist(Subject, Triples) -->
verb(Item, Triples1),
{ prolog_verb(Item, Verb)
{ prolog_verb(Item, Verb),
( atomic(Verb),
regex('^\'<.*#on.*Surface>\'$', Verb, _),
\+flag(rdfsurfaces)
-> assertz(flag(rdfsurfaces))
; true
)
},
object(Object, Triples2),
{ ( Verb = isof(Vrb)
Expand Down Expand Up @@ -2684,14 +2686,29 @@
}.
symbol(Name) -->
[bnode(Lbl)],
{ atom_codes(Lbl, LblCodes),
subst([[[0'-], [0'_, 0'M, 0'I, 0'N, 0'U, 0'S, 0'_]], [[0'.], [0'_, 0'D, 0'O, 0'T, 0'_]]], LblCodes, LblTidy),
atom_codes(Label, LblTidy),
( evar(Label, S, 0)
-> true
; atom_concat(Label, '_', M),
gensym(M, S),
assertz(evar(Label, S, 0))
{ ( flag(rdfsurfaces)
-> atom_codes(Lbl, LblCodes),
subst([[[0'-], [0'_, 0'M, 0'I, 0'N, 0'U, 0'S, 0'_]], [[0'.], [0'_, 0'D, 0'O, 0'T, 0'_]]], LblCodes, LblTidy),
atom_codes(Label, LblTidy),
( evar(Label, S, 0)
-> true
; atom_concat(Label, '_', M),
gensym(M, S),
assertz(evar(Label, S, 0))
)
; nb_getval(fdepth, D),
( D =:= 0
-> Label = Lbl
; atom_codes(Lbl, LblCodes),
subst([[[0'-], [0'_, 0'M, 0'I, 0'N, 0'U, 0'S, 0'_]], [[0'.], [0'_, 0'D, 0'O, 0'T, 0'_]]], LblCodes, LblTidy),
atom_codes(Label, LblTidy)
),
( evar(Label, S, D)
-> true
; atom_concat(Label, '_', M),
gensym(M, S),
assertz(evar(Label, S, D))
)
),
( ( nb_getval(entail_mode, false),
nb_getval(fdepth, 0)
Expand Down
Binary file modified eye.zip
Binary file not shown.
20 changes: 10 additions & 10 deletions reasoning/bi/biA.n3
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@
{
{
<http://eyereasoner.github.io/eye/reasoning/bi/ab_c.n3> log:semantics {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
{
:a :b _:e_c_2.
:a :b _:e_c_14.
} log:equalTo {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
} => {
:loges3 :result true.
Expand Down Expand Up @@ -663,12 +663,12 @@
{
{
<http://eyereasoner.github.io/eye/reasoning/bi/ab_c.n3> log:semantics {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
{
:a :b _:e_c_2.
:a :b _:e_c_14.
} log:includes {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
} => {
:logis3 :result true.
Expand Down Expand Up @@ -791,10 +791,10 @@
{
{
<http://eyereasoner.github.io/eye/reasoning/bi/ab_c.n3> log:semantics {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
{
:a :b _:e_c_2.
:a :b _:e_c_14.
} log:notIncludes {
:a :b :c.
}.
Expand All @@ -805,13 +805,13 @@
{
{
<http://eyereasoner.github.io/eye/reasoning/bi/ab_c.n3> log:semantics {
:a :b _:e_c_2.
:a :b _:e_c_14.
}.
<http://eyereasoner.github.io/eye/reasoning/bi/abc.n3> log:semantics {
:a :b :c.
}.
{
:a :b _:e_c_2.
:a :b _:e_c_14.
} log:notIncludes {
:a :b :c.
}.
Expand Down
2 changes: 1 addition & 1 deletion reasoning/blogic/version.n3s.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@prefix log: <http://www.w3.org/2000/10/swap/log#>.

() log:version "EYE v4.18.7 (2023-10-02)".
() log:version "EYE v5.0.0 (2023-10-03)".
4 changes: 2 additions & 2 deletions reasoning/iq/iqA.n3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@prefix : <http://example.org/test#>.

_:e_x_1 :says {
_:e_x_1 :knows :Albert.
_:e_x_3 :knows :Albert.
}.
:s :p :o.
:s :pp {
Expand All @@ -10,7 +10,7 @@ _:e_x_1 :says {
{
?U_0 :knows :Albert.
} => {
?U_0 :knows :Kurt.
<http://eyereasoner.github.io/var#x_0> :knows :Kurt.
}.
{
:e :p :a.
Expand Down

0 comments on commit f7b8158

Please sign in to comment.