| 1 |
@prefix : <http://folk.uio.no/martige/what/2012/04/22/zebra#> . |
| 2 |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 3 |
@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 4 |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 5 |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 6 |
|
| 7 |
<http://folk.uio.no/martige/what/2012/04/22/zebra> rdf:type owl:Ontology . |
| 8 |
[ rdf:type owl:AllDisjointClasses ; |
| 9 |
owl:members ( :Color :Drink :House :Person :Pet :Smoke ) ] . |
| 10 |
:Color rdf:type owl:Class ; |
| 11 |
owl:equivalentClass [ |
| 12 |
rdf:type owl:Class ; |
| 13 |
owl:oneOf ( :Blue :Yellow :Ivory :Green :Red ) ] . |
| 14 |
:Drink rdf:type owl:Class ; |
| 15 |
owl:equivalentClass [ |
| 16 |
rdf:type owl:Class ; |
| 17 |
owl:oneOf ( :OrangeJuice :Water :Tea :Milk :Coffee ) ] . |
| 18 |
:Pet rdf:type owl:Class ; |
| 19 |
owl:equivalentClass [ |
| 20 |
rdf:type owl:Class ; |
| 21 |
owl:oneOf ( :Horse :Zebra :Fox :Dog :Snails ) ] . |
| 22 |
:Smoke rdf:type owl:Class ; |
| 23 |
owl:equivalentClass [ |
| 24 |
rdf:type owl:Class ; |
| 25 |
owl:oneOf ( :Kools :Chesterfield :LuckyStrike :OldGold :Parliament ) ] . |
| 26 |
:House rdf:type owl:Class ; |
| 27 |
owl:equivalentClass [ |
| 28 |
rdf:type owl:Class ; |
| 29 |
owl:oneOf ( :House5 :House4 :House2 :House3 :House1 ) ] . |
| 30 |
:Person rdf:type owl:Class ; |
| 31 |
owl:equivalentClass [ |
| 32 |
rdf:type owl:Class ; |
| 33 |
owl:oneOf ( :Norwegian :Spaniard :Ukrainian :Japanese :Englishman ) ] . |
| 34 |
:drinks rdf:type owl:FunctionalProperty , |
| 35 |
owl:InverseFunctionalProperty , |
| 36 |
owl:ObjectProperty ; |
| 37 |
rdfs:range :Drink ; |
| 38 |
rdfs:domain :Person . |
| 39 |
|
| 40 |
:hasColor rdf:type owl:FunctionalProperty , |
| 41 |
owl:InverseFunctionalProperty , |
| 42 |
owl:ObjectProperty ; |
| 43 |
rdfs:range :Color ; |
| 44 |
rdfs:domain :House . |
| 45 |
|
| 46 |
:hasPet rdf:type owl:FunctionalProperty , |
| 47 |
owl:InverseFunctionalProperty , |
| 48 |
owl:ObjectProperty ; |
| 49 |
rdfs:domain :Person ; |
| 50 |
rdfs:range :Pet . |
| 51 |
|
| 52 |
:livesIn rdf:type owl:FunctionalProperty , |
| 53 |
owl:InverseFunctionalProperty , |
| 54 |
owl:ObjectProperty ; |
| 55 |
rdfs:range :House ; |
| 56 |
rdfs:domain :Person . |
| 57 |
|
| 58 |
:smokes rdf:type owl:FunctionalProperty , |
| 59 |
owl:InverseFunctionalProperty , |
| 60 |
owl:ObjectProperty ; |
| 61 |
rdfs:domain :Person ; |
| 62 |
rdfs:range :Smoke . |
| 63 |
:Person rdf:type owl:Class ; |
| 64 |
rdfs:subClassOf |
| 65 |
[ rdf:type owl:Class ; |
| 66 |
owl:intersectionOf ( |
| 67 |
[ rdf:type owl:Restriction ; |
| 68 |
owl:onProperty :drinks ; |
| 69 |
owl:someValuesFrom owl:Thing ] |
| 70 |
[ rdf:type owl:Restriction ; |
| 71 |
owl:onProperty :hasPet ; |
| 72 |
owl:someValuesFrom owl:Thing ] |
| 73 |
[ rdf:type owl:Restriction ; |
| 74 |
owl:onProperty :livesIn ; |
| 75 |
owl:someValuesFrom owl:Thing ] |
| 76 |
[ rdf:type owl:Restriction ; |
| 77 |
owl:onProperty :smokes ; |
| 78 |
owl:someValuesFrom owl:Thing ] |
| 79 |
) |
| 80 |
] . |
| 81 |
|
| 82 |
:House rdf:type owl:Class ; |
| 83 |
rdfs:subClassOf [ rdf:type owl:Restriction ; |
| 84 |
owl:onProperty :hasColor ; |
| 85 |
owl:someValuesFrom owl:Thing ] . |
| 86 |
:House1 :isLeftTo :House2 . |
| 87 |
:House2 :isLeftTo :House3 . |
| 88 |
:House3 :isLeftTo :House4 . |
| 89 |
:House4 :isLeftTo :House5 . |
| 90 |
|
| 91 |
[ rdf:type owl:NegativePropertyAssertion ; |
| 92 |
owl:assertionProperty :isNextTo ; |
| 93 |
owl:targetIndividual :House1 ; |
| 94 |
owl:sourceIndividual :House5 ] . |
| 95 |
[ rdf:type owl:AllDifferent ; |
| 96 |
owl:distinctMembers ( :House2 :House1 :House4 :House3 :House5 ) ] . |
| 97 |
:isNextTo rdf:type owl:IrreflexiveProperty , |
| 98 |
owl:ObjectProperty , |
| 99 |
owl:SymmetricProperty ; |
| 100 |
rdfs:domain :House ; |
| 101 |
rdfs:range :House . |
| 102 |
|
| 103 |
:isRightTo rdf:type owl:FunctionalProperty , |
| 104 |
owl:InverseFunctionalProperty , |
| 105 |
owl:ObjectProperty ; |
| 106 |
owl:inverseOf :isLeftTo ; |
| 107 |
rdfs:subPropertyOf :isNextTo . |
| 108 |
|
| 109 |
:isLeftTo rdf:type owl:ObjectProperty ; |
| 110 |
rdfs:subPropertyOf :isNextTo . |
| 111 |
:House rdf:type owl:Class ; |
| 112 |
rdfs:subClassOf |
| 113 |
[ rdf:type owl:Restriction ; |
| 114 |
owl:onProperty :isNextTo ; |
| 115 |
owl:onClass :House ; |
| 116 |
owl:maxQualifiedCardinality "2"^^xsd:nonNegativeInteger ] , |
| 117 |
[ rdf:type owl:Restriction ; |
| 118 |
owl:onProperty :hasColor ; |
| 119 |
owl:someValuesFrom owl:Thing ] . |
| 120 |
[ rdf:type owl:AllDifferent ; |
| 121 |
owl:distinctMembers ( :Green :Ivory :Red :Yellow :Blue ) ] . |
| 122 |
|
| 123 |
[ rdf:type owl:AllDifferent ; |
| 124 |
owl:distinctMembers ( :Spaniard :Norwegian :Englishman :Ukrainian :Japanese ) ] . |
| 125 |
|
| 126 |
[ rdf:type owl:AllDifferent ; |
| 127 |
owl:distinctMembers ( :Tea :OrangeJuice :Water :Coffee :Milk ) ] . |
| 128 |
|
| 129 |
[ rdf:type owl:AllDifferent ; |
| 130 |
owl:distinctMembers ( :Dog :Zebra :Fox :Snails :Horse ) ] . |
| 131 |
|
| 132 |
[ rdf:type owl:AllDifferent ; |
| 133 |
owl:distinctMembers ( :Kools :Chesterfield :LuckyStrike :OldGold :Parliament ) ] . |
| 134 |
|
| 135 |
### statement 2 |
| 136 |
:Englishman :livesIn [ :hasColor :Red ] . |
| 137 |
|
| 138 |
### statement 3 |
| 139 |
:Spaniard :hasPet :Dog . |
| 140 |
|
| 141 |
### statement 4 |
| 142 |
[] :drinks :Coffee ; |
| 143 |
:livesIn [ :hasColor :Green ] . |
| 144 |
|
| 145 |
### statement 5 |
| 146 |
:Ukrainian :drinks :Tea . |
| 147 |
|
| 148 |
### statement 6 |
| 149 |
[] :hasColor :Green ; |
| 150 |
:isRightTo [ :hasColor :Ivory ] . |
| 151 |
|
| 152 |
### statement 7 |
| 153 |
[] :smokes :OldGold ; |
| 154 |
:hasPet :Snails . |
| 155 |
|
| 156 |
### statement 8 |
| 157 |
[] :smokes :Kools ; |
| 158 |
:livesIn [ :hasColor :Yellow ] . |
| 159 |
|
| 160 |
### statement 9 |
| 161 |
[] :drinks :Milk ; |
| 162 |
:livesIn :House3 . |
| 163 |
|
| 164 |
### statement 10 |
| 165 |
:Norwegian :livesIn :House1 . |
| 166 |
|
| 167 |
### statement 11 |
| 168 |
[] :smokes :Chesterfield ; |
| 169 |
:livesIn [ :isNextTo _:x11 ] . |
| 170 |
[] :livesIn _:x11 ; |
| 171 |
:hasPet :Fox . |
| 172 |
|
| 173 |
### statement 12 |
| 174 |
[] :smokes :Kools; |
| 175 |
:livesIn [ :isNextTo _:x12 ] . |
| 176 |
[] :livesIn _:x12 ; |
| 177 |
:hasPet :Horse . |
| 178 |
|
| 179 |
### statement 13 |
| 180 |
[] :smokes :LuckyStrike ; |
| 181 |
:drinks :OrangeJuice . |
| 182 |
|
| 183 |
### statement 14 |
| 184 |
:Japanese :smokes :Parliament . |
| 185 |
|
| 186 |
### statement 15 |
| 187 |
:Norwegian :livesIn [ :isNextTo [ :hasColor :Blue ] ] . |