{"id":727,"date":"2012-03-06T17:58:19","date_gmt":"2012-03-06T17:58:19","guid":{"rendered":"http:\/\/www.websitedesignwebsitedevelopment.com\/?p=727"},"modified":"2014-03-19T09:13:55","modified_gmt":"2014-03-19T09:13:55","slug":"example-of-add-rules-in-knowledge-base-by-using-clips-commands","status":"publish","type":"post","link":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/","title":{"rendered":"Example of add rules in knowledge base by using clips commands"},"content":{"rendered":"<h2>Example of add rules in knowledge base by using clips commands<\/h2>\n<p>e.g.<\/p>\n<ol>\n<li>If a patient has 101 degree Fahrenheit temperature, yellow spots, red rash and infected throat then assert<br \/>\nthat disease is diagnosed as allergy and print out that patient is suffering from allergy.Note: Disease is a parameter of title diagnose<\/li>\n<li>If disease is diagnosed as allergy then assert that Novidat and Evil are the medicines suggested by the<br \/>\ndoctor as treatment and print out that Novidat and Evil medicines should be used.Note: Medicine is a parameter of title treatment.<\/li>\n<\/ol>\n<p><strong>Clips Commands &amp; Implementation:<\/strong><\/p>\n<ol>\n<li>\n<p>CLIPS> (defrule diagnose &#8220;Diagnose Disease for a Patient&#8221;<br \/>\n(temperature-is &#8220;101 degree fahrenheit&#8221;)<br \/>\n(spots-are yellow)<br \/>\n(rash-is red)<br \/>\n(throat-is infected)<br \/>\n=><br \/>\n(assert (disease-diagnosed-as allergy))<br \/>\n)<\/p>\n<p>CLIPS> (assert (temperature-is &#8220;101 degree fahrenheit&#8221;))<br \/>\n<Fact-0><br \/>\nCLIPS> (assert (spots-are yellow))<br \/>\n<Fact-1><br \/>\nCLIPS> (assert (rash-is red))<br \/>\n<Fact-2><br \/>\nCLIPS> (assert (throat-is infected))<br \/>\n<Fact-3><\/p>\n<p>CLIPS> (facts)<br \/>\nf-0     (temperature-is &#8220;101 degree fahrenheit&#8221;)<br \/>\nf-1     (spots-are yellow)<br \/>\nf-2     (rash-is red)<br \/>\nf-3     (throat-is infected)<br \/>\nFor a total of 4 facts.<\/p>\n<p>CLIPS> (rules)<br \/>\ndiagnose<br \/>\nFor a total of 1 defrule.<\/p>\n<p>CLIPS> (run)<br \/>\nCLIPS> (defrule quickDiagnose<br \/>\n(throat-is infected)<br \/>\n=><br \/>\n(assert (throat-needs treatment))<br \/>\n)<\/p>\n<p>CLIPS> (rules)<br \/>\ndiagnose<br \/>\nquickDiagnose<br \/>\nFor a total of 2 defrules.<\/p>\n<p>CLIPS> (run)<\/p>\n<p>CLIPS> (facts)<br \/>\nf-0     (temperature-is &#8220;101 degree fahrenheit&#8221;)<br \/>\nf-1     (spots-are yellow)<br \/>\nf-2     (rash-is red)<br \/>\nf-3     (throat-is infected)<br \/>\nf-4     (disease-diagnosed-as allergy)<br \/>\nf-5     (throat-needs treatment)<br \/>\nFor a total of 6 facts.<\/p>\n<p>CLIPS> (rules)<br \/>\ndiagnose<br \/>\nquickDiagnose<br \/>\nFor a total of 2 defrules.<\/p>\n<\/li>\n<li>\n<p>CLIPS> (defrule treatment &#8220;Suggest medicines for treatment&#8221;<br \/>\n(disease-diagnosed-as allergy)<br \/>\n=><br \/>\n(assert (medicine &#8220;Novidat and Evil&#8221;))<br \/>\n(printout t &#8220;are the medicines suggested for allergy&#8221;))<\/p>\n<p>CLIPS> (assert (disease-diagnosed-as allergy))<br \/>\n<Fact-0><\/p>\n<p>CLIPS> (facts)<br \/>\nf-0     (disease-diagnosed-as allergy)<br \/>\nFor a total of 1 fact.<\/p>\n<p>CLIPS> (rules)<br \/>\ntreatment<br \/>\nFor a total of 1 defrule.<\/p>\n<p>CLIPS> (run)<br \/>\nare the medicines suggested for allergy\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Example of add rules in knowledge base by using clips commands e.g. If a patient has 101 degree Fahrenheit temperature, yellow spots, red rash and infected throat then assert that disease is diagnosed as allergy and print out that patient is suffering from allergy.Note: Disease is a parameter of title diagnose If disease is diagnosed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-artificial-intelligence"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Example of add rules in knowledge base by using clips commands<\/title>\n<meta name=\"description\" content=\"Example of add rules in knowledge base by using clips commands\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Example of add rules in knowledge base by using clips commands\" \/>\n<meta property=\"og:description\" content=\"Example of add rules in knowledge base by using clips commands\" \/>\n<meta property=\"og:url\" content=\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"AndroidBubble Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-06T17:58:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-19T09:13:55+00:00\" \/>\n<meta name=\"author\" content=\"Fahad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\"},\"author\":{\"name\":\"Fahad\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"headline\":\"Example of add rules in knowledge base by using clips commands\",\"datePublished\":\"2012-03-06T17:58:19+00:00\",\"dateModified\":\"2014-03-19T09:13:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\"},\"wordCount\":280,\"articleSection\":[\"Artificial Intelligence\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\",\"url\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\",\"name\":\"Example of add rules in knowledge base by using clips commands\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\"},\"datePublished\":\"2012-03-06T17:58:19+00:00\",\"dateModified\":\"2014-03-19T09:13:55+00:00\",\"author\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"description\":\"Example of add rules in knowledge base by using clips commands\",\"breadcrumb\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/androidbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Development\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Artificial Intelligence\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/artificial-intelligence\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Example of add rules in knowledge base by using clips commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\",\"url\":\"https:\/\/androidbubble.com\/blog\/\",\"name\":\"AndroidBubble Blog\",\"description\":\"Articles &amp; Posts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/androidbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\",\"name\":\"Fahad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"caption\":\"Fahad\"},\"sameAs\":[\"http:\/\/www.androidbubbles.com\/\",\"https:\/\/x.com\/phpFlex\"],\"url\":\"https:\/\/androidbubble.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Example of add rules in knowledge base by using clips commands","description":"Example of add rules in knowledge base by using clips commands","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/","og_locale":"en_US","og_type":"article","og_title":"Example of add rules in knowledge base by using clips commands","og_description":"Example of add rules in knowledge base by using clips commands","og_url":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/","og_site_name":"AndroidBubble Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453","article_published_time":"2012-03-06T17:58:19+00:00","article_modified_time":"2014-03-19T09:13:55+00:00","author":"Fahad","twitter_misc":{"Written by":"Fahad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#article","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/"},"author":{"name":"Fahad","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"headline":"Example of add rules in knowledge base by using clips commands","datePublished":"2012-03-06T17:58:19+00:00","dateModified":"2014-03-19T09:13:55+00:00","mainEntityOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/"},"wordCount":280,"articleSection":["Artificial Intelligence"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/","url":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/","name":"Example of add rules in knowledge base by using clips commands","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/#website"},"datePublished":"2012-03-06T17:58:19+00:00","dateModified":"2014-03-19T09:13:55+00:00","author":{"@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"description":"Example of add rules in knowledge base by using clips commands","breadcrumb":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/androidbubble.com\/blog\/website-development\/artificial-intelligence\/example-of-add-rules-in-knowledge-base-by-using-clips-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/androidbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Development","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/"},{"@type":"ListItem","position":3,"name":"Artificial Intelligence","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/artificial-intelligence\/"},{"@type":"ListItem","position":4,"name":"Example of add rules in knowledge base by using clips commands"}]},{"@type":"WebSite","@id":"https:\/\/androidbubble.com\/blog\/#website","url":"https:\/\/androidbubble.com\/blog\/","name":"AndroidBubble Blog","description":"Articles &amp; Posts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/androidbubble.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7","name":"Fahad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","caption":"Fahad"},"sameAs":["http:\/\/www.androidbubbles.com\/","https:\/\/x.com\/phpFlex"],"url":"https:\/\/androidbubble.com\/blog\/author\/admin\/"}]}},"views":1081,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":2,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":1641,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions\/1641"}],"wp:attachment":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}