Individual 3
Individual 3
Individual 3
CS7051
Semantic Technologies
Group Coursework – I
Contents
1. Satisfiability..............................................................................................3
2. Inference Rules........................................................................................5
3. Horn-Clause Conversion..........................................................................6
4. Resolution Rule........................................................................................7
3
Individual Work
1. Satisfiability
2. Inference Rules
3. Horn-Clause Conversion
1. Facts:
Fact 1: Gas station g1 has fuel f1.
Fact 2: Gas station g2 has fuel f2.
Fact 3: Passenger p1 is at stop s1.
Fact 4: Passenger p2 is at stop s2.
Fact 5: Traffic light t1 is located on road r1.
Fact 6: Traffic light t2 is located on road r2.
2. Heuristics:
Heuristic 1: Every vehicle has a driver.
Heuristic 2: Gas stations have fuel.
Heuristic 3: Passengers are at stops.
The Horn-clause representations for these facts and heuristics are as
follows:
1. Horn-clause for Facts:
Fact 1: Fuel(f1) ∧ LocatedAt(f1, g1)
This fact can be represented as: Fuel(f1) ∧ LocatedAt(f1,
g1) ⇒ true
4. Resolution Rule
3. Resolve the above results with the fact that a gas station has fuel:
LocatedAt(f1, g1) ∨ (∃y ¬Fuel(y) ∨ LocatedAt(y, g1))
LocatedAt(f2, g2) ∨ (∃y ¬Fuel(y) ∨ LocatedAt(y, g1))
Resolve on LocatedAt(f1, g1) and LocatedAt(f2, g2)
(∃y ¬Fuel(y) ∨ LocatedAt(y, g1))