Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cogsys
public
Multi-Level-Multi-Modal-Explanation
Commits
872d374c
Commit
872d374c
authored
Sep 28, 2021
by
Finzel, Bettina
Browse files
Added output files, updated Readmes and simplified dialogue
parent
3a951b46
Changes
29
Hide whitespace changes
Inline
Side-by-side
Tree_Rule1_tracks_down(bobby,parsley).pl
0 → 100644
View file @
872d374c
tracks_down
(
bobby
,
parsley
)
is_parent
is_
(
parsley
,
plant
)
.
tracks_down
(
bobby
,
parsley
)
is_parent
is_
(
bobby
,
herbivore
)
.
is_
(
parsley
,
plant
)
is_parent
is_a
(
parsley
,
herb
)
.
is_
(
parsley
,
plant
)
is_parent
is_
(
herb
,
plant
)
.
is_a
(
parsley
,
herb
)
is_parent
true
.
is_
(
herb
,
plant
)
is_parent
is_a
(
herb
,
plant
)
.
is_a
(
herb
,
plant
)
is_parent
true
.
is_
(
bobby
,
herbivore
)
is_parent
is_a
(
bobby
,
rabbit
)
.
is_
(
bobby
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
bobby
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
Tree_Rule1_tracks_down(fluffy,clover).pl
0 → 100644
View file @
872d374c
tracks_down
(
fluffy
,
clover
)
is_parent
is_
(
clover
,
plant
)
.
tracks_down
(
fluffy
,
clover
)
is_parent
is_
(
fluffy
,
herbivore
)
.
is_
(
clover
,
plant
)
is_parent
is_a
(
clover
,
flower
)
.
is_
(
clover
,
plant
)
is_parent
is_
(
flower
,
plant
)
.
is_a
(
clover
,
flower
)
is_parent
true
.
is_
(
flower
,
plant
)
is_parent
is_a
(
flower
,
plant
)
.
is_a
(
flower
,
plant
)
is_parent
true
.
is_
(
fluffy
,
herbivore
)
is_parent
is_a
(
fluffy
,
rabbit
)
.
is_
(
fluffy
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
fluffy
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
Tree_Rule1_tracks_down(fluffy,rosemary).pl
0 → 100644
View file @
872d374c
tracks_down
(
fluffy
,
rosemary
)
is_parent
is_
(
rosemary
,
plant
)
.
tracks_down
(
fluffy
,
rosemary
)
is_parent
is_
(
fluffy
,
herbivore
)
.
is_
(
rosemary
,
plant
)
is_parent
is_a
(
rosemary
,
herb
)
.
is_
(
rosemary
,
plant
)
is_parent
is_
(
herb
,
plant
)
.
is_a
(
rosemary
,
herb
)
is_parent
true
.
is_
(
herb
,
plant
)
is_parent
is_a
(
herb
,
plant
)
.
is_a
(
herb
,
plant
)
is_parent
true
.
is_
(
fluffy
,
herbivore
)
is_parent
is_a
(
fluffy
,
rabbit
)
.
is_
(
fluffy
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
fluffy
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
Tree_Rule1_tracks_down(tipsie,rosemary).pl
0 → 100644
View file @
872d374c
tracks_down
(
tipsie
,
rosemary
)
is_parent
is_
(
rosemary
,
plant
)
.
tracks_down
(
tipsie
,
rosemary
)
is_parent
is_
(
tipsie
,
herbivore
)
.
is_
(
rosemary
,
plant
)
is_parent
is_a
(
rosemary
,
herb
)
.
is_
(
rosemary
,
plant
)
is_parent
is_
(
herb
,
plant
)
.
is_a
(
rosemary
,
herb
)
is_parent
true
.
is_
(
herb
,
plant
)
is_parent
is_a
(
herb
,
plant
)
.
is_a
(
herb
,
plant
)
is_parent
true
.
is_
(
tipsie
,
herbivore
)
is_parent
is_a
(
tipsie
,
mouse
)
.
is_
(
tipsie
,
herbivore
)
is_parent
is_
(
mouse
,
herbivore
)
.
is_a
(
tipsie
,
mouse
)
is_parent
true
.
is_
(
mouse
,
herbivore
)
is_parent
is_a
(
mouse
,
herbivore
)
.
is_a
(
mouse
,
herbivore
)
is_parent
true
.
Tree_Rule2_tracks_down(bella,bobby).pl
0 → 100644
View file @
872d374c
tracks_down
(
bella
,
bobby
)
is_parent
is_
(
bobby
,
herbivore
)
.
tracks_down
(
bella
,
bobby
)
is_parent
is_
(
bella
,
carnivore
)
.
is_
(
bobby
,
herbivore
)
is_parent
is_a
(
bobby
,
rabbit
)
.
is_
(
bobby
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
bobby
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
is_
(
bella
,
carnivore
)
is_parent
is_a
(
bella
,
fox
)
.
is_
(
bella
,
carnivore
)
is_parent
is_
(
fox
,
carnivore
)
.
is_a
(
bella
,
fox
)
is_parent
true
.
is_
(
fox
,
carnivore
)
is_parent
is_a
(
fox
,
carnivore
)
.
is_a
(
fox
,
carnivore
)
is_parent
true
.
Tree_Rule2_tracks_down(bella,tipsie).pl
0 → 100644
View file @
872d374c
tracks_down
(
bella
,
tipsie
)
is_parent
is_
(
tipsie
,
herbivore
)
.
tracks_down
(
bella
,
tipsie
)
is_parent
is_
(
bella
,
carnivore
)
.
is_
(
tipsie
,
herbivore
)
is_parent
is_a
(
tipsie
,
mouse
)
.
is_
(
tipsie
,
herbivore
)
is_parent
is_
(
mouse
,
herbivore
)
.
is_a
(
tipsie
,
mouse
)
is_parent
true
.
is_
(
mouse
,
herbivore
)
is_parent
is_a
(
mouse
,
herbivore
)
.
is_a
(
mouse
,
herbivore
)
is_parent
true
.
is_
(
bella
,
carnivore
)
is_parent
is_a
(
bella
,
fox
)
.
is_
(
bella
,
carnivore
)
is_parent
is_
(
fox
,
carnivore
)
.
is_a
(
bella
,
fox
)
is_parent
true
.
is_
(
fox
,
carnivore
)
is_parent
is_a
(
fox
,
carnivore
)
.
is_a
(
fox
,
carnivore
)
is_parent
true
.
Tree_Rule2_tracks_down(samson,fluffy).pl
0 → 100644
View file @
872d374c
tracks_down
(
samson
,
fluffy
)
is_parent
is_
(
fluffy
,
herbivore
)
.
tracks_down
(
samson
,
fluffy
)
is_parent
is_
(
samson
,
carnivore
)
.
is_
(
fluffy
,
herbivore
)
is_parent
is_a
(
fluffy
,
rabbit
)
.
is_
(
fluffy
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
fluffy
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
is_
(
samson
,
carnivore
)
is_parent
is_a
(
samson
,
dog
)
.
is_
(
samson
,
carnivore
)
is_parent
is_
(
dog
,
carnivore
)
.
is_a
(
samson
,
dog
)
is_parent
true
.
is_
(
dog
,
carnivore
)
is_parent
is_a
(
dog
,
carnivore
)
.
is_a
(
dog
,
carnivore
)
is_parent
true
.
explanatory_tree.pl
0 → 100644
View file @
872d374c
tracks_down
(
bobby
,
dandelion
)
is_parent
is_
(
dandelion
,
plant
)
.
tracks_down
(
bobby
,
dandelion
)
is_parent
is_
(
bobby
,
herbivore
)
.
is_
(
dandelion
,
plant
)
is_parent
is_a
(
dandelion
,
flower
)
.
is_
(
dandelion
,
plant
)
is_parent
is_
(
flower
,
plant
)
.
is_a
(
dandelion
,
flower
)
is_parent
true
.
is_
(
flower
,
plant
)
is_parent
is_a
(
flower
,
plant
)
.
is_a
(
flower
,
plant
)
is_parent
true
.
is_
(
bobby
,
herbivore
)
is_parent
is_a
(
bobby
,
rabbit
)
.
is_
(
bobby
,
herbivore
)
is_parent
is_
(
rabbit
,
herbivore
)
.
is_a
(
bobby
,
rabbit
)
is_parent
true
.
is_
(
rabbit
,
herbivore
)
is_parent
is_a
(
rabbit
,
herbivore
)
.
is_a
(
rabbit
,
herbivore
)
is_parent
true
.
% tree operators
:-
op
(
500
,
xfx
,
'is_parent'
).
:-
op
(
500
,
xfx
,
'is_sibling_of'
).
X
is_sibling_of
Y
:-
Z
is_parent
X
,
Z
is_parent
Y
,
X
\
==
Y
.
leaf_node
(
Node
)
:-
\
+
is_parent
(
Node
,
Child
).
:-
op
(
500
,
xfx
,
'is_at_same_level'
).
X
is_at_same_level
Y
:-
W
is_parent
X
,
Z
is_parent
Y
,
W
is_at_same_level
Z
.
\ No newline at end of file
operators.pl
0 → 100644
View file @
872d374c
% tree operators
:-
op
(
500
,
xfx
,
'is_parent'
).
:-
op
(
500
,
xfx
,
'is_sibling_of'
).
X
is_sibling_of
Y
:-
Z
is_parent
X
,
Z
is_parent
Y
,
X
\
==
Y
.
leaf_node
(
Node
)
:-
\
+
is_parent
(
Node
,
Child
).
:-
op
(
500
,
xfx
,
'is_at_same_level'
).
X
is_at_same_level
Y
:-
W
is_parent
X
,
Z
is_parent
Y
,
W
is_at_same_level
Z
.
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment