-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing log:notIncludes and log:notEqualTo for existential rules per i…
…ssue #25 (obs from Doerthe Arndt)
- Loading branch information
Showing
18 changed files
with
131 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
EYE v21.1125.2043 josd | ||
EYE v21.1203.1050 josd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-------- | ||
Issue 25 | ||
-------- | ||
|
||
See https://github.com/josd/eye/issues/25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test1.n3 --pass-only-new > test1-pass-only-new.n3 | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test2.n3 --pass-only-new > test2-pass-only-new.n3 | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test3.n3 --pass-only-new > test3-pass-only-new.n3 | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test4.n3 --pass-only-new > test4-pass-only-new.n3 | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test5.n3 --pass-only-new > test5-pass-only-new.n3 | ||
eye "$@" --wcache http://josd.github.io/eye/reasoning .. --nope http://josd.github.io/eye/reasoning/issue25/test6.n3 --pass-only-new > test6-pass-only-new.n3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:test :pass 1 . | ||
:test :pass 2 . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:alice :name "alice". | ||
:bob :name "bob". | ||
:charlie :name "charlie". | ||
|
||
:alice :says { :bob a :NiceGuy }. | ||
|
||
@forAll :y. | ||
|
||
{ :alice :says ?x. | ||
:y :name "charlie". | ||
?x log:notIncludes { :y a :NiceGuy }. | ||
} => { :test :pass 1 }. | ||
|
||
{ :alice :says ?x. | ||
?x log:notIncludes { :y a :NiceGuy }. | ||
:y :name "charlie". | ||
} => { :test :pass 2 }. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
#G1 | ||
:gang :contains :bob, :charlie. | ||
:alice :says { :bob :name "bob" }. | ||
{ | ||
:alice :says _:g. | ||
_:g log:notIncludes { _:s _:p _:o } | ||
:gang :contains _:s. | ||
} => { | ||
:alice :ignores _:s. | ||
}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob :father _:sk_0. | ||
_:sk_0 a :Man. | ||
:my :graph {:bob :father :ted. :bob :father :ted}. | ||
:my :graph {:bob :father :ted. :bob :father _:sk_0}. | ||
:my :graph {:bob :father _:sk_0. :bob :father _:sk_0}. | ||
:ted a :Man. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob a :Person. | ||
:bob :father :ted. | ||
|
||
{?x a :Person}=>{?x :father _:y. _:y a :Man}. | ||
{?x :father ?y. ?x :father ?z. ({?x :father ?y. ?x :father ?z.}) log:conjunction ?u}=>{:my :graph ?u}. | ||
{ :bob :father ?y. :bob :father ?z. :my :graph ?u. ?u log:notIncludes {:bob :father ?y. :bob :father ?z.} }=>{:o :o :o}. | ||
|
||
{?x :father ?y}=>{?y a :Man}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:my :graph {:bob :father :ted. :bob :father :ted}. | ||
:ted a :Man. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob a :Person. | ||
:bob :father :ted. | ||
|
||
{?x :father ?y. ?x :father ?z. ({?x :father ?y. ?x :father ?z.}) log:conjunction ?u}=>{:my :graph ?u}. | ||
{ :bob :father ?y. :bob :father ?z. :my :graph ?u. ?u log:notIncludes {:bob :father ?y. :bob :father ?z.} }=>{:o :o :o}. | ||
|
||
{?x :father ?y}=>{?y a :Man}. | ||
{?x a :Person}=>{?x :father _:y. _:y a :Man}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:ted a :Man. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob a :Person. | ||
:bob :father :ted. | ||
|
||
{?x :father ?y}=>{?y a :Man}. | ||
{?x a :Person}=>{?x :father _:y. _:y a :Man}. | ||
{?x :father ?y. ?x :father ?z. ?y log:notEqualTo ?z}=>{:here :I :am}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob :father _:sk_0. | ||
_:sk_0 a :Man. | ||
:ted a :Man. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX : <http://example.org/test#> | ||
|
||
:bob a :Person. | ||
:bob :father :ted. | ||
|
||
{?x a :Person}=>{?x :father _:y. _:y a :Man}. | ||
{?x :father ?y. ?x :father ?z. ?y log:notEqualTo ?z}=>{:here :I :am}. | ||
{?x :father ?y}=>{?y a :Man}. |