Skip to content

Commit 7130109

Browse files
author
tara
committed
add testcase for nested positional atoms
1 parent aa197b3 commit 7130109

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
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
11+
% single tuple
12+
% 1 element
13+
% constant arguments
14+
p(o#q(a))
15+
% Translated KB:
16+
% prdtupterm('_o','_q','_a').
17+
% memterm('_o','_q').
18+
% '_p'('_o').
19+
) )
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Yes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
No
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
p(?#q(a))
2+
% ((prdtupterm(Q1,'_q','_a'),memterm(Q1,'_q')),'_p'(Q1)).
3+
% Correctness Criterion: Query for ground atom with implicit tuple having arity 1 containing
4+
% one nested oidful (don't care variable) atom with one argument against KB containing only a matching ground atom answers "Yes".
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
p(q(a))
2+
% '_p'('_q'('_a')).
3+
% Correctness Criterion: Query for ground atom with implicit tuple having arity 1 containing
4+
% a functional expression with one argument against KB containing only a
5+
% similar ground nested atom answers "No".

0 commit comments

Comments
 (0)