Debian Codegraph @

FaCT++.Java/src/test/java/conformancetests/WebOnt_AnnotationProperty_002_TestCase.java

raw symbols SCIP
1 package conformancetests;
2
3 import org.junit.Ignore;
4 /* This file is part of the JFact DL reasoner
5 Copyright 2011-2013 by Ignazio Palmisano, Dmitry Tsarkov, University of Manchester
6 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
7 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
8 You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA*/
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 }