001: /******************************************************************
002: * File: RDFTest.java
003: * Created by: Dave Reynolds
004: * Created on: 12-Sep-2003
005: *
006: (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
007: * [See end of file]
008: * $Id: RDFTest.java,v 1.6 2008/01/02 12:07:29 andy_seaborne Exp $
009: *****************************************************************/package com.hp.hpl.jena.vocabulary;
010:
011: import com.hp.hpl.jena.rdf.model.*;
012:
013: /**
014: * The vocabulary used by the RDFCore working group to define test manifests.
015: * <p>
016: * Vocabulary definitions from file:data/testOntology.rdf
017: * @author Auto-generated by schemagen on 12 Sep 2003 17:17
018: */
019: public class RDFTest {
020:
021: /** <p>The RDF model that holds the vocabulary terms</p> */
022: private static Model m_model = ModelFactory.createDefaultModel();
023:
024: /** <p>The namespace of the vocabalary as a string ({@value})</p> */
025: public static final String NS = "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#";
026:
027: /** <p>The namespace of the vocabalary as a string</p>
028: * @see #NS */
029: public static String getURI() {
030: return NS;
031: }
032:
033: /** <p>The namespace of the vocabalary as a resource</p> */
034: public static final Resource NAMESPACE = m_model.createResource(NS);
035:
036: /** <p>Contains a reference to the minutes of the WG meeting where the test case
037: * status was last changed.</p>
038: */
039: public static final Property approval = m_model
040: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#approval");
041:
042: /** <p>A human-readable summary of the test case.</p> */
043: public static final Property description = m_model
044: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#description");
045:
046: /** <p>Contains a pointer to other discussion surrounding this test case or the associated
047: * issue.</p>
048: */
049: public static final Property discussion = m_model
050: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#discussion");
051:
052: /** <p>The rules for determining entailment - presently RDF alone or RDF and RDFS;
053: * in addition, the requirement for datatype support machinery can be indicated.</p>
054: */
055: public static final Property entailmentRules = m_model
056: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#entailmentRules");
057:
058: /** <p>A test case input document.</p> */
059: public static final Property inputDocument = m_model
060: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#inputDocument");
061:
062: /** <p>Contains a pointer to the associated issue, such as is listed on the RDF Core
063: * WG Tracking document.</p>
064: */
065: public static final Property issue = m_model
066: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#issue");
067:
068: /** <p>A test case output document</p> */
069: public static final Property outputDocument = m_model
070: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#outputDocument");
071:
072: /** <p>Indicates the status of the test within a process, such as the RDF Core WG
073: * process.</p>
074: */
075: public static final Property status = m_model
076: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#status");
077:
078: /** <p>Indicates that while the test should pass, it may generate a warning.</p> */
079: public static final Property warning = m_model
080: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#warning");
081:
082: /** <p>A premise document of an entailment.</p> */
083: public static final Property premiseDocument = m_model
084: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#premiseDocument");
085:
086: /** <p>A conclusion document of an entailment.</p> */
087: public static final Property conclusionDocument = m_model
088: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#conclusionDocument");
089:
090: /** <p>A test case document for a miscellaneous test.</p> */
091: public static final Property document = m_model
092: .createProperty("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#document");
093:
094: /** <p>This manifest entry is used to describe test cases that do not fall into one
095: * of the categories. It may have several associated files, indicated in <test:document>
096: * elements.</p>
097: */
098: public static final Resource MiscellaneousTest = m_model
099: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#MiscellaneousTest");
100:
101: /** <p></p> */
102: public static final Resource NT_Document = m_model
103: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NT-Document");
104:
105: /** <p>These tests consist of one or more premise documents, and a consequent document.
106: * An inference engine is considered to pass the test if it correctly holds that
107: * the expressions in the premise documents do not entail those in the the conclusion
108: * document.</p>
109: */
110: public static final Resource NegativeEntailmentTest = m_model
111: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NegativeEntailmentTest");
112:
113: /** <p>These tests consist of one input document. The document is not legal RDF/XML.
114: * A parser is considered to pass the test if it correctly holds the input document
115: * to be in error.</p>
116: */
117: public static final Resource NegativeParserTest = m_model
118: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NegativeParserTest");
119:
120: /** <p>These tests are specified by one or more premise documents (in RDF/XML or
121: * N-Triples) together with a single conclusion document. In addition, the rules
122: * used for determining entailment are specified by test:entailmentRules elements.</p>
123: */
124: public static final Resource PositiveEntailmentTest = m_model
125: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#PositiveEntailmentTest");
126:
127: /** <p>These tests consist of one (or more) input documents in RDF/XML as revised.
128: * The expected result is defined using the N-Triples syntax.</p>
129: */
130: public static final Resource PositiveParserTest = m_model
131: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#PositiveParserTest");
132:
133: /** <p></p> */
134: public static final Resource RDF_XML_Document = m_model
135: .createResource("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#RDF-XML-Document");
136:
137: }
138:
139: /*
140: (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
141: All rights reserved.
142:
143: Redistribution and use in source and binary forms, with or without
144: modification, are permitted provided that the following conditions
145: are met:
146:
147: 1. Redistributions of source code must retain the above copyright
148: notice, this list of conditions and the following disclaimer.
149:
150: 2. Redistributions in binary form must reproduce the above copyright
151: notice, this list of conditions and the following disclaimer in the
152: documentation and/or other materials provided with the distribution.
153:
154: 3. The name of the author may not be used to endorse or promote products
155: derived from this software without specific prior written permission.
156:
157: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
158: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
159: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
160: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
161: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
162: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
163: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
164: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
165: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
166: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
167: */
|