| 1 |
@prefix log: <http://www.w3.org/2000/10/swap/log#>. |
| 2 |
@prefix : <urn:example:>. |
| 3 |
|
| 4 |
# beetle is a car |
| 5 |
:beetle a :Car. |
| 6 |
|
| 7 |
# all cars are green or blue |
| 8 |
(_:A) log:onNegativeSurface { |
| 9 |
_:A a :Car. |
| 10 |
() log:onNegativeSurface { |
| 11 |
_:A :is :green. |
| 12 |
}. |
| 13 |
() log:onNegativeSurface { |
| 14 |
_:A :is :blue. |
| 15 |
}. |
| 16 |
}. |
| 17 |
|
| 18 |
# green things are nice or pretty |
| 19 |
(_:A) log:onNegativeSurface { |
| 20 |
_:A :is :green. |
| 21 |
() log:onNegativeSurface { |
| 22 |
_:A :is :nice. |
| 23 |
}. |
| 24 |
() log:onNegativeSurface { |
| 25 |
_:A :is :pretty. |
| 26 |
}. |
| 27 |
}. |
| 28 |
# pretty things are beautiful |
| 29 |
(_:A) log:onNegativeSurface { |
| 30 |
_:A :is :pretty. |
| 31 |
() log:onNegativeSurface { |
| 32 |
_:A :is :beautiful. |
| 33 |
}. |
| 34 |
}. |
| 35 |
|
| 36 |
# cars are not beautiful |
| 37 |
(_:A) log:onNegativeSurface { |
| 38 |
_:A a :Car. |
| 39 |
_:A :is :beautiful. |
| 40 |
}. |
| 41 |
|
| 42 |
# blue things are beautiful |
| 43 |
(_:A) log:onNegativeSurface { |
| 44 |
_:A :is :blue. |
| 45 |
() log:onNegativeSurface { |
| 46 |
_:A :is :beautiful. |
| 47 |
}. |
| 48 |
}. |
| 49 |
|
| 50 |
# query |
| 51 |
() log:onNegativeSurface { |
| 52 |
:beetle :is :nice. |
| 53 |
() log:onNegativeAnswerSurface { |
| 54 |
:beetle :is :nice. |
| 55 |
}. |
| 56 |
}. |