| 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_AnnotationProperty_002_TestCase extends TestBase { |
| 15 |
|
| 16 |
@Test |
| 17 |
@Ignore("FaCT++ vs OWL API mismatch") |
| 18 |
public void testWebOnt_AnnotationProperty_002() { |
| 19 |
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:first=\"http://www.w3.org/2002/03owlt/AnnotationProperty/premises002#\"\n" |
| 20 |
+ "xml:base=\"http://www.w3.org/2002/03owlt/AnnotationProperty/premises002\" >\n" |
| 21 |
+ "<owl:Ontology/>\n" |
| 22 |
+ "<owl:Class rdf:ID=\"A\">" |
| 23 |
+ " <first:ap>" |
| 24 |
+ " <owl:Class rdf:ID=\"B\"/>" |
| 25 |
+ " </first:ap>" |
| 26 |
+ "</owl:Class>" |
| 27 |
+ "<owl:AnnotationProperty rdf:ID=\"ap\"/>" + "</rdf:RDF>"; |
| 28 |
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#\"" |
| 29 |
+ " xmlns:first=\"http://www.w3.org/2002/03owlt/AnnotationProperty/premises002#\"\n" |
| 30 |
+ " xml:base=\"http://www.w3.org/2002/03owlt/AnnotationProperty/conclusions002\" >\n" |
| 31 |
+ " <owl:Ontology/>\n" |
| 32 |
+ " <owl:Class rdf:about=\"premises002#A\">" |
| 33 |
+ " <first:ap>" |
| 34 |
+ " <owl:Thing />" |
| 35 |
+ " </first:ap>" |
| 36 |
+ " </owl:Class>" |
| 37 |
+ " <owl:AnnotationProperty rdf:about=\"premises002#ap\"/>" |
| 38 |
+ "</rdf:RDF>"; |
| 39 |
String id = "WebOnt_AnnotationProperty_002"; |
| 40 |
TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); |
| 41 |
String d = "In OWL 1, this test was used to expose differences between the RDF Based and Direct semantics. In OWL 2, the entailment ontology holds under both semantics. Under the OWL 2 Direct Semantics, annotations in the conclusion ontology are ignored, so the only axiom evaluated in ClassAssertion(owl:Thing _:x). Under the OWL 2 RDF Based semantics, annotations are relevant, and in this test, the entailment holds."; |
| 42 |
JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); |
| 43 |
r.setReasonerFactory(factory()); |
| 44 |
r.run(); |
| 45 |
} |
| 46 |
} |