| 1 |
package conformancetests; |
| 2 |
|
| 3 |
import org.junit.Ignore; |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
import org.junit.Test; |
| 10 |
|
| 11 |
import testbase.TestBase; |
| 12 |
|
| 13 |
@SuppressWarnings("javadoc") |
| 14 |
public class WebOnt_allValuesFrom_001_TestCase extends TestBase { |
| 15 |
|
| 16 |
@Test |
| 17 |
public void testWebOnt_miscellaneous_203() { |
| 18 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:first=\"http://www.w3.org/2002/03owlt/miscellaneous/inconsistent203#\"\n" |
| 19 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/miscellaneous/inconsistent203\" >\n" |
| 20 |
+ '\n' |
| 21 |
+ " <owl:Ontology/>\n" |
| 22 |
+ '\n' |
| 23 |
+ " <owl:DatatypeProperty\n" |
| 24 |
+ " rdf:ID=\"fp\" />\n" |
| 25 |
+ " <owl:FunctionalProperty\n" |
| 26 |
+ " rdf:about=\"#fp\" />\n" |
| 27 |
+ " <owl:Thing>\n" |
| 28 |
+ " <first:fp rdf:parseType=\"Literal\">\n" |
| 29 |
+ "<br />\n" |
| 30 |
+ "<img src=\"vn.png\" alt=\"Venn diagram\" longdesc=\"vn.html\" title=\"Venn\"></img>\n" |
| 31 |
+ '\n' |
| 32 |
+ "</first:fp>\n" |
| 33 |
+ " <first:fp rdf:parseType=\"Literal\"><br \n" |
| 34 |
+ "></br>\n" |
| 35 |
+ "<img \n" |
| 36 |
+ "src=\"vn.png\" title=\n" |
| 37 |
+ "\"Venn\" alt\n" |
| 38 |
+ "=\"Venn diagram\" longdesc=\n" |
| 39 |
+ "\"vn.html\" /></first:fp></owl:Thing>\n" + "</rdf:RDF>"; |
| 40 |
String conclusion = ""; |
| 41 |
String id = "WebOnt_miscellaneous_203"; |
| 42 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 43 |
String d = "This shows that initial whitespace in an rdf:XMLLiteral (http://www.w3.org/TR/rdf-concepts/#section-XMLLiteral) is significant within OWL."; |
| 44 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 45 |
r.setReasonerFactory(factory()); |
| 46 |
r.run(); |
| 47 |
} |
| 48 |
|
| 49 |
@Test |
| 50 |
@Ignore("FaCT++ datatype problems") |
| 51 |
public void testWebOnt_miscellaneous_202() { |
| 52 |
String premise = |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
"Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)\n" |
| 77 |
+ "Prefix(owl:=<http://www.w3.org/2002/07/owl#>)\n" |
| 78 |
+ "Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)\n" |
| 79 |
+ "Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)\n" |
| 80 |
+ "Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)\n" |
| 81 |
+ "Ontology(\n" + "Declaration(DataProperty(<urn:fp>))\n" |
| 82 |
+ "FunctionalDataProperty(<urn:fp>)\n" |
| 83 |
+ "ClassAssertion(owl:Thing <urn:id2>)\n" |
| 84 |
+ "DataPropertyAssertion(<urn:fp> <urn:id2> \"<br></br>\n\n" |
| 85 |
+ "<img></img>\"^^rdf:XMLLiteral)\n" |
| 86 |
+ "DataPropertyAssertion(<urn:fp> <urn:id2> \"<br></br>\n" |
| 87 |
+ "<img></img>\"^^rdf:XMLLiteral)\n" + ')'; |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
String conclusion = ""; |
| 93 |
String id = "WebOnt_miscellaneous_202"; |
| 94 |
TestClasses tc = TestClasses.valueOf("CONSISTENCY"); |
| 95 |
String d = "This shows that insignificant whitespace in an rdf:XMLLiteral is not significant within OWL."; |
| 96 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 97 |
r.setReasonerFactory(factory()); |
| 98 |
r.run(); |
| 99 |
} |
| 100 |
|
| 101 |
@Test |
| 102 |
public void testWebOnt_miscellaneous_204() { |
| 103 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:first=\"http://www.w3.org/2002/03owlt/miscellaneous/inconsistent204#\"\n" |
| 104 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/miscellaneous/inconsistent204\" ><owl:Ontology/>" |
| 105 |
+ "<owl:FunctionalProperty rdf:ID=\"fp\"/>\n" |
| 106 |
+ " <owl:DatatypeProperty rdf:about=\"#fp\"/><owl:Thing>\n" |
| 107 |
+ " <first:fp rdf:parseType=\"Literal\"><span xml:lang='en'><b>Good!</b></span></first:fp>\n" |
| 108 |
+ " <first:fp rdf:parseType=\"Literal\"><span xml:lang='en'><b>Bad!</b></span></first:fp></owl:Thing></rdf:RDF>"; |
| 109 |
String conclusion = ""; |
| 110 |
String id = "WebOnt_miscellaneous_204"; |
| 111 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 112 |
String d = "This shows a simple inconsistency depending on the datatype rdf:XMLLiteral. This file is inconsistent with a datatype map which supports rdf:XMLLiteral, and consistent otherwise."; |
| 113 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 114 |
r.setReasonerFactory(factory()); |
| 115 |
r.run(); |
| 116 |
} |
| 117 |
|
| 118 |
@Test |
| 119 |
public void testWebOnt_allValuesFrom_001() { |
| 120 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:first=\"http://www.w3.org/2002/03owlt/allValuesFrom/premises001#\"\n" |
| 121 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/allValuesFrom/premises001\" >\n" |
| 122 |
+ " <owl:Ontology/>\n" |
| 123 |
+ " <owl:Class rdf:ID=\"r\"><rdfs:subClassOf><owl:Restriction><owl:onProperty rdf:resource=\"#p\"/><owl:allValuesFrom rdf:resource=\"#c\"/></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 124 |
+ " <owl:ObjectProperty rdf:ID=\"p\"/>\n" |
| 125 |
+ " <owl:Class rdf:ID=\"c\"/>\n" |
| 126 |
+ " <first:r rdf:ID=\"i\"><rdf:type rdf:resource=\"http://www.w3.org/2002/07/owl#Thing\"/><first:p><owl:Thing rdf:ID=\"o\" /></first:p></first:r></rdf:RDF>"; |
| 127 |
String conclusion = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:first=\"http://www.w3.org/2002/03owlt/allValuesFrom/premises001#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" |
| 128 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/allValuesFrom/conclusions001\" >\n" |
| 129 |
+ " <owl:Ontology/>\n" |
| 130 |
+ " <first:c rdf:about=\"premises001#o\"><rdf:type rdf:resource=\"http://www.w3.org/2002/07/owl#Thing\"/></first:c><owl:Class rdf:about=\"premises001#c\"/></rdf:RDF>"; |
| 131 |
String id = "WebOnt_allValuesFrom_001"; |
| 132 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 133 |
String d = "A simple example."; |
| 134 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 135 |
r.setReasonerFactory(factory()); |
| 136 |
r.run(); |
| 137 |
} |
| 138 |
|
| 139 |
@Test |
| 140 |
public void testWebOnt_allValuesFrom_002() { |
| 141 |
String premise = "Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)\n" |
| 142 |
+ "Prefix(owl:=<http://www.w3.org/2002/07/owl#>)\n" |
| 143 |
+ "Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)\n" |
| 144 |
+ "Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)\n" |
| 145 |
+ "Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)\n" |
| 146 |
+ "Ontology(\n" |
| 147 |
+ "Declaration(Class(<urn:t:t#c>))\n" |
| 148 |
+ "Declaration(Class(<urn:t:t#r>))\n" |
| 149 |
+ "Declaration(ObjectProperty(<urn:t:t#p>))\n" |
| 150 |
+ "SubClassOf(<urn:t:t#r> ObjectAllValuesFrom(<urn:t:t#p> <urn:t:t#c>))\n" |
| 151 |
+ "ClassAssertion(<urn:t:t#r> <urn:t:t#i>)\n" |
| 152 |
+ "ClassAssertion(owl:Thing <urn:t:t#i>)\n" |
| 153 |
+ "ClassAssertion(owl:Thing <urn:t:t#newind>))"; |
| 154 |
String conclusion = "Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)\n" |
| 155 |
+ "Prefix(owl:=<http://www.w3.org/2002/07/owl#>)\n" |
| 156 |
+ "Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)\n" |
| 157 |
+ "Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)\n" |
| 158 |
+ "Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)\n" |
| 159 |
+ "Ontology(\n" |
| 160 |
+ "Declaration(Class(<urn:t:t#c>))\n" |
| 161 |
+ "Declaration(Class(<urn:t:t#r>))\n" |
| 162 |
+ "Declaration(ObjectProperty(<urn:t:t#p>))\n" |
| 163 |
+ |
| 164 |
|
| 165 |
|
| 166 |
"ObjectPropertyAssertion(<urn:t:t#p> <urn:t:t#i> <urn:t:t#newind>)\n" |
| 167 |
+ "ClassAssertion(<urn:t:t#c> <urn:t:t#newind>)\n" + |
| 168 |
|
| 169 |
')'; |
| 170 |
String id = "WebOnt_allValuesFrom_002"; |
| 171 |
TestClasses tc = TestClasses.valueOf("NEGATIVE_IMPL"); |
| 172 |
String d = "Another simple example; contrast with owl:someValuesFrom."; |
| 173 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 174 |
r.setReasonerFactory(factory()); |
| 175 |
r.run(); |
| 176 |
} |
| 177 |
|
| 178 |
@Test |
| 179 |
@Ignore("FaCT++ does not accept new individuals in queries") |
| 180 |
public void testWebOnt_I4_6_004() { |
| 181 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" |
| 182 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I4.6/premises004\" >\n" |
| 183 |
+ " <owl:Ontology/>\n" |
| 184 |
+ " <owl:Class rdf:about=\"nonconclusions004#C1\">\n" |
| 185 |
+ " <owl:equivalentClass>\n" |
| 186 |
+ " <owl:Class rdf:about=\"nonconclusions004#C2\"/></owl:equivalentClass></owl:Class>\n" |
| 187 |
+ "</rdf:RDF>"; |
| 188 |
String conclusion = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" |
| 189 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I4.6/nonconclusions004\" >\n" |
| 190 |
+ " <owl:Ontology/>\n" |
| 191 |
+ " <owl:Class rdf:ID=\"C1\">\n" |
| 192 |
+ " <owl:sameAs>\n" |
| 193 |
+ " <owl:Class rdf:ID=\"C2\"/></owl:sameAs></owl:Class>\n" |
| 194 |
+ "</rdf:RDF>"; |
| 195 |
String id = "WebOnt_I4_6_004"; |
| 196 |
TestClasses tc = TestClasses.valueOf("NEGATIVE_IMPL"); |
| 197 |
String d = "owl:sameAs is stronger than owl:equivalentClass."; |
| 198 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 199 |
r.setReasonerFactory(factory()); |
| 200 |
r.run(); |
| 201 |
} |
| 202 |
|
| 203 |
@Test |
| 204 |
public void testWebOnt_I5_21_002() { |
| 205 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:first=\"http://www.w3.org/2002/03owlt/I5.21/premises002#\"\n" |
| 206 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I5.21/premises002\" >\n" |
| 207 |
+ '\n' |
| 208 |
+ " <owl:Ontology/>\n" |
| 209 |
+ " <owl:Class rdf:ID=\"Reptile\">\n" |
| 210 |
+ " <rdfs:subClassOf>\n" |
| 211 |
+ " <owl:Restriction>\n" |
| 212 |
+ " <owl:onProperty>\n" |
| 213 |
+ " <owl:DatatypeProperty rdf:ID=\"family-name\"/></owl:onProperty>\n" |
| 214 |
+ " <owl:cardinality rdf:datatype=\n" |
| 215 |
+ " \"http://www.w3.org/2001/XMLSchema#int\">1</owl:cardinality></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 216 |
+ '\n' |
| 217 |
+ " <owl:Class rdf:about=\"#Amphisbaenidae\">\n" |
| 218 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 219 |
+ " <rdfs:subClassOf>\n" |
| 220 |
+ " <owl:Restriction>\n" |
| 221 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 222 |
+ " <owl:hasValue>Amphisbaenidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 223 |
+ '\n' |
| 224 |
+ " <owl:Class rdf:about=\"#Agamidae\">\n" |
| 225 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 226 |
+ " <rdfs:subClassOf>\n" |
| 227 |
+ " <owl:Restriction>\n" |
| 228 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 229 |
+ " <owl:hasValue>Agamidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 230 |
+ '\n' |
| 231 |
+ " <owl:Class rdf:about=\"#Anomalepidae\">\n" |
| 232 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 233 |
+ " <rdfs:subClassOf>\n" |
| 234 |
+ " <owl:Restriction>\n" |
| 235 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 236 |
+ " <owl:hasValue>Anomalepidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 237 |
+ " \n" |
| 238 |
+ " <owl:Class rdf:about=\"#Emydidae\">\n" |
| 239 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 240 |
+ " <rdfs:subClassOf>\n" |
| 241 |
+ " <owl:Restriction>\n" |
| 242 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 243 |
+ " <owl:hasValue>Emydidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 244 |
+ '\n' |
| 245 |
+ " <owl:Class rdf:about=\"#Crocodylidae\">\n" |
| 246 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 247 |
+ " <rdfs:subClassOf>\n" |
| 248 |
+ " <owl:Restriction>\n" |
| 249 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 250 |
+ " <owl:hasValue>Crocodylidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 251 |
+ '\n' |
| 252 |
+ " <owl:Class rdf:about=\"#Gekkonidae\">\n" |
| 253 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 254 |
+ " <rdfs:subClassOf>\n" |
| 255 |
+ " <owl:Restriction>\n" |
| 256 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 257 |
+ " <owl:hasValue>Gekkonidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 258 |
+ '\n' |
| 259 |
+ " <owl:Class rdf:about=\"#Sphenodontidae\">\n" |
| 260 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 261 |
+ " <rdfs:subClassOf>\n" |
| 262 |
+ " <owl:Restriction>\n" |
| 263 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 264 |
+ " <owl:hasValue>Sphenodontidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 265 |
+ '\n' |
| 266 |
+ " <owl:Class rdf:about=\"#Cordylidae\">\n" |
| 267 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 268 |
+ " <rdfs:subClassOf>\n" |
| 269 |
+ " <owl:Restriction>\n" |
| 270 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 271 |
+ " <owl:hasValue>Cordylidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 272 |
+ '\n' |
| 273 |
+ " <owl:Class rdf:about=\"#Bipedidae\">\n" |
| 274 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 275 |
+ " <rdfs:subClassOf>\n" |
| 276 |
+ " <owl:Restriction>\n" |
| 277 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 278 |
+ " <owl:hasValue>Bipedidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 279 |
+ '\n' |
| 280 |
+ " <owl:Class rdf:about=\"#Leptotyphlopidae\">\n" |
| 281 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 282 |
+ " <rdfs:subClassOf>\n" |
| 283 |
+ " <owl:Restriction>\n" |
| 284 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 285 |
+ " <owl:hasValue>Leptotyphlopidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 286 |
+ '\n' |
| 287 |
+ " <owl:Class rdf:about=\"#Xantusiidae\">\n" |
| 288 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 289 |
+ " <rdfs:subClassOf>\n" |
| 290 |
+ " <owl:Restriction>\n" |
| 291 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 292 |
+ " <owl:hasValue>Xantusiidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 293 |
+ '\n' |
| 294 |
+ " <owl:Class rdf:about=\"#Loxocemidae\">\n" |
| 295 |
+ " <rdfs:subClassOf rdf:resource=\"#Reptile\" />\n" |
| 296 |
+ " <rdfs:subClassOf>\n" |
| 297 |
+ " <owl:Restriction>\n" |
| 298 |
+ " <owl:onProperty rdf:resource=\"#family-name\"/>\n" |
| 299 |
+ " <owl:hasValue>Loxocemidae</owl:hasValue></owl:Restriction></rdfs:subClassOf></owl:Class>\n" |
| 300 |
+ '\n' + '\n' + "</rdf:RDF>"; |
| 301 |
String conclusion = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" |
| 302 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I5.21/conclusions002\" >\n" |
| 303 |
+ '\n' |
| 304 |
+ " <owl:Ontology/>\n" |
| 305 |
+ " <owl:Class rdf:about=\"premises002#Amphisbaenidae\">\n" |
| 306 |
+ " <owl:disjointWith rdf:resource=\"premises002#Agamidae\"/>\n" |
| 307 |
+ " <owl:disjointWith rdf:resource=\"premises002#Anomalepidae\"/>\n" |
| 308 |
+ " <owl:disjointWith rdf:resource=\"premises002#Emydidae\"/>\n" |
| 309 |
+ " <owl:disjointWith rdf:resource=\"premises002#Crocodylidae\"/>\n" |
| 310 |
+ " <owl:disjointWith rdf:resource=\"premises002#Gekkonidae\"/>\n" |
| 311 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 312 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 313 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 314 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 315 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 316 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 317 |
+ '\n' |
| 318 |
+ " <owl:Class rdf:about=\"premises002#Agamidae\">\n" |
| 319 |
+ " <owl:disjointWith rdf:resource=\"premises002#Anomalepidae\"/>\n" |
| 320 |
+ " <owl:disjointWith rdf:resource=\"premises002#Emydidae\"/>\n" |
| 321 |
+ " <owl:disjointWith rdf:resource=\"premises002#Crocodylidae\"/>\n" |
| 322 |
+ " <owl:disjointWith rdf:resource=\"premises002#Gekkonidae\"/>\n" |
| 323 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 324 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 325 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 326 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 327 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 328 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 329 |
+ '\n' |
| 330 |
+ " <owl:Class rdf:about=\"premises002#Anomalepidae\">\n" |
| 331 |
+ " <owl:disjointWith rdf:resource=\"premises002#Emydidae\"/>\n" |
| 332 |
+ " <owl:disjointWith rdf:resource=\"premises002#Crocodylidae\"/>\n" |
| 333 |
+ " <owl:disjointWith rdf:resource=\"premises002#Gekkonidae\"/>\n" |
| 334 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 335 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 336 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 337 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 338 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 339 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 340 |
+ '\n' |
| 341 |
+ " <owl:Class rdf:about=\"premises002#Emydidae\">\n" |
| 342 |
+ " <owl:disjointWith rdf:resource=\"premises002#Crocodylidae\"/>\n" |
| 343 |
+ " <owl:disjointWith rdf:resource=\"premises002#Gekkonidae\"/>\n" |
| 344 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 345 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 346 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 347 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 348 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 349 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 350 |
+ '\n' |
| 351 |
+ " <owl:Class rdf:about=\"premises002#Crocodylidae\">\n" |
| 352 |
+ " <owl:disjointWith rdf:resource=\"premises002#Gekkonidae\"/>\n" |
| 353 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 354 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 355 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 356 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 357 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 358 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 359 |
+ '\n' |
| 360 |
+ " <owl:Class rdf:about=\"premises002#Gekkonidae\">\n" |
| 361 |
+ " <owl:disjointWith rdf:resource=\"premises002#Sphenodontidae\"/>\n" |
| 362 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 363 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 364 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 365 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 366 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 367 |
+ '\n' |
| 368 |
+ " <owl:Class rdf:about=\"premises002#Sphenodontidae\">\n" |
| 369 |
+ " <owl:disjointWith rdf:resource=\"premises002#Cordylidae\"/>\n" |
| 370 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 371 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 372 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 373 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 374 |
+ '\n' |
| 375 |
+ " <owl:Class rdf:about=\"premises002#Cordylidae\">\n" |
| 376 |
+ " <owl:disjointWith rdf:resource=\"premises002#Bipedidae\"/>\n" |
| 377 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 378 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 379 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 380 |
+ '\n' |
| 381 |
+ " <owl:Class rdf:about=\"premises002#Bipedidae\">\n" |
| 382 |
+ " <owl:disjointWith rdf:resource=\"premises002#Leptotyphlopidae\"/>\n" |
| 383 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 384 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 385 |
+ '\n' |
| 386 |
+ " <owl:Class rdf:about=\"premises002#Leptotyphlopidae\">\n" |
| 387 |
+ " <owl:disjointWith rdf:resource=\"premises002#Xantusiidae\"/>\n" |
| 388 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 389 |
+ '\n' |
| 390 |
+ " <owl:Class rdf:about=\"premises002#Xantusiidae\">\n" |
| 391 |
+ " <owl:disjointWith rdf:resource=\"premises002#Loxocemidae\"/></owl:Class>\n" |
| 392 |
+ '\n' |
| 393 |
+ " <owl:Class rdf:about=\"premises002#Loxocemidae\"></owl:Class>\n" |
| 394 |
+ '\n' + "</rdf:RDF>"; |
| 395 |
String id = "WebOnt_I5_21_002"; |
| 396 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 397 |
String d = "The construct used here shows how to express mutual disjointness between classes with O(N) triples."; |
| 398 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 399 |
r.setReasonerFactory(factory()); |
| 400 |
r.run(); |
| 401 |
} |
| 402 |
|
| 403 |
@Test |
| 404 |
public void testWebOnt_I5_8_006() { |
| 405 |
String premise = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:first=\"http://www.w3.org/2002/03owlt/I5.8/premises006#\" xmlns:second=\"http://www.w3.org/2002/03owlt/I5.8/conclusions006#\"\n" |
| 406 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I5.8/premises006\" >\n" |
| 407 |
+ " <owl:Ontology/>\n" |
| 408 |
+ " <owl:DatatypeProperty rdf:ID=\"p\">\n" |
| 409 |
+ " <rdfs:range rdf:resource=\n" |
| 410 |
+ " \"http://www.w3.org/2001/XMLSchema#byte\" /></owl:DatatypeProperty></rdf:RDF>"; |
| 411 |
String conclusion = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:first=\"http://www.w3.org/2002/03owlt/I5.8/premises006#\" xmlns:second=\"http://www.w3.org/2002/03owlt/I5.8/conclusions006#\"\n" |
| 412 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/I5.8/conclusions006\" >\n" |
| 413 |
+ " <owl:Ontology/>\n" |
| 414 |
+ " <owl:DatatypeProperty rdf:about=\"premises006#p\">\n" |
| 415 |
+ " <rdfs:range rdf:resource=\n" |
| 416 |
+ " \"http://www.w3.org/2001/XMLSchema#short\" /></owl:DatatypeProperty>\n" |
| 417 |
+ '\n' + "</rdf:RDF>"; |
| 418 |
String id = "WebOnt_I5_8_006"; |
| 419 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 420 |
String d = "All xsd:byte\n" + "are xsd:short."; |
| 421 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 422 |
r.setReasonerFactory(factory()); |
| 423 |
r.run(); |
| 424 |
} |
| 425 |
} |