Prolog fact statement rule statement goal statement 7 Slides: 18 Download presentation Prolog 語言的陳述 事實陳述(fact statement) ¡ 規則陳述(rule statement) ¡ 目的陳述(goal statement) ¡ 7 事實陳述 ¡ 實例 l l ¡ 個體的性質 female(helen). male(peter). female(jane). male(john). 個體與個體之間的關係 son(john, helen). son(john, peter). daughter(jane, helen). daughter(jane, peter). 注意 l Prolog的敘述之後,必須有句點作為結束 9 精選習題 ¡ 假設有一個PROLOG程式如下: class_sem(drinks, drink). class_sem(candies, food). class_sem(cakes, food). class_sem(tea, beverage). class_sem(coffee, beverage). sem_class([], []). sem_class([X|T], [Y|R]): -class_sem(X, Y), sem_class(T, R). 假設所輸入之問句為: ? - sem_class([mary, eats, cakes], Answer). 則Answer之結果為? 16 Visual prolog tutorialVisual prolog vs swi-prologClaim of policy.Example of factFact and opinion newspaper articlesMisstatement or incomplete statement of material factFrench fries taste better with ketchup fact or opinionSine rule cosine ruleCos ruleCosine rule bbcJunction rule equationProduct and sum ruleDillon ruleKirchhoff's loop law equationWhat is with the rule and against the rule astigmatismClassification of astigmatismAstigmatism classificationProduct rule vs chain ruleChain rule範例