forked from phillord/hermit-reasoner
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The fixes look correct to me, but I'm not 100% sure. However, better than failing a set of tests.
- Loading branch information
1 parent
c6db504
commit bdd964d
Showing
14 changed files
with
61 additions
and
108 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
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
19 changes: 0 additions & 19 deletions
19
src/test/java/org/semanticweb/HermiT/structural/AllTests.java
This file was deleted.
Oops, something went wrong.
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
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
12 changes: 8 additions & 4 deletions
12
src/test/resources/org/semanticweb/HermiT/structural/res/basic-control.txt
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,5 +1,9 @@ | ||
:d(X) :- :r(X,Y), def:0(Y) | ||
def:0(X) :- all:0_1(X) | ||
all:0_1(X) :- :s(X,Y), all:0_0(Y) | ||
all:0_0(X) :- :s(X,Y), all:0_0(Y) | ||
all:0_0(X) :- :c(X) | ||
def:0(X) :- all:0(X) | ||
all:0(X) :- all:2(X) | ||
all:2(X) :- :s(X,Y), all:3(Y) | ||
all:0(X) :- :s(X,Y), all:1(Y) | ||
all:3(X) :- all:1(X) | ||
all:1(X) :- all:0(X) | ||
all:3(X) :- all:2(X) | ||
all:1(X) :- :c(X) |
8 changes: 4 additions & 4 deletions
8
src/test/resources/org/semanticweb/HermiT/structural/res/has-self-1-control.txt
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,4 +1,4 @@ | ||
def:1(X) :- :r(X,Y) | ||
:r(X,X) :- def:0(X) | ||
def:0(:a) | ||
not def:1(:a) | ||
def:0(X) :- :r(X,Y) | ||
:r(X,X) :- def:1(X) | ||
def:1(:a) | ||
not def:0(:a) |
2 changes: 1 addition & 1 deletion
2
src/test/resources/org/semanticweb/HermiT/structural/res/nominals-1-control.txt
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,6 +1,6 @@ | ||
nom:i1(:i1) | ||
nom:i2(:i2) | ||
:r(X,Y) v :r(X,Y1) :- :c(X), nom:i1(Y), nom:i2(Y1) | ||
:r(X,Z) v :r(X,Z1) :- :c(X), nom:i1(Z), nom:i2(Z1) | ||
atLeast(1 :s not(def:0))(X) :- :d(X) | ||
def:0(:i1) | ||
def:0(:i2) |
12 changes: 6 additions & 6 deletions
12
src/test/resources/org/semanticweb/HermiT/structural/res/nominals-2-control.txt
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,9 +1,9 @@ | ||
:- :h(X), :r(X,Y), def:0(Y) | ||
Y == Z v Y == Z1 :- :f(X), :r(X,Y), nom:i1(Z), nom:i2(Z1) | ||
:r(X,Z) v :r(X,Z1) :- :c(X), nom:i1(Z), nom:i2(Z1) | ||
:- :g(X), :r(X,Y), nom:i1(Y) | ||
:r(X,Y) v :r(X,Y1) :- :c(X), nom:i1(Y), nom:i2(Y1) | ||
Y == Y1 v Y == Y2 :- :f(X), :r(X,Y), nom:i1(Y1), nom:i2(Y2) | ||
:e(X) v [Y1 == Y2]@atMost(2 :r :d)(X) v [Y1 == Y3]@atMost(2 :r :d)(X) v [Y2 == Y3]@atMost(2 :r :d)(X) :- Y1 <= Y2, Y2 <= Y3, :d(X), :d(Y1), :d(Y2), :d(Y3), :r(X,Y1), :r(X,Y2), :r(X,Y3), NodeIDsAscendingOrEqual(Y1,Y2,Y3) | ||
nom:i2(:i2) | ||
def:0(:i2) | ||
:- :h(X), :r(X,Y), def:0(Y) | ||
def:0(:i1) | ||
nom:i1(:i1) | ||
nom:i2(:i2) | ||
nom:i1(:i1) | ||
def:0(:i2) |
2 changes: 1 addition & 1 deletion
2
src/test/resources/org/semanticweb/HermiT/structural/res/nominals-3-control.txt
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,4 +1,4 @@ | ||
:r(Y,X) v :r(Y1,X) :- :c(X), nom:i1(Y), nom:i2(Y1) | ||
:e(X) v [Y1 == Y2]@atMost(2 :r :d)(X) v [Y1 == Y3]@atMost(2 :r :d)(X) v [Y2 == Y3]@atMost(2 :r :d)(X) :- Y1 <= Y2, Y2 <= Y3, :d(X), :d(Y1), :d(Y2), :d(Y3), :r(X,Y1), :r(X,Y2), :r(X,Y3), NodeIDsAscendingOrEqual(Y1,Y2,Y3) | ||
:r(Z,X) v :r(Z1,X) :- :c(X), nom:i1(Z), nom:i2(Z1) | ||
nom:i2(:i2) | ||
nom:i1(:i1) |
2 changes: 1 addition & 1 deletion
2
src/test/resources/org/semanticweb/HermiT/structural/res/nominals-4-control.txt
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,2 +1,2 @@ | ||
:hasSugar(X,Y) :- :Chianti(X), nom:Dry(Y) | ||
:hasSugar(X,Z) :- :Chianti(X), nom:Dry(Z) | ||
nom:Dry(:Dry) |