Skip to content

Commit f80241d

Browse files
committed
update Semantic Version and Naf tests
1 parent 92e211e commit f80241d

7 files changed

Lines changed: 47 additions & 46 deletions

File tree

PSOATransRun/src/main/java/org/ruleml/psoa/psoatransrun/PSOATransRun.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ else if (lang.equalsIgnoreCase("tptp"))
107107
{
108108
systemInstantiation = "[PSOA2TPTP,VampirePrime]";
109109
}
110-
return "PSOATransRun" + "1.4.4" + systemInstantiation;
110+
return "PSOATransRun" + "1.4.5" + systemInstantiation;
111111
}
112112

113113
/***
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
RuleML (
22
% Translation requires absence of option -s
3-
3+
44
Prefix(not: <http://psoa.ruleml.org/lib/not#>)
55
Import(<http://psoa.ruleml.org/lib/not.psoa>)
66
Assert (
77
bird(penguin)
8-
bird(eagle)
9-
bird(ostrich)
10-
bird(crow)
11-
bird(sparrow)
12-
bird(pigeon)
13-
14-
flightless_bird(penguin)
15-
flightless_bird(ostrich)
16-
17-
Forall ?X (
18-
can_fly(?X) :-
19-
And(
20-
bird(?X)
21-
not:Naf(flightless_bird(?X))
22-
)
23-
)
24-
8+
bird(eagle)
9+
bird(ostrich)
10+
bird(crow)
11+
bird(sparrow)
12+
bird(pigeon)
13+
14+
flightless_bird(penguin)
15+
flightless_bird(ostrich)
16+
17+
Forall ?X (
18+
can_fly(?X) :-
19+
And(
20+
bird(?X)
21+
not:Naf(flightless_bird(?X))
22+
)
23+
)
24+
2525
)
2626
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
?X=Var0 ?Y=Var1
1+
?X1=Var0 ?Y1=Var1 ?X2=Var2 ?Y2=Var3

PSOATransRun/test-basic/test-naf/naf_trivia/naf_trivia-answer2.psoa

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
unifiable(?X ?Y)
1+
% Two queries of two query files merged into one conjunction of one query file
2+
% to avoid possible order dependency w.r.t. answers
3+
% containing free variables coded as Var0, Var1, ... values
4+
And(unifiable(?X1 ?Y1) check_unifiability_without_unifying(?X2 ?Y2))

PSOATransRun/test-basic/test-naf/naf_trivia/naf_trivia-query2.psoa

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
% This KB is updated for transitioning to the new (= 1.4.5) ANTLR-based Naf and serves as a blueprint for
1+
% This KB is annotated for transitioning to the new (>= 1.4.5) ANTLR-based Naf and serves as a blueprint for
22
% updating KBs that use the built-in based Naf to the new (>= 1.4.5) Naf implementation.
3-
% Old KB: @@@
4-
% New KB: @@@
3+
% Old (non-annotated) KB: https://github.com/RuleML/PSOATransRunComponents/blob/master/PSOATransRun/test-DEPRECATED/built-in-based_naf/built-in-based_naf-KB.psoa
4+
% New (non-annotated) KB: https://github.com/RuleML/PSOATransRunComponents/blob/92e211e2ce16711d3b1f4e51b6d1e3682928b012/PSOATransRun/test-basic/test-naf/naf_core/naf_core-KB.psoa#L35
55

66
RuleML (
77

88
% Translation requires absence of option -s % >= 1.4.5: No longer applicable
9-
9+
1010
% >= 1.4.5: Remove the following Prefix:
1111
% Prefix(not: <http://psoa.ruleml.org/lib/not#>)
12-
12+
1313
% >= 1.4.5: Remove the following Import:
1414
% Import(<http://psoa.ruleml.org/lib/not.psoa>)
1515

1616
Assert (
1717
bird(penguin)
18-
bird(eagle)
19-
bird(ostrich)
20-
bird(crow)
21-
bird(sparrow)
22-
bird(pigeon)
23-
24-
flightless_bird(penguin)
25-
flightless_bird(ostrich)
26-
27-
Forall ?X (
28-
can_fly(?X) :-
29-
And(
30-
bird(?X)
31-
% not:Naf(flightless_bird(?X)) % >= 1.4.5: Remove the "not:" prefix as follows:
32-
Naf(flightless_bird(?X))
33-
)
34-
)
35-
18+
bird(eagle)
19+
bird(ostrich)
20+
bird(crow)
21+
bird(sparrow)
22+
bird(pigeon)
23+
24+
flightless_bird(penguin)
25+
flightless_bird(ostrich)
26+
27+
Forall ?X (
28+
can_fly(?X) :-
29+
And(
30+
bird(?X)
31+
% not:Naf(flightless_bird(?X)) % >= 1.4.5: Remove the "not:" prefix as follows:
32+
Naf(flightless_bird(?X))
33+
)
34+
)
35+
3636
)
3737
)

0 commit comments

Comments
 (0)