forked from drspro/metta-wam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
located.kif.metta
executable file
·58 lines (48 loc) · 1.58 KB
/
located.kif.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
;; Auto-generated by suo-kif-to-metta.sh
;; Self-contained SUO-KIF file extracted from
;;
;; https://github.com/ontologyportal/sumo/blob/master/Merge.kif
;;
;; containing knowledge about `located` and related symbols.
(subclass TransitiveRelation BinaryRelation)
(disjoint TransitiveRelation IntransitiveRelation)
(documentation TransitiveRelation EnglishLanguage "A &%BinaryRelation $REL is transitive
if ($REL $INST1 $INST2) and ($REL $INST2 $INST3) imply ($REL $INST1 $INST3),
for all $INST1, $INST2, and $INST3.")
;; TODO: re-enable when ($REL $INST1 $INST2) does not lead to an
;; infinite recursion.
;;
;; (⟹
;; (instance $REL TransitiveRelation)
;; (∀ ($INST1 $INST2 $INST3)
;; (⟹
;; (∧
;; ($REL $INST1 $INST2)
;; ($REL $INST2 $INST3))
;; ($REL $INST1 $INST3))))
;; In the meantime we manually instantiate the relation located. We
;; remove the ∀ in the process to avoid ($INST1 $INST2 $INST3) which
;; also leads to an infinite recursion, and is not actually mandatory
;; anymore.
(⟹
(∧
(located $INST1 $INST2)
(located $INST2 $INST3))
(located $INST1 $INST3))
(instance located TransitiveRelation)
(⟹
(orientation $OBJ1 $OBJ2 Inside)
(located $OBJ1 $OBJ2))
;; Add instances of `located`, extracted from
;;
;; https://github.com/ontologyportal/sumo/blob/master/tests/SP03.kif.tq
;;
;; to test it.
(instance JohnsHouse Building)
(instance John Human)
(instance SanJose City)
(orientation John JohnsHouse Inside)
(located JohnsHouse SanJose)
;; An example of query would be
;;
;; (located John SanJose)