{"id":15645744,"url":"https://github.com/fcmam5/kr-and-expert-system","last_synced_at":"2025-04-30T11:43:24.166Z","repository":{"id":28340343,"uuid":"116606807","full_name":"Fcmam5/kr-and-expert-system","owner":"Fcmam5","description":" Knowledge representation and expert systems examples","archived":false,"fork":false,"pushed_at":"2021-12-27T03:01:08.000Z","size":6,"stargazers_count":52,"open_issues_count":1,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T15:51:08.519Z","etag":null,"topics":["expert-system","knowledge-base","knowledge-representation","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fcmam5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-07T23:20:10.000Z","updated_at":"2024-07-16T09:02:50.000Z","dependencies_parsed_at":"2022-07-19T03:17:06.824Z","dependency_job_id":null,"html_url":"https://github.com/Fcmam5/kr-and-expert-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fcmam5%2Fkr-and-expert-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fcmam5%2Fkr-and-expert-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fcmam5%2Fkr-and-expert-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fcmam5%2Fkr-and-expert-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fcmam5","download_url":"https://codeload.github.com/Fcmam5/kr-and-expert-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249500197,"owners_count":21282367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expert-system","knowledge-base","knowledge-representation","python"],"created_at":"2024-10-03T12:09:34.855Z","updated_at":"2025-04-18T13:33:33.259Z","avatar_url":"https://github.com/Fcmam5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knowledge representation examples\n\nThis repository contains some programming exercises for **Ontologies and Knowledge representation** class in University. It contains until the moment two examples:\n\n* [Expert System that diagnosis children diabetes](expert-system-for-children-diabetes-diagnosis).\n* Semantic network (home accidents as example) *unfinished yet*\n\n## Expert System for children Diabetes Diagnosis\n\nBuilt with Python, using [PyKnow]() library. And there's a tiny Node/Express server for offering a Web api\n### Usage\n* First install `pyknow` Python package, and `Express` and `python-shell` for Node.js, then lunch the server (`main.js`) in order to use the Web API.\nAll this could be done with this command:\n`pip install pyknow \u0026\u0026 npm install \u0026\u0026 node main.js`\n* Then open your browser, and past this URL for example.\n```\nlocalhost:3000/res/api?age=3\n                        \u0026glycemie=2\n                        \u0026shakiness=True\n                        \u0026hunger=True\n                        \u0026sweating=True\n                        \u0026headach=True\n                        \u0026diabetic_parents=False\n                        \u0026pale=False\n                        \u0026urination=False\n                        \u0026thirst=False\n                        \u0026blurred_vision=False\n                        \u0026dry_mouth=False\n                        \u0026smelling_breath=False\n                        \u0026shortness_of_breath=False\n```\nNow you can play with each parameter\n  * age = [int from 0 to 5]\n  * glycemie= [ int `mmol/l` ]\n  * Signs, like shakiness, hunger, sweating..= [Boolean: True/False]\n\nOr You can use the python file directly just introduce your facts manually\n\nChange\n```python\n# ligne 102\nengine.declare(Personne(age= int(sys.argv[1]),\n                        glycemie=int(sys.argv[2]),\n                        shakiness= bool(sys.argv[3]),\n                        hunger= bool(sys.argv[4]),\n                        sweating= bool(sys.argv[5]),\n                        headach= bool(sys.argv[6]),\n                        diabetic_parents = bool(sys.argv[7]),\n                        pale= bool(sys.argv[8]),\n                        urination = bool(sys.argv[9]),\n                        thirst = bool(sys.argv[10]),\n                        blurred_vision = bool(sys.argv[11]),\n                        dry_mouth = bool(sys.argv[12]),\n                        smelling_breath = bool(sys.argv[13]),\n                        shortness_of_breath = bool(sys.argv[14]),\n                        ))\n```\nTo (for example)\n```python\n# ligne 102\nengine.declare(Personne(age= 2,\n                        glycemie=True,\n                        shakiness=True,\n                        hunger= True,\n                        sweating= True,\n                        headach= True,\n                        diabetic_parents = False,\n                        pale= False,\n                        urination = False,\n                        thirst = False,\n                        blurred_vision = False,\n                        dry_mouth = False,\n                        smelling_breath = False,\n                        shortness_of_breath = False,\n                        ))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcmam5%2Fkr-and-expert-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcmam5%2Fkr-and-expert-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcmam5%2Fkr-and-expert-system/lists"}