examples for Semantic Networks and conceptual graph
ex/ Consider the following knowledge: "If the maid stole the jewelry, then the butler was not guilty. Either the maid stole the jewelry or she milked the caws. If the maid milked the cows, then the butler got his cream". Prove using propositional logic and resolution that: "if the butler was guilty, then he got his cream".
sol//
- If S then ¬G
- S or M
- If M then C
- ¬(G → C) (Negation of target statement)
- S or M (Given statement 2)
- If S then ¬G (Given statement 1)
- If M then C (Given statement 3)
- ¬(G → C)
- S or M
- If S then ¬G
- If M then C
- S ∧ ¬G
- M ∧ ¬G
- (S ∧ M) ∨ G ∧ ¬C
ex/Consider the following: "Some kids eat any food. No kid cats food that is blue. All kids like food manufactured by Mars". Prove using predicate logic and resolution that: "No food manufactured by Mars is blue."
sol//
- "Some kids eat any food" can be represented as ∃x(Kid(x))
- "No kid cats food that is blue" can be represented as ∀x(¬Kid(x) ∨ ¬Blue(Food(x)))
- "All kids like food manufactured by Mars" can be represented as ∀x(Kid(x) → Mars(Food(x)))
- ¬∀x(Mars(Food(x)) → ¬Blue(Food(x))) (Negation of target statement)
- ∃x(Kid(x)) (Given statement 1)
- ∀x(¬Kid(x) ∨ ¬Blue(Food(x))) (Given statement 2)
- ∀x(Kid(x) → Mars(Food(x))) (Given statement 3)
- ¬∀x(Mars(Food(x)) → ¬Blue(Food(x)))
- ∃x(Kid(x))
- ∀x(¬Kid(x) ∨ ¬Blue(Food(x)))
- ∀x(Kid(x) → Mars(Food(x)))
- ∃x(Kid(x) ∧ Blue(Food(x)))
ex/Represent the following sentence using conceptual graph: “Twitter is a social networking and micro-blogging service that allows you connect and share with the people in your life by sending short text messages 140 characters in length, called tweets, to your friends”.
sol//
ex/Draw a semantic net for the following story: "Ban and her husband, Ahmed, were very poor. Nevertheless, because Christmas was approaching, each wanted to give something special to the other. Ban cut off and sold her beautiful hair to buy an expansive watch chain for Ahmed. In the same time, Ahmed sold his watch to buy some wonderful combs for Ban's hair. When they found out what they had done, they were sad for a moment".
sol//
ex//Represent the following knowledge using semantic network: “Hi5 is a social website based in California. The company was founded in 2003 by Y. Ramu. Hi5 has many features, such as friend networks, photo sharing, user groups, and status updates”
sol//
ex/Represent the following knowledge using semantic network: “YouTube is a videosharing website, created by three former PayPal employees in February 2005, on which users can upload, view and share videos. The company is based in San Bruno, California, and uses Adobe Flash Video and HTML5 technology to display a wide variety of user-generated video content, including movie clips, TV clips, and music videos, as well as amateur content such as video blogging and short original videos”.
sol//
ex/Represent the following information using semantic net: A bird is a kind of animal. Albatross is a kind of bird and so is Kiwi. Albert is an albatross and so is Ross. Kim is a Kiwi. Flying is the normal moving method of birds. Bird is active at daylight. The color of Albatross is black and white. The color of Kiwi is brown. The moving method of Kiwi is walking. Kiwi is active at night.
sol//
ex/Represent the following information as a semantic net: "Ali was hungry. He went to ask his mother for money to buy a sandwich, but he couldn't find her. So he went to get an apple from the refrigerator. But the refrigerator was practically empty. To take his mind off his empty stomach, he went out to play."
sol//
ex/Draw a conceptual graph for the following story: "When you go to a movie theatre, you usually buy a ticket, hand the ticket to the ticket taker, and then go and find a seat. Sometimes you buy popcorn before going to your seat. When the movie is over you leave the theatre".
sol//
ex/Represent the following information as a semantic net: "Cars and trucks are types of vehicles. A car is used for passenger transport. A truck is used for goods transport. Ali owns a white BMW with registration number 1234. Ahmed owns a blue KIA with registration number 4321. Ali's car is faster than Ahmed's car. A truck is larger than a car."
sol//
Q: Represent the following knowledge using semantic net: "The web application is accessed through the web browser. The web application runs on the web server. The web browser communicates using HTTP and TCP/IP. The web browser needs Dynamic Link Libraries (DLL). The web server communicates using HTTP and TCP/IP. When using HTTP, TCP/IP, one gets host names using the Domain Name Server (DNS). The Web server is configured by Configuration files. The Web server launches the CGI program. The CGI program is written in Perl. The CGI program gets results from the database. The CGI program formats the results in HTML. The Database is configured by Configuration files".
sol//
Q: Represent the following knowledge using semantic net: "The Queen Mary is an ocean liner, and so is Swimming Pool. Every ocean liner is a ship. The oil tanker is a ship. Liverpool is an oil tanker. The engine and the hull are parts of the ship. The boiler is a part of the engine."
sol//
ex/Computer has many parts like a CPU and the computer divided into two types , the first one is the mainframe and the second is the personal computer . Mainframe has a line printer with large sheet but the personal computer has a laser printer . IBM as example to the mainframe but PIII and PIV as examples to the personal computer .
sol//
ex/Layla gave selma abook.
sol//
ex/Layla told suha that she gave selma abook.
sol//
ex/John broke the window with the hammer.
sol//
ex/John gave merry a book of data structure in the class.
sol//