package conformancetests; import org.junit.Ignore; /* This file is part of the JFact DL reasoner Copyright 2011-2013 by Ignazio Palmisano, Dmitry Tsarkov, University of Manchester 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. 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. 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*/ import org.junit.Test; import testbase.TestBase; @SuppressWarnings("javadoc") public class WebOnt_allValuesFrom_001_TestCase extends TestBase { @Test public void testWebOnt_miscellaneous_203() { String premise = "\n" + '\n' + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + "
\n" + "\"Venn\n" + '\n' + "
\n" + "

\n" + "
\n" + "
"; String conclusion = ""; String id = "WebOnt_miscellaneous_203"; TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); String d = "This shows that initial whitespace in an rdf:XMLLiteral (http://www.w3.org/TR/rdf-concepts/#section-XMLLiteral) is significant within OWL."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test @Ignore("FaCT++ datatype problems") public void testWebOnt_miscellaneous_202() { String premise = // "\n" // + "\n" // + " \n" // + " \n" // + " \n" // + " \n" // + "
\n" // + // "\"Venn
\n" // + "

\n" + "
\n" + "
\n" // + ""; "Prefix(xsd:=)\n" + "Prefix(owl:=)\n" + "Prefix(xml:=)\n" + "Prefix(rdf:=)\n" + "Prefix(rdfs:=)\n" + "Ontology(\n" + "Declaration(DataProperty())\n" + "FunctionalDataProperty()\n" + "ClassAssertion(owl:Thing )\n" + "DataPropertyAssertion( \"

\n\n" + "\"^^rdf:XMLLiteral)\n" + "DataPropertyAssertion( \"

\n" + "\"^^rdf:XMLLiteral)\n" + ')'; // TODO this is silly, to pass this test the reasoner needs a lot of // extra processing for literals... maybe the OWL API should do this, it // can be useful for users in general and it's actually down to the // equals method for XML Literals. String conclusion = ""; String id = "WebOnt_miscellaneous_202"; TestClasses tc = TestClasses.valueOf("CONSISTENCY"); String d = "This shows that insignificant whitespace in an rdf:XMLLiteral is not significant within OWL."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test public void testWebOnt_miscellaneous_204() { String premise = "" + "\n" + " \n" + " Good!\n" + " Bad!"; String conclusion = ""; String id = "WebOnt_miscellaneous_204"; TestClasses tc = TestClasses.valueOf("INCONSISTENCY"); 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."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test public void testWebOnt_allValuesFrom_001() { String premise = "\n" + " \n" + " \n" + " \n" + " \n" + " "; String conclusion = "\n" + " \n" + " "; String id = "WebOnt_allValuesFrom_001"; TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); String d = "A simple example."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test public void testWebOnt_allValuesFrom_002() { String premise = "Prefix(xsd:=)\n" + "Prefix(owl:=)\n" + "Prefix(xml:=)\n" + "Prefix(rdf:=)\n" + "Prefix(rdfs:=)\n" + "Ontology(\n" + "Declaration(Class())\n" + "Declaration(Class())\n" + "Declaration(ObjectProperty())\n" + "SubClassOf( ObjectAllValuesFrom( ))\n" + "ClassAssertion( )\n" + "ClassAssertion(owl:Thing )\n" + "ClassAssertion(owl:Thing ))"; String conclusion = "Prefix(xsd:=)\n" + "Prefix(owl:=)\n" + "Prefix(xml:=)\n" + "Prefix(rdf:=)\n" + "Prefix(rdfs:=)\n" + "Ontology(\n" + "Declaration(Class())\n" + "Declaration(Class())\n" + "Declaration(ObjectProperty())\n" + // "ClassAssertion(owl:Thing )\n"+ // "ClassAssertion(owl:Thing )\n"+ "ObjectPropertyAssertion( )\n" + "ClassAssertion( )\n" + // "ClassAssertion(owl:Thing )" + ')'; String id = "WebOnt_allValuesFrom_002"; TestClasses tc = TestClasses.valueOf("NEGATIVE_IMPL"); String d = "Another simple example; contrast with owl:someValuesFrom."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test @Ignore("FaCT++ does not accept new individuals in queries") public void testWebOnt_I4_6_004() { String premise = "\n" + " \n" + " \n" + " \n" + " \n" + ""; String conclusion = "\n" + " \n" + " \n" + " \n" + " \n" + ""; String id = "WebOnt_I4_6_004"; TestClasses tc = TestClasses.valueOf("NEGATIVE_IMPL"); String d = "owl:sameAs is stronger than owl:equivalentClass."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test public void testWebOnt_I5_21_002() { String premise = "\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " 1\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Amphisbaenidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Agamidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Anomalepidae\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " Emydidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Crocodylidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Gekkonidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Sphenodontidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Cordylidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Bipedidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Leptotyphlopidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Xantusiidae\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " Loxocemidae\n" + '\n' + '\n' + ""; String conclusion = "\n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + " \n" + '\n' + " \n" + " \n" + '\n' + " \n" + '\n' + ""; String id = "WebOnt_I5_21_002"; TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); String d = "The construct used here shows how to express mutual disjointness between classes with O(N) triples."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } @Test public void testWebOnt_I5_8_006() { String premise = "\n" + " \n" + " \n" + " "; String conclusion = "\n" + " \n" + " \n" + " \n" + '\n' + ""; String id = "WebOnt_I5_8_006"; TestClasses tc = TestClasses.valueOf("POSITIVE_IMPL"); String d = "All xsd:byte\n" + "are xsd:short."; JUnitRunner r = new JUnitRunner(premise, conclusion, id, tc, d); r.setReasonerFactory(factory()); r.run(); } }