| 1 |
package conformancetests; |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
import org.junit.Test; |
| 9 |
|
| 10 |
import testbase.TestBase; |
| 11 |
|
| 12 |
@SuppressWarnings("javadoc") |
| 13 |
public class RDFBasedTestCase extends TestBase { |
| 14 |
|
| 15 |
@Test |
| 16 |
@Changed |
| 17 |
public void testrdfbased_sem_bool_complement_inst() { |
| 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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 19 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 20 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 21 |
+ " <ex:c1 rdf:about=\"http://www.example.org#x\">\n" |
| 22 |
+ " <rdf:type rdf:resource=\"http://www.example.org#c2\"/></ex:c1>\n" |
| 23 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 24 |
+ " <owl:complementOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 25 |
String conclusion = ""; |
| 26 |
String id = "rdfbased_sem_bool_complement_inst"; |
| 27 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 28 |
String d = "An individual cannot be an instance of both a class and its complement."; |
| 29 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 30 |
r.setReasonerFactory(factory()); |
| 31 |
r.run(); |
| 32 |
} |
| 33 |
|
| 34 |
@Test |
| 35 |
@Changed |
| 36 |
public void testrdfbased_sem_bool_intersection_inst_expr() { |
| 37 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 38 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 39 |
+ "<owl:Class rdf:about=\"http://www.example.org#x\"/>\n" |
| 40 |
+ "<owl:Class rdf:about=\"http://www.example.org#y\"/>\n" |
| 41 |
+ " <ex:c rdf:about=\"http://www.example.org#z\"/>\n" |
| 42 |
+ " <rdf:Description rdf:nodeID=\"A0\">\n" |
| 43 |
+ " <rdf:first rdf:resource=\"http://www.example.org#x\"/>\n" |
| 44 |
+ " <rdf:rest rdf:parseType=\"Collection\">\n" |
| 45 |
+ " <rdf:Description rdf:about=\"http://www.example.org#y\"/></rdf:rest></rdf:Description>\n" |
| 46 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c\">\n" |
| 47 |
+ " <owl:intersectionOf rdf:nodeID=\"A0\"/></rdf:Description></rdf:RDF>"; |
| 48 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 49 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 50 |
+ "<owl:Class rdf:about=\"http://www.example.org#x\"/>\n" |
| 51 |
+ "<owl:Class rdf:about=\"http://www.example.org#y\"/>\n" |
| 52 |
+ " <ex:x rdf:about=\"http://www.example.org#z\">\n" |
| 53 |
+ " <rdf:type rdf:resource=\"http://www.example.org#y\"/></ex:x></rdf:RDF>"; |
| 54 |
String id = "rdfbased_sem_bool_intersection_inst_expr"; |
| 55 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 56 |
String d = "An individual, which is an instance of an intersection class expression of two classes, is an instance of every component class."; |
| 57 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 58 |
r.setReasonerFactory(factory()); |
| 59 |
r.run(); |
| 60 |
} |
| 61 |
|
| 62 |
@Test |
| 63 |
@Changed |
| 64 |
public void testrdfbased_sem_chain_def() { |
| 65 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 66 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 67 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 68 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 69 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 70 |
+ " <ex:p1>\n" |
| 71 |
+ " <rdf:Description rdf:about=\"http://www.example.org#y\">\n" |
| 72 |
+ " <ex:p2 rdf:resource=\"http://www.example.org#z\"/></rdf:Description></ex:p1></rdf:Description>\n" |
| 73 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 74 |
+ " <owl:propertyChainAxiom rdf:parseType=\"Collection\">\n" |
| 75 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\"/>\n" |
| 76 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\"/></owl:propertyChainAxiom></rdf:Description>\n" |
| 77 |
+ "</rdf:RDF>"; |
| 78 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 79 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 80 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 81 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 82 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 83 |
+ " <ex:p rdf:resource=\"http://www.example.org#z\"/></rdf:Description></rdf:RDF>"; |
| 84 |
String id = "rdfbased_sem_chain_def"; |
| 85 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 86 |
String d = "For a sub property chain axiom with super property p and chain properties p1 and p2, from x p1 y and y p2 z follows x p z."; |
| 87 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 88 |
r.setReasonerFactory(factory()); |
| 89 |
r.run(); |
| 90 |
} |
| 91 |
|
| 92 |
@Test |
| 93 |
@Changed |
| 94 |
public void testrdfbased_sem_char_asymmetric_inst() { |
| 95 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 96 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 97 |
+ " <owl:AsymmetricProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 98 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 99 |
+ " <ex:p>\n" |
| 100 |
+ " <rdf:Description rdf:about=\"http://www.example.org#y\">\n" |
| 101 |
+ " <ex:p rdf:resource=\"http://www.example.org#x\"/></rdf:Description></ex:p></rdf:Description>\n" |
| 102 |
+ "</rdf:RDF>"; |
| 103 |
String conclusion = ""; |
| 104 |
String id = "rdfbased_sem_char_asymmetric_inst"; |
| 105 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 106 |
String d = "For a triple having an asymmetrical property as its predicate, the reverse triple must not exist."; |
| 107 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 108 |
r.setReasonerFactory(factory()); |
| 109 |
r.run(); |
| 110 |
} |
| 111 |
|
| 112 |
@Test |
| 113 |
public void testrdfbased_sem_char_asymmetric_term() { |
| 114 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 115 |
+ " <owl:SymmetricProperty rdf:about=\"http://www.example.org#p\">\n" |
| 116 |
+ " <rdf:type rdf:resource=\"http://www.w3.org/2002/07/owl#AsymmetricProperty\"/></owl:SymmetricProperty>\n" |
| 117 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 118 |
+ " <ex:p rdf:resource=\"http://www.example.org#y\"/></rdf:Description></rdf:RDF>"; |
| 119 |
String conclusion = ""; |
| 120 |
String id = "rdfbased_sem_char_asymmetric_term"; |
| 121 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 122 |
String d = "A non-empty property cannot be both symmetrical and asymmetrical."; |
| 123 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 124 |
r.setReasonerFactory(factory()); |
| 125 |
r.run(); |
| 126 |
} |
| 127 |
|
| 128 |
@Test |
| 129 |
public void testrdfbased_sem_char_inversefunc_inst() { |
| 130 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 131 |
+ " <owl:InverseFunctionalProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 132 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x1\">\n" |
| 133 |
+ " <ex:p rdf:resource=\"http://www.example.org#y\"/></rdf:Description>\n" |
| 134 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x2\">\n" |
| 135 |
+ " <ex:p rdf:resource=\"http://www.example.org#y\"/></rdf:Description></rdf:RDF>"; |
| 136 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 137 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x1\">\n" |
| 138 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#x2\"/></rdf:Description></rdf:RDF>"; |
| 139 |
String id = "rdfbased_sem_char_inversefunc_inst"; |
| 140 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 141 |
String d = "For two triples with the same inverse functional property as their predicates and with the same object, the subjects are the same."; |
| 142 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 143 |
r.setReasonerFactory(factory()); |
| 144 |
r.run(); |
| 145 |
} |
| 146 |
|
| 147 |
@Test |
| 148 |
@Changed |
| 149 |
public void testrdfbased_sem_char_irreflexive_inst() { |
| 150 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 151 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 152 |
+ " <owl:IrreflexiveProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 153 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 154 |
+ " <ex:p rdf:resource=\"http://www.example.org#x\"/></rdf:Description></rdf:RDF>"; |
| 155 |
String conclusion = ""; |
| 156 |
String id = "rdfbased_sem_char_irreflexive_inst"; |
| 157 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 158 |
String d = "For an irreflexive property, there must not exist any reflexive triple."; |
| 159 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 160 |
r.setReasonerFactory(factory()); |
| 161 |
r.run(); |
| 162 |
} |
| 163 |
|
| 164 |
@Test |
| 165 |
@Changed |
| 166 |
public void testrdfbased_sem_char_symmetric_inst() { |
| 167 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 168 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 169 |
+ " <owl:SymmetricProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 170 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 171 |
+ " <ex:p rdf:resource=\"http://www.example.org#y\"/></rdf:Description></rdf:RDF>"; |
| 172 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 173 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 174 |
+ " <rdf:Description rdf:about=\"http://www.example.org#y\">\n" |
| 175 |
+ " <ex:p rdf:resource=\"http://www.example.org#x\"/></rdf:Description></rdf:RDF>"; |
| 176 |
String id = "rdfbased_sem_char_symmetric_inst"; |
| 177 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 178 |
String d = "For a triple having a symmetrical property as its predicate, the reverse triple also exists."; |
| 179 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 180 |
r.setReasonerFactory(factory()); |
| 181 |
r.run(); |
| 182 |
} |
| 183 |
|
| 184 |
@Test |
| 185 |
@Changed |
| 186 |
public void testrdfbased_sem_char_transitive_inst() { |
| 187 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 188 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 189 |
+ " <owl:TransitiveProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 190 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 191 |
+ " <ex:p>\n" |
| 192 |
+ " <rdf:Description rdf:about=\"http://www.example.org#y\">\n" |
| 193 |
+ " <ex:p rdf:resource=\"http://www.example.org#z\"/></rdf:Description></ex:p></rdf:Description>\n" |
| 194 |
+ "</rdf:RDF>"; |
| 195 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 196 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 197 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 198 |
+ " <ex:p rdf:resource=\"http://www.example.org#z\"/></rdf:Description></rdf:RDF>"; |
| 199 |
String id = "rdfbased_sem_char_transitive_inst"; |
| 200 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 201 |
String d = "For two chained triples having the same transitive property as their predicate, the transitive result triple also exists."; |
| 202 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 203 |
r.setReasonerFactory(factory()); |
| 204 |
r.run(); |
| 205 |
} |
| 206 |
|
| 207 |
@Test |
| 208 |
public void testrdfbased_sem_class_nothing_ext() { |
| 209 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 210 |
+ " <owl:Nothing rdf:about=\"http://www.example.org#x\"/></rdf:RDF>"; |
| 211 |
String conclusion = ""; |
| 212 |
String id = "rdfbased_sem_class_nothing_ext"; |
| 213 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 214 |
String d = "The extension of the vocabulary class owl:Nothing is empty."; |
| 215 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 216 |
r.setReasonerFactory(factory()); |
| 217 |
r.run(); |
| 218 |
} |
| 219 |
|
| 220 |
@Test |
| 221 |
@Changed |
| 222 |
public void testrdfbased_sem_class_nothing_term() { |
| 223 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 224 |
+ " <owl:Class rdf:about=\"http://www.example.org#c\"/></rdf:RDF>"; |
| 225 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 226 |
+ " <owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 227 |
+ " <rdf:Description rdf:about=\"http://www.w3.org/2002/07/owl#Nothing\">\n" |
| 228 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdf:RDF>"; |
| 229 |
String id = "rdfbased_sem_class_nothing_term"; |
| 230 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 231 |
String d = "Every OWL class is a super class of the vocabulary class owl:Nothing."; |
| 232 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 233 |
r.setReasonerFactory(factory()); |
| 234 |
r.run(); |
| 235 |
} |
| 236 |
|
| 237 |
@Test |
| 238 |
public void testrdfbased_sem_class_nothing_type() { |
| 239 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 240 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 241 |
+ " <owl:Class rdf:about=\"http://www.w3.org/2002/07/owl#Nothing\"/></rdf:RDF>"; |
| 242 |
String id = "rdfbased_sem_class_nothing_type"; |
| 243 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 244 |
String d = "The type of the vocabulary class owl:Nothing is the class of OWL classes."; |
| 245 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 246 |
r.setReasonerFactory(factory()); |
| 247 |
r.run(); |
| 248 |
} |
| 249 |
|
| 250 |
@Test |
| 251 |
@Changed |
| 252 |
public void testrdfbased_sem_class_thing_term() { |
| 253 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 254 |
+ " <owl:Class rdf:about=\"http://www.example.org#c\"/></rdf:RDF>"; |
| 255 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 256 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 257 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c\">\n" |
| 258 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.w3.org/2002/07/owl#Thing\"/></rdf:Description></rdf:RDF>"; |
| 259 |
String id = "rdfbased_sem_class_thing_term"; |
| 260 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 261 |
String d = "Every OWL class is a sub class of the vocabulary class owl:Thing."; |
| 262 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 263 |
r.setReasonerFactory(factory()); |
| 264 |
r.run(); |
| 265 |
} |
| 266 |
|
| 267 |
@Test |
| 268 |
public void testrdfbased_sem_class_thing_type() { |
| 269 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 270 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 271 |
+ " <owl:Class rdf:about=\"http://www.w3.org/2002/07/owl#Thing\"/></rdf:RDF>"; |
| 272 |
String id = "rdfbased_sem_class_thing_type"; |
| 273 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 274 |
String d = "The type of the vocabulary class owl:Thing is the class of OWL classes."; |
| 275 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 276 |
r.setReasonerFactory(factory()); |
| 277 |
r.run(); |
| 278 |
} |
| 279 |
|
| 280 |
@Test |
| 281 |
public void testrdfbased_sem_eqdis_different_sameas() { |
| 282 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 283 |
+ " <rdf:Description rdf:about=\"http://www.example.org#x\">\n" |
| 284 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#y\"/>\n" |
| 285 |
+ " <owl:differentFrom rdf:resource=\"http://www.example.org#y\"/></rdf:Description></rdf:RDF>"; |
| 286 |
String conclusion = ""; |
| 287 |
String id = "rdfbased_sem_eqdis_different_sameas"; |
| 288 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 289 |
String d = "Two individuals cannot both be the same and different."; |
| 290 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 291 |
r.setReasonerFactory(factory()); |
| 292 |
r.run(); |
| 293 |
} |
| 294 |
|
| 295 |
@Test |
| 296 |
@Changed |
| 297 |
public void testrdfbased_sem_eqdis_disclass_eqclass() { |
| 298 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 299 |
+ " <owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 300 |
+ " <owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 301 |
+ " <ex:c1 rdf:about=\"http://www.example.org#x\"/>\n" |
| 302 |
+ " <ex:c2 rdf:about=\"http://www.example.org#y\"/>\n" |
| 303 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 304 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c2\"/>\n" |
| 305 |
+ " <owl:disjointWith rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 306 |
String conclusion = ""; |
| 307 |
String id = "rdfbased_sem_eqdis_disclass_eqclass"; |
| 308 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 309 |
String d = "Two non-empty classes cannot both be equivalent and disjoint."; |
| 310 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 311 |
r.setReasonerFactory(factory()); |
| 312 |
r.run(); |
| 313 |
} |
| 314 |
|
| 315 |
@Test |
| 316 |
@Changed |
| 317 |
public void testrdfbased_sem_eqdis_disclass_inst() { |
| 318 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 319 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 320 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 321 |
+ " <ex:c1 rdf:about=\"http://www.example.org#w\">\n" |
| 322 |
+ " <rdf:type rdf:resource=\"http://www.example.org#c2\"/></ex:c1>\n" |
| 323 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 324 |
+ " <owl:disjointWith rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 325 |
String conclusion = ""; |
| 326 |
String id = "rdfbased_sem_eqdis_disclass_inst"; |
| 327 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 328 |
String d = "Individuals being instances of disjoint classes are different from each other."; |
| 329 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 330 |
r.setReasonerFactory(factory()); |
| 331 |
r.run(); |
| 332 |
} |
| 333 |
|
| 334 |
@Test |
| 335 |
@Changed |
| 336 |
public void testrdfbased_sem_eqdis_eqclass_inst() { |
| 337 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 338 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 339 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 340 |
+ " <ex:c1 rdf:about=\"http://www.example.org#x\"/>\n" |
| 341 |
+ " <ex:c2 rdf:about=\"http://www.example.org#y\"/>\n" |
| 342 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 343 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 344 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 345 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 346 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 347 |
+ " <ex:c2 rdf:about=\"http://www.example.org#x\"/>\n" |
| 348 |
+ " <ex:c1 rdf:about=\"http://www.example.org#y\"/>\n" |
| 349 |
+ "</rdf:RDF>"; |
| 350 |
String id = "rdfbased_sem_eqdis_eqclass_inst"; |
| 351 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 352 |
String d = "For two equivalent classes, any instance of one class is also an instance of the other class, and vice versa."; |
| 353 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 354 |
r.setReasonerFactory(factory()); |
| 355 |
r.run(); |
| 356 |
} |
| 357 |
|
| 358 |
@Test |
| 359 |
public void testrdfbased_sem_eqdis_eqclass_rflxv() { |
| 360 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 361 |
+ " <owl:Class rdf:about=\"http://www.example.org#c\"/></rdf:RDF>"; |
| 362 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 363 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c\">\n" |
| 364 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdf:RDF>"; |
| 365 |
String id = "rdfbased_sem_eqdis_eqclass_rflxv"; |
| 366 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 367 |
String d = "Equivalence of two classes is reflexive."; |
| 368 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 369 |
r.setReasonerFactory(factory()); |
| 370 |
r.run(); |
| 371 |
} |
| 372 |
|
| 373 |
@Test |
| 374 |
@Changed |
| 375 |
public void testrdfbased_sem_eqdis_eqclass_subclass_2() { |
| 376 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 377 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 378 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 379 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\">\n" |
| 380 |
+ " <rdfs:subClassOf>\n" |
| 381 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 382 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdfs:subClassOf></rdf:Description>\n" |
| 383 |
+ "</rdf:RDF>"; |
| 384 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 385 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 386 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 387 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 388 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 389 |
String id = "rdfbased_sem_eqdis_eqclass_subclass_2"; |
| 390 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 391 |
String d = "Two classes that are sub classes of each other are equivalent classes."; |
| 392 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 393 |
r.setReasonerFactory(factory()); |
| 394 |
r.run(); |
| 395 |
} |
| 396 |
|
| 397 |
@Test |
| 398 |
@Changed |
| 399 |
public void testrdfbased_sem_eqdis_eqclass_subst() { |
| 400 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 401 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 402 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 403 |
+ " <owl:Class rdf:about=\"http://www.example.org#d1\"/>\n" |
| 404 |
+ "<owl:Class rdf:about=\"http://www.example.org#d2\"/>\n" |
| 405 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 406 |
+ " <rdfs:subClassOf>\n" |
| 407 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\">\n" |
| 408 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#d2\"/></rdf:Description></rdfs:subClassOf>\n" |
| 409 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#d1\"/></rdf:Description></rdf:RDF>"; |
| 410 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 411 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 412 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 413 |
+ " <owl:Class rdf:about=\"http://www.example.org#d1\"/>\n" |
| 414 |
+ "<owl:Class rdf:about=\"http://www.example.org#d2\"/>\n" |
| 415 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 416 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#d2\"/></rdf:Description>\n" |
| 417 |
+ " <rdf:Description rdf:about=\"http://www.example.org#d1\">\n" |
| 418 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 419 |
String id = "rdfbased_sem_eqdis_eqclass_subst"; |
| 420 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 421 |
String d = "Equivalence of two classes allows for substituting one class for the other in a sub class axiom."; |
| 422 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 423 |
r.setReasonerFactory(factory()); |
| 424 |
r.run(); |
| 425 |
} |
| 426 |
|
| 427 |
@Test |
| 428 |
public void testrdfbased_sem_eqdis_eqclass_sym() { |
| 429 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 430 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 431 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 432 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 433 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\">\n" |
| 434 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c1\"/></rdf:Description></rdf:RDF>"; |
| 435 |
String id = "rdfbased_sem_eqdis_eqclass_sym"; |
| 436 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 437 |
String d = "Equivalence of two classes is symmetrical."; |
| 438 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 439 |
r.setReasonerFactory(factory()); |
| 440 |
r.run(); |
| 441 |
} |
| 442 |
|
| 443 |
@Test |
| 444 |
public void testrdfbased_sem_eqdis_eqclass_trans() { |
| 445 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 446 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 447 |
+ " <owl:equivalentClass>\n" |
| 448 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\">\n" |
| 449 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c3\"/></rdf:Description></owl:equivalentClass></rdf:Description>\n" |
| 450 |
+ "</rdf:RDF>"; |
| 451 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 452 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 453 |
+ " <owl:equivalentClass rdf:resource=\"http://www.example.org#c3\"/></rdf:Description></rdf:RDF>"; |
| 454 |
String id = "rdfbased_sem_eqdis_eqclass_trans"; |
| 455 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 456 |
String d = "Equivalence of two classes is transitive."; |
| 457 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 458 |
r.setReasonerFactory(factory()); |
| 459 |
r.run(); |
| 460 |
} |
| 461 |
|
| 462 |
@Test |
| 463 |
@Changed |
| 464 |
public void testrdfbased_sem_eqdis_eqprop_inst() { |
| 465 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 466 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 467 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 468 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s2\">\n" |
| 469 |
+ " <ex:p2 rdf:resource=\"http://www.example.org#o2\"/></rdf:Description>\n" |
| 470 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s1\">\n" |
| 471 |
+ " <ex:p1 rdf:resource=\"http://www.example.org#o1\"/></rdf:Description>\n" |
| 472 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 473 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdf:RDF>"; |
| 474 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 475 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 476 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 477 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s2\">\n" |
| 478 |
+ " <ex:p1 rdf:resource=\"http://www.example.org#o2\"/></rdf:Description>\n" |
| 479 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s1\">\n" |
| 480 |
+ " <ex:p2 rdf:resource=\"http://www.example.org#o1\"/></rdf:Description></rdf:RDF>"; |
| 481 |
String id = "rdfbased_sem_eqdis_eqprop_inst"; |
| 482 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 483 |
String d = "For two equivalent properties and any triple having one property as its predicate, the corresponding triple having the other property as its predicate also exists, and vice versa."; |
| 484 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 485 |
r.setReasonerFactory(factory()); |
| 486 |
r.run(); |
| 487 |
} |
| 488 |
|
| 489 |
@Test |
| 490 |
public void testrdfbased_sem_eqdis_eqprop_rflxv() { |
| 491 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 492 |
+ " <owl:ObjectProperty rdf:about=\"http://www.example.org#op\"/>\n" |
| 493 |
+ " <owl:DatatypeProperty rdf:about=\"http://www.example.org#dp\"/></rdf:RDF>"; |
| 494 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 495 |
+ " <rdf:Description rdf:about=\"http://www.example.org#dp\">\n" |
| 496 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#dp\"/></rdf:Description>\n" |
| 497 |
+ " <rdf:Description rdf:about=\"http://www.example.org#op\">\n" |
| 498 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#op\"/></rdf:Description></rdf:RDF>"; |
| 499 |
String id = "rdfbased_sem_eqdis_eqprop_rflxv"; |
| 500 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 501 |
String d = "Equivalence of two properties is reflexive."; |
| 502 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 503 |
r.setReasonerFactory(factory()); |
| 504 |
r.run(); |
| 505 |
} |
| 506 |
|
| 507 |
@Test |
| 508 |
@Changed |
| 509 |
public void testrdfbased_sem_eqdis_eqprop_subprop_1() { |
| 510 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 511 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 512 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 513 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 514 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdf:RDF>"; |
| 515 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 516 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 517 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 518 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 519 |
+ " <rdfs:subPropertyOf>\n" |
| 520 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 521 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdfs:subPropertyOf></rdf:Description>\n" |
| 522 |
+ "</rdf:RDF>"; |
| 523 |
String id = "rdfbased_sem_eqdis_eqprop_subprop_1"; |
| 524 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 525 |
String d = "Two equivalent properties are sub properties of each other."; |
| 526 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 527 |
r.setReasonerFactory(factory()); |
| 528 |
r.run(); |
| 529 |
} |
| 530 |
|
| 531 |
@Test |
| 532 |
@Changed |
| 533 |
public void testrdfbased_sem_eqdis_eqprop_subprop_2() { |
| 534 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 535 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 536 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 537 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 538 |
+ " <rdfs:subPropertyOf>\n" |
| 539 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 540 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdfs:subPropertyOf></rdf:Description>\n" |
| 541 |
+ "</rdf:RDF>"; |
| 542 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 543 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 544 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 545 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 546 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdf:RDF>"; |
| 547 |
String id = "rdfbased_sem_eqdis_eqprop_subprop_2"; |
| 548 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 549 |
String d = "Two properties that are sub properties of each other are equivalent properties."; |
| 550 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 551 |
r.setReasonerFactory(factory()); |
| 552 |
r.run(); |
| 553 |
} |
| 554 |
|
| 555 |
@Test |
| 556 |
@Changed |
| 557 |
public void testrdfbased_sem_eqdis_eqprop_subst() { |
| 558 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 559 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 560 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 561 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q1\"/>\n" |
| 562 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q2\"/>\n" |
| 563 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 564 |
+ " <rdfs:subPropertyOf>\n" |
| 565 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 566 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#q2\"/></rdf:Description></rdfs:subPropertyOf>\n" |
| 567 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#q1\"/></rdf:Description></rdf:RDF>"; |
| 568 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 569 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 570 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 571 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q1\"/>\n" |
| 572 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q2\"/>\n" |
| 573 |
+ " <rdf:Description rdf:about=\"http://www.example.org#q1\">\n" |
| 574 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p2\"/></rdf:Description>\n" |
| 575 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 576 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#q2\"/></rdf:Description></rdf:RDF>"; |
| 577 |
String id = "rdfbased_sem_eqdis_eqprop_subst"; |
| 578 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 579 |
String d = "Equivalence of two properties allows for substituting one property for the other in a sub property axiom."; |
| 580 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 581 |
r.setReasonerFactory(factory()); |
| 582 |
r.run(); |
| 583 |
} |
| 584 |
|
| 585 |
@Test |
| 586 |
public void testrdfbased_sem_eqdis_eqprop_sym() { |
| 587 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 588 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 589 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdf:RDF>"; |
| 590 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 591 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 592 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p1\"/></rdf:Description></rdf:RDF>"; |
| 593 |
String id = "rdfbased_sem_eqdis_eqprop_sym"; |
| 594 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 595 |
String d = "Equivalence of two properties is symmetrical."; |
| 596 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 597 |
r.setReasonerFactory(factory()); |
| 598 |
r.run(); |
| 599 |
} |
| 600 |
|
| 601 |
@Test |
| 602 |
public void testrdfbased_sem_eqdis_eqprop_trans() { |
| 603 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 604 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 605 |
+ " <owl:equivalentProperty>\n" |
| 606 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 607 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p3\"/></rdf:Description></owl:equivalentProperty></rdf:Description>\n" |
| 608 |
+ "</rdf:RDF>"; |
| 609 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 610 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 611 |
+ " <owl:equivalentProperty rdf:resource=\"http://www.example.org#p3\"/></rdf:Description></rdf:RDF>"; |
| 612 |
String id = "rdfbased_sem_eqdis_eqprop_trans"; |
| 613 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 614 |
String d = "Equivalence of two properties is transitive."; |
| 615 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 616 |
r.setReasonerFactory(factory()); |
| 617 |
r.run(); |
| 618 |
} |
| 619 |
|
| 620 |
@Test |
| 621 |
@Changed |
| 622 |
public void testrdfbased_sem_eqdis_sameas_rflxv() { |
| 623 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 624 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 625 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s\">\n" |
| 626 |
+ " <ex:p rdf:resource=\"http://www.example.org#o\"/></rdf:Description>\n" |
| 627 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s1\">\n" |
| 628 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#s\"/></rdf:Description>\n" |
| 629 |
+ " <rdf:Description rdf:about=\"http://www.example.org#o1\">\n" |
| 630 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#o\"/></rdf:Description>\n" |
| 631 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 632 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#p\"/></rdf:Description></rdf:RDF>"; |
| 633 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 634 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s\">\n" |
| 635 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#s1\"/></rdf:Description>\n" |
| 636 |
+ " <rdf:Description rdf:about=\"http://www.example.org#o\">\n" |
| 637 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#o1\"/></rdf:Description>\n" |
| 638 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 639 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#p1\"/></rdf:Description></rdf:RDF>"; |
| 640 |
String id = "rdfbased_sem_eqdis_sameas_rflxv"; |
| 641 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 642 |
String d = "Equality of two individuals is reflexive."; |
| 643 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 644 |
r.setReasonerFactory(factory()); |
| 645 |
r.run(); |
| 646 |
} |
| 647 |
|
| 648 |
@Test |
| 649 |
@Changed |
| 650 |
public void testrdfbased_sem_inv_inst() { |
| 651 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 652 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 653 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q\"/>\n" |
| 654 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s2\">\n" |
| 655 |
+ " <ex:q rdf:resource=\"http://www.example.org#o2\"/></rdf:Description>\n" |
| 656 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s1\">\n" |
| 657 |
+ " <ex:p rdf:resource=\"http://www.example.org#o1\"/></rdf:Description>\n" |
| 658 |
+ " <rdf:Description rdf:about=\"http://www.example.org#q\">\n" |
| 659 |
+ " <owl:inverseOf rdf:resource=\"http://www.example.org#p\"/></rdf:Description></rdf:RDF>"; |
| 660 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 661 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 662 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#q\"/>\n" |
| 663 |
+ " <rdf:Description rdf:about=\"http://www.example.org#o1\">\n" |
| 664 |
+ " <ex:q rdf:resource=\"http://www.example.org#s1\"/></rdf:Description>\n" |
| 665 |
+ " <rdf:Description rdf:about=\"http://www.example.org#o2\">\n" |
| 666 |
+ " <ex:p rdf:resource=\"http://www.example.org#s2\"/></rdf:Description></rdf:RDF>"; |
| 667 |
String id = "rdfbased_sem_inv_inst"; |
| 668 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 669 |
String d = "The subject and object of a triple are reversed by an inverse property."; |
| 670 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 671 |
r.setReasonerFactory(factory()); |
| 672 |
r.run(); |
| 673 |
} |
| 674 |
|
| 675 |
@Test |
| 676 |
public void testrdfbased_sem_ndis_alldifferent_fw() { |
| 677 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 678 |
+ " <owl:AllDifferent rdf:about=\"http://www.example.org#z\">\n" |
| 679 |
+ " <owl:members rdf:parseType=\"Collection\">\n" |
| 680 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w1\">\n" |
| 681 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#w2\"/></rdf:Description>\n" |
| 682 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w2\"/>\n" |
| 683 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w3\"/></owl:members></owl:AllDifferent>\n" |
| 684 |
+ "</rdf:RDF>"; |
| 685 |
String conclusion = ""; |
| 686 |
String id = "rdfbased_sem_ndis_alldifferent_fw"; |
| 687 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 688 |
String d = "All the members of an owl:AllDifferent construct are mutually different individuals."; |
| 689 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 690 |
r.setReasonerFactory(factory()); |
| 691 |
r.run(); |
| 692 |
} |
| 693 |
|
| 694 |
@Test |
| 695 |
public void testrdfbased_sem_ndis_alldifferent_fw_distinctmembers() { |
| 696 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 697 |
+ " <owl:AllDifferent rdf:about=\"http://www.example.org#z\">\n" |
| 698 |
+ " <owl:distinctMembers rdf:parseType=\"Collection\">\n" |
| 699 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w1\">\n" |
| 700 |
+ " <owl:sameAs rdf:resource=\"http://www.example.org#w2\"/></rdf:Description>\n" |
| 701 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w2\"/>\n" |
| 702 |
+ " <rdf:Description rdf:about=\"http://www.example.org#w3\"/></owl:distinctMembers></owl:AllDifferent>\n" |
| 703 |
+ "</rdf:RDF>"; |
| 704 |
String conclusion = ""; |
| 705 |
String id = "rdfbased_sem_ndis_alldifferent_fw_distinctmembers"; |
| 706 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 707 |
String d = "All the members of an owl:AllDifferent construct are mutually different from each other. This test applies the legacy property owl:distinctMembers."; |
| 708 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 709 |
r.setReasonerFactory(factory()); |
| 710 |
r.run(); |
| 711 |
} |
| 712 |
|
| 713 |
@Test |
| 714 |
@Changed |
| 715 |
public void testrdfbased_sem_ndis_alldisjointclasses_fw() { |
| 716 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 717 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 718 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 719 |
+ "<owl:Class rdf:about=\"http://www.example.org#c3\"/>\n" |
| 720 |
+ " <owl:AllDisjointClasses rdf:about=\"http://www.example.org#z\">\n" |
| 721 |
+ " <owl:members rdf:parseType=\"Collection\">\n" |
| 722 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\"/>\n" |
| 723 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\"/>\n" |
| 724 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c3\"/></owl:members></owl:AllDisjointClasses>\n" |
| 725 |
+ " <ex:c1 rdf:about=\"http://www.example.org#w\">\n" |
| 726 |
+ " <rdf:type rdf:resource=\"http://www.example.org#c2\"/></ex:c1></rdf:RDF>"; |
| 727 |
String conclusion = ""; |
| 728 |
String id = "rdfbased_sem_ndis_alldisjointclasses_fw"; |
| 729 |
TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); |
| 730 |
String d = "All the members of an owl:AllDisjointClasses construct are mutually disjoint classes."; |
| 731 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 732 |
r.setReasonerFactory(factory()); |
| 733 |
r.run(); |
| 734 |
} |
| 735 |
|
| 736 |
@Test |
| 737 |
public void testrdfbased_sem_prop_backwardcompatiblewith_type_annot() { |
| 738 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 739 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 740 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2002/07/owl#backwardCompatibleWith\"/></rdf:RDF>"; |
| 741 |
String id = "rdfbased_sem_prop_backwardcompatiblewith_type_annot"; |
| 742 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 743 |
String d = "The type of the vocabulary property owl:backwardCompatibleWith is the class of annotation properties."; |
| 744 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 745 |
r.setReasonerFactory(factory()); |
| 746 |
r.run(); |
| 747 |
} |
| 748 |
|
| 749 |
@Test |
| 750 |
public void testrdfbased_sem_prop_comment_type() { |
| 751 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 752 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 753 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2000/01/rdf-schema#comment\"/></rdf:RDF>"; |
| 754 |
String id = "rdfbased_sem_prop_comment_type"; |
| 755 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 756 |
String d = "The type of the vocabulary property rdfs:comment is the class of annotation properties."; |
| 757 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 758 |
r.setReasonerFactory(factory()); |
| 759 |
r.run(); |
| 760 |
} |
| 761 |
|
| 762 |
@Test |
| 763 |
public void testrdfbased_sem_prop_deprecated_type() { |
| 764 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 765 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 766 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2002/07/owl#deprecated\"/></rdf:RDF>"; |
| 767 |
String id = "rdfbased_sem_prop_deprecated_type"; |
| 768 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 769 |
String d = "The type of the vocabulary property owl:deprecated is the class of annotation properties."; |
| 770 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 771 |
r.setReasonerFactory(factory()); |
| 772 |
r.run(); |
| 773 |
} |
| 774 |
|
| 775 |
@Test |
| 776 |
public void testrdfbased_sem_prop_incompatiblewith_type_annot() { |
| 777 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 778 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 779 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2002/07/owl#incompatibleWith\"/></rdf:RDF>"; |
| 780 |
String id = "rdfbased_sem_prop_incompatiblewith_type_annot"; |
| 781 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 782 |
String d = "The type of the vocabulary property owl:incompatibleWith is the class of annotation properties."; |
| 783 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 784 |
r.setReasonerFactory(factory()); |
| 785 |
r.run(); |
| 786 |
} |
| 787 |
|
| 788 |
@Test |
| 789 |
public void testrdfbased_sem_prop_isdefinedby_type() { |
| 790 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 791 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 792 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2000/01/rdf-schema#isDefinedBy\"/></rdf:RDF>"; |
| 793 |
String id = "rdfbased_sem_prop_isdefinedby_type"; |
| 794 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 795 |
String d = "The type of the vocabulary property rdfs:isDefinedBy is the class of annotation properties."; |
| 796 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 797 |
r.setReasonerFactory(factory()); |
| 798 |
r.run(); |
| 799 |
} |
| 800 |
|
| 801 |
@Test |
| 802 |
public void testrdfbased_sem_prop_label_type() { |
| 803 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 804 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 805 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2000/01/rdf-schema#label\"/></rdf:RDF>"; |
| 806 |
String id = "rdfbased_sem_prop_label_type"; |
| 807 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 808 |
String d = "The type of the vocabulary property rdfs:label is the class of annotation properties."; |
| 809 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 810 |
r.setReasonerFactory(factory()); |
| 811 |
r.run(); |
| 812 |
} |
| 813 |
|
| 814 |
@Test |
| 815 |
public void testrdfbased_sem_prop_priorversion_type_annot() { |
| 816 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 817 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 818 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2002/07/owl#priorVersion\"/></rdf:RDF>"; |
| 819 |
String id = "rdfbased_sem_prop_priorversion_type_annot"; |
| 820 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 821 |
String d = "The type of the vocabulary property owl:priorVersion is the class of annotation properties."; |
| 822 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 823 |
r.setReasonerFactory(factory()); |
| 824 |
r.run(); |
| 825 |
} |
| 826 |
|
| 827 |
@Test |
| 828 |
public void testrdfbased_sem_prop_seealso_type() { |
| 829 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 830 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 831 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2000/01/rdf-schema#seeAlso\"/></rdf:RDF>"; |
| 832 |
String id = "rdfbased_sem_prop_seealso_type"; |
| 833 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 834 |
String d = "The type of the vocabulary property rdfs:seeAlso is the class of annotation properties."; |
| 835 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 836 |
r.setReasonerFactory(factory()); |
| 837 |
r.run(); |
| 838 |
} |
| 839 |
|
| 840 |
@Test |
| 841 |
public void testrdfbased_sem_prop_versioninfo_type() { |
| 842 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"></rdf:RDF>"; |
| 843 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 844 |
+ " <owl:AnnotationProperty rdf:about=\"http://www.w3.org/2002/07/owl#versionInfo\"/></rdf:RDF>"; |
| 845 |
String id = "rdfbased_sem_prop_versioninfo_type"; |
| 846 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 847 |
String d = "The type of the vocabulary property owl:versionInfo is the class of annotation properties."; |
| 848 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 849 |
r.setReasonerFactory(factory()); |
| 850 |
r.run(); |
| 851 |
} |
| 852 |
|
| 853 |
@Test |
| 854 |
@Changed |
| 855 |
public void testrdfbased_sem_rdfs_subclass_cond() { |
| 856 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 857 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 858 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 859 |
+ " <ex:c1 rdf:about=\"http://www.example.org#w\"/>\n" |
| 860 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 861 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 862 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 863 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 864 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 865 |
+ " <ex:c2 rdf:about=\"http://www.example.org#w\"/>\n" |
| 866 |
+ "</rdf:RDF>"; |
| 867 |
String id = "rdfbased_sem_rdfs_subclass_cond"; |
| 868 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 869 |
String d = "The extensions of two classes related by rdfs:subClassOf are in a subsumption relationship."; |
| 870 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 871 |
r.setReasonerFactory(factory()); |
| 872 |
r.run(); |
| 873 |
} |
| 874 |
|
| 875 |
@Test |
| 876 |
@Changed |
| 877 |
public void testrdfbased_sem_rdfs_subclass_trans() { |
| 878 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 879 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 880 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 881 |
+ "<owl:Class rdf:about=\"http://www.example.org#c3\"/>\n" |
| 882 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 883 |
+ " <rdfs:subClassOf>\n" |
| 884 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c2\">\n" |
| 885 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c3\"/></rdf:Description></rdfs:subClassOf></rdf:Description>\n" |
| 886 |
+ "</rdf:RDF>"; |
| 887 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 888 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 889 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 890 |
+ "<owl:Class rdf:about=\"http://www.example.org#c3\"/>\n" |
| 891 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 892 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c3\"/></rdf:Description></rdf:RDF>"; |
| 893 |
String id = "rdfbased_sem_rdfs_subclass_trans"; |
| 894 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 895 |
String d = "The property rdfs:subClassOf is transitive."; |
| 896 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 897 |
r.setReasonerFactory(factory()); |
| 898 |
r.run(); |
| 899 |
} |
| 900 |
|
| 901 |
@Test |
| 902 |
@Changed |
| 903 |
public void testrdfbased_sem_rdfs_subprop_cond() { |
| 904 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 905 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 906 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 907 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s\">\n" |
| 908 |
+ " <ex:p1 rdf:resource=\"http://www.example.org#o\"/></rdf:Description>\n" |
| 909 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 910 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p2\"/></rdf:Description></rdf:RDF>"; |
| 911 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 912 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 913 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 914 |
+ " <rdf:Description rdf:about=\"http://www.example.org#s\">\n" |
| 915 |
+ " <ex:p2 rdf:resource=\"http://www.example.org#o\"/></rdf:Description></rdf:RDF>"; |
| 916 |
String id = "rdfbased_sem_rdfs_subprop_cond"; |
| 917 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 918 |
String d = "The extensions of two properties related by rdfs:subPropertyOf are in a subsumption relationship."; |
| 919 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 920 |
r.setReasonerFactory(factory()); |
| 921 |
r.run(); |
| 922 |
} |
| 923 |
|
| 924 |
@Test |
| 925 |
@Changed |
| 926 |
public void testrdfbased_sem_rdfs_subprop_trans() { |
| 927 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 928 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 929 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 930 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p3\"/>\n" |
| 931 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 932 |
+ " <rdfs:subPropertyOf>\n" |
| 933 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 934 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p3\"/></rdf:Description></rdfs:subPropertyOf></rdf:Description>\n" |
| 935 |
+ "</rdf:RDF>"; |
| 936 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 937 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 938 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 939 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p3\"/>\n" |
| 940 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 941 |
+ " <rdfs:subPropertyOf rdf:resource=\"http://www.example.org#p3\"/></rdf:Description></rdf:RDF>"; |
| 942 |
String id = "rdfbased_sem_rdfs_subprop_trans"; |
| 943 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 944 |
String d = "The property rdfs:subPropertyOf is transitive."; |
| 945 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 946 |
r.setReasonerFactory(factory()); |
| 947 |
r.run(); |
| 948 |
} |
| 949 |
|
| 950 |
@Test |
| 951 |
@Changed |
| 952 |
public void testrdfbased_sem_rdfsext_domain_subprop() { |
| 953 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 954 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 955 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 956 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 957 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 958 |
+ " <rdfs:subPropertyOf>\n" |
| 959 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 960 |
+ " <rdfs:domain rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdfs:subPropertyOf></rdf:Description>\n" |
| 961 |
+ "</rdf:RDF>"; |
| 962 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 963 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 964 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 965 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 966 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 967 |
+ " <rdfs:domain rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdf:RDF>"; |
| 968 |
String id = "rdfbased_sem_rdfsext_domain_subprop"; |
| 969 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 970 |
String d = "Every sub property of a given property with a given domain also has this domain."; |
| 971 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 972 |
r.setReasonerFactory(factory()); |
| 973 |
r.run(); |
| 974 |
} |
| 975 |
|
| 976 |
@Test |
| 977 |
@Changed |
| 978 |
public void testrdfbased_sem_rdfsext_domain_superclass() { |
| 979 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 980 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 981 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 982 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 983 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 984 |
+ " <rdfs:domain>\n" |
| 985 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 986 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdfs:domain></rdf:Description>\n" |
| 987 |
+ "</rdf:RDF>"; |
| 988 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 989 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 990 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 991 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 992 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 993 |
+ " <rdfs:domain rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 994 |
String id = "rdfbased_sem_rdfsext_domain_superclass"; |
| 995 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 996 |
String d = "Every super class of a domain for a given property is itself a domain for that property."; |
| 997 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 998 |
r.setReasonerFactory(factory()); |
| 999 |
r.run(); |
| 1000 |
} |
| 1001 |
|
| 1002 |
@Test |
| 1003 |
@Changed |
| 1004 |
public void testrdfbased_sem_rdfsext_range_subprop() { |
| 1005 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 1006 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 1007 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 1008 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 1009 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 1010 |
+ " <rdfs:subPropertyOf>\n" |
| 1011 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p2\">\n" |
| 1012 |
+ " <rdfs:range rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdfs:subPropertyOf></rdf:Description>\n" |
| 1013 |
+ "</rdf:RDF>"; |
| 1014 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 1015 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p1\"/>\n" |
| 1016 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p2\"/>\n" |
| 1017 |
+ "<owl:Class rdf:about=\"http://www.example.org#c\"/>\n" |
| 1018 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p1\">\n" |
| 1019 |
+ " <rdfs:range rdf:resource=\"http://www.example.org#c\"/></rdf:Description></rdf:RDF>"; |
| 1020 |
String id = "rdfbased_sem_rdfsext_range_subprop"; |
| 1021 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 1022 |
String d = "Every sub property of a given property with a given range also has this range."; |
| 1023 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 1024 |
r.setReasonerFactory(factory()); |
| 1025 |
r.run(); |
| 1026 |
} |
| 1027 |
|
| 1028 |
@Test |
| 1029 |
@Changed |
| 1030 |
public void testrdfbased_sem_rdfsext_range_superclass() { |
| 1031 |
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:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 1032 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 1033 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 1034 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 1035 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 1036 |
+ " <rdfs:range>\n" |
| 1037 |
+ " <rdf:Description rdf:about=\"http://www.example.org#c1\">\n" |
| 1038 |
+ " <rdfs:subClassOf rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdfs:range></rdf:Description>\n" |
| 1039 |
+ "</rdf:RDF>"; |
| 1040 |
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#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:ex=\"http://www.example.org#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">\n" |
| 1041 |
+ "<owl:Class rdf:about=\"http://www.example.org#c2\"/>\n" |
| 1042 |
+ "<owl:Class rdf:about=\"http://www.example.org#c1\"/>\n" |
| 1043 |
+ "<owl:ObjectProperty rdf:about=\"http://www.example.org#p\"/>\n" |
| 1044 |
+ " <rdf:Description rdf:about=\"http://www.example.org#p\">\n" |
| 1045 |
+ " <rdfs:range rdf:resource=\"http://www.example.org#c2\"/></rdf:Description></rdf:RDF>"; |
| 1046 |
String id = "rdfbased_sem_rdfsext_range_superclass"; |
| 1047 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 1048 |
String d = "Every super class of a range for a given property is itself a range for that property."; |
| 1049 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 1050 |
r.setReasonerFactory(factory()); |
| 1051 |
r.run(); |
| 1052 |
} |
| 1053 |
} |