| 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 |
|
| 29 |
# pretty things are pretty 1 or pretty 2 |
| 30 |
(_:A) log:onNegativeSurface { |
| 31 |
_:A :is :pretty. |
| 32 |
() log:onNegativeSurface { |
| 33 |
_:A :is :pretty1. |
| 34 |
}. |
| 35 |
() log:onNegativeSurface { |
| 36 |
_:A :is :pretty2. |
| 37 |
}. |
| 38 |
}. |
| 39 |
|
| 40 |
# nice things are nice 1 or nice 2 |
| 41 |
(_:A) log:onNegativeSurface { |
| 42 |
_:A :is :nice. |
| 43 |
() log:onNegativeSurface { |
| 44 |
_:A :is :nice1. |
| 45 |
}. |
| 46 |
() log:onNegativeSurface { |
| 47 |
_:A :is :nice2. |
| 48 |
}. |
| 49 |
}. |
| 50 |
|
| 51 |
# pretty 1 things are pretty 11 or pretty 12 |
| 52 |
(_:A) log:onNegativeSurface { |
| 53 |
_:A :is :pretty1. |
| 54 |
() log:onNegativeSurface { |
| 55 |
_:A :is :pretty11. |
| 56 |
}. |
| 57 |
() log:onNegativeSurface { |
| 58 |
_:A :is :pretty12. |
| 59 |
}. |
| 60 |
}. |
| 61 |
|
| 62 |
# pretty 2 things are pretty 21 or pretty 22 |
| 63 |
(_:A) log:onNegativeSurface { |
| 64 |
_:A :is :pretty2. |
| 65 |
() log:onNegativeSurface { |
| 66 |
_:A :is :pretty21. |
| 67 |
}. |
| 68 |
() log:onNegativeSurface { |
| 69 |
_:A :is :pretty22. |
| 70 |
}. |
| 71 |
}. |
| 72 |
|
| 73 |
# nice 1 things are nice 11 or nice 12 |
| 74 |
(_:A) log:onNegativeSurface { |
| 75 |
_:A :is :nice1. |
| 76 |
() log:onNegativeSurface { |
| 77 |
_:A :is :nice11. |
| 78 |
}. |
| 79 |
() log:onNegativeSurface { |
| 80 |
_:A :is :nice12. |
| 81 |
}. |
| 82 |
}. |
| 83 |
|
| 84 |
# nice 2 things are nice 21 or nice 22 |
| 85 |
(_:A) log:onNegativeSurface { |
| 86 |
_:A :is :nice2. |
| 87 |
() log:onNegativeSurface { |
| 88 |
_:A :is :nice21. |
| 89 |
}. |
| 90 |
() log:onNegativeSurface { |
| 91 |
_:A :is :nice22. |
| 92 |
}. |
| 93 |
}. |
| 94 |
|
| 95 |
# pretty or nice or blue things are beautiful |
| 96 |
(_:A) log:onNegativeSurface { |
| 97 |
() log:onNegativeSurface { |
| 98 |
() log:onNegativeSurface { |
| 99 |
_:A :is :pretty11. |
| 100 |
}. |
| 101 |
() log:onNegativeSurface { |
| 102 |
_:A :is :pretty12. |
| 103 |
}. |
| 104 |
() log:onNegativeSurface { |
| 105 |
_:A :is :pretty21. |
| 106 |
}. |
| 107 |
() log:onNegativeSurface { |
| 108 |
_:A :is :pretty22. |
| 109 |
}. |
| 110 |
() log:onNegativeSurface { |
| 111 |
_:A :is :nice11. |
| 112 |
}. |
| 113 |
() log:onNegativeSurface { |
| 114 |
_:A :is :nice12. |
| 115 |
}. |
| 116 |
() log:onNegativeSurface { |
| 117 |
_:A :is :nice21. |
| 118 |
}. |
| 119 |
() log:onNegativeSurface { |
| 120 |
_:A :is :nice22. |
| 121 |
}. |
| 122 |
() log:onNegativeSurface { |
| 123 |
_:A :is :blue. |
| 124 |
}. |
| 125 |
}. |
| 126 |
() log:onNegativeSurface { |
| 127 |
_:A :is :beautiful. |
| 128 |
}. |
| 129 |
}. |
| 130 |
|
| 131 |
# query |
| 132 |
() log:onNegativeSurface { |
| 133 |
:beetle :is :beautiful. |
| 134 |
() log:onNegativeAnswerSurface { |
| 135 |
:beetle :is :beautiful. |
| 136 |
}. |
| 137 |
}. |