public:t-622-arti-11-1:lab_6_materials
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-622-arti-11-1:lab_6_materials [2011/03/02 18:43] – angelo | public:t-622-arti-11-1:lab_6_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * You can download [[http:// | * You can download [[http:// | ||
| * PowerLoom documentation in [[http:// | * PowerLoom documentation in [[http:// | ||
| + | * Some **helpful** commands: < | ||
| + | (all-facts-of X) ;; prints out all known facts about X | ||
| + | (help assert) | ||
| + | (demo) | ||
| + | </ | ||
| ==== Doing Knowledge Representation and Reasoning with PowerLoom ==== | ==== Doing Knowledge Representation and Reasoning with PowerLoom ==== | ||
| Line 16: | Line 21: | ||
| (reset-features) | (reset-features) | ||
| (in-dialect KIF) | (in-dialect KIF) | ||
| - | </ | + | </ |
| (save-module " | (save-module " | ||
| Line 23: | Line 28: | ||
| </ | </ | ||
| - **Defining a basic type/class predicate (a unary relation) called a " | - **Defining a basic type/class predicate (a unary relation) called a " | ||
| - | (defconcept Person(? | + | (defconcept Person(? |
| - | (defconcept Male (?p Person)) | + | (defconcept Male (?p Person)) |
| - | (defconcept Female (?p Person)) ;; A Female is a (subset of) Person | + | (defconcept Female (?p Person)) |
| </ | </ | ||
| - **Basic TELLing and ASKing:**\\ < | - **Basic TELLing and ASKing:**\\ < | ||
| Line 59: | Line 64: | ||
| </ | </ | ||
| (assert (= (GetFather Mary) Zod)) | (assert (= (GetFather Mary) Zod)) | ||
| - | </ | + | </ |
| (assert (<=> (= (GetFather ?c) ?f) (and (Male ?f) (ParentOf ?f ?c)))) | (assert (<=> (= (GetFather ?c) ?f) (and (Male ?f) (ParentOf ?f ?c)))) | ||
| - | </ | + | </ |
| - | - **Defining | + | * Is Zod Male? |
| - | </ | + | * Is Zod Mary's parent? |
| + | - **Defining | ||
| + | * SisterOf; | ||
| + | * AreSiblings; | ||
| + | * SonOf, DaughterOf, ChildOf; | ||
| + | * GrandmotherOf and GrandfatherOf; | ||
| + | * UncleOf, AuntOf; | ||
| + | * ... \\ and try **answering** questions like: | ||
| + | * Is X a sibling of Y? | ||
| + | * Who are X's grandmothers? | ||
| + | * Who are X's uncles? | ||
| + | * Does X's mother' | ||
| + | * ... | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-622-arti-11-1/lab_6_materials.1299091423.txt.gz · Last modified: 2024/04/29 13:32 (external edit)