forked from trueagi-io/hyperon-experimental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha2_opencoggy.metta
35 lines (32 loc) · 915 Bytes
/
a2_opencoggy.metta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; We can use Nodes and Links in the OpenCog Classic style,
; because these are also symbolic expressions,
; although Concept and List will not be turned into types
; and will remain just symbols in expressions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(EvaluationLink
(PredicateNode "eats")
(ListLink
(ConceptNode "Sam")
(ConceptNode "flies")))
(EvaluationLink
(PredicateNode "eats")
(ListLink
(ConceptNode "Bill")
(ConceptNode "pizza")))
(EvaluationLink
(PredicateNode "eats")
(ListLink
(ConceptNode "Fritz")
(ConceptNode "flies")))
!(assertEqualToResult
(match &self
(EvaluationLink
(PredicateNode "eats")
(ListLink
$x
(ConceptNode "flies")))
$x)
((ConceptNode "Sam")
(ConceptNode "Fritz")))