Skip to content

Commit 9cc32a4

Browse files
committed
add test case for two nested slots
documentation added that oid is required for nested slotted atom
1 parent 2cffc9e commit 9cc32a4

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed

PSOATransRun/testsynsem/atomic_implicit_1tuple1_nested-slot/atomic_implicit_1tuple1_nested-slot-KB.psoa

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ RuleML(
77
% implicit tuple
88
% 1 element
99
% nested atom
10-
% oid
10+
% oid (not optional, otherwise exception is thrown)
1111
% single slot, no tuple
1212
% constant arguments
1313
p(o#q(a->b))
1414
% Translated KB:
15-
% sloterm('_1','_a','_b').
16-
% memterm('_1','_q').
17-
% prdtupterm('_2','_p','_1').
18-
% memterm('_2','_p').
15+
% sloterm('_o','_a','_b').
16+
% memterm('_o','_q').
17+
% '_p'('_o').
1918
) )
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
RuleML(
2+
Assert(
3+
% atomic-formula expressivity
4+
% relationships
5+
% single tuple
6+
% dependent tuple
7+
% implicit tuple
8+
% 1 element
9+
% nested atom
10+
% oid (not optional, otherwise exception is thrown)
11+
% two slots, no tuple
12+
% constant arguments
13+
p(o#q(a->b c-> d))
14+
% Translated KB:
15+
% sloterm('_o','_a','_b').
16+
% sloterm('_o','_c','_d').
17+
% memterm('_o','_q').
18+
% '_p'('_o').
19+
) )
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Yes
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
p(?#q(a->b))
2+
% ((sloterm(Q1,'_a','_b'),memterm(Q1,'_q')),'_p'(Q1)).
3+
% Correctness Criterion: Query for ground atom with implicit single tuple of
4+
% one nested atom with slot against KB containing only that ground atom answers "Yes".

0 commit comments

Comments
 (0)