KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > vocabulary > RDFTest


1 /******************************************************************
2  * File: RDFTest.java
3  * Created by: Dave Reynolds
4  * Created on: 12-Sep-2003
5  *
6     (c) Copyright 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
7 * [See end of file]
8  * $Id: RDFTest.java,v 1.3 2005/02/21 12:21:35 andy_seaborne Exp $
9  *****************************************************************/

10 package com.hp.hpl.jena.vocabulary;
11
12 import com.hp.hpl.jena.rdf.model.*;
13  
14 /**
15  * The vocabulary used by the RDFCore working group to define test manifests.
16  * <p>
17  * Vocabulary definitions from file:data/testOntology.rdf
18  * @author Auto-generated by schemagen on 12 Sep 2003 17:17
19  */

20 public class RDFTest {
21     
22     /** <p>The RDF model that holds the vocabulary terms</p> */
23     private static Model m_model = ModelFactory.createDefaultModel();
24     
25     /** <p>The namespace of the vocabalary as a string ({@value})</p> */
26     public static final String JavaDoc NS = "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#";
27     
28     /** <p>The namespace of the vocabalary as a string</p>
29      * @see #NS */

30     public static String JavaDoc getURI() {return NS;}
31     
32     /** <p>The namespace of the vocabalary as a resource</p> */
33     public static final Resource NAMESPACE = m_model.createResource( NS );
34     
35     /** <p>Contains a reference to the minutes of the WG meeting where the test case
36      * status was last changed.</p>
37      */

38     public static final Property approval = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#approval" );
39     
40     /** <p>A human-readable summary of the test case.</p> */
41     public static final Property description = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#description" );
42     
43     /** <p>Contains a pointer to other discussion surrounding this test case or the associated
44      * issue.</p>
45      */

46     public static final Property discussion = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#discussion" );
47     
48     /** <p>The rules for determining entailment - presently RDF alone or RDF and RDFS;
49      * in addition, the requirement for datatype support machinery can be indicated.</p>
50      */

51     public static final Property entailmentRules = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#entailmentRules" );
52     
53     /** <p>A test case input document.</p> */
54     public static final Property inputDocument = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#inputDocument" );
55     
56     /** <p>Contains a pointer to the associated issue, such as is listed on the RDF Core
57      * WG Tracking document.</p>
58      */

59     public static final Property issue = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#issue" );
60     
61     /** <p>A test case output document</p> */
62     public static final Property outputDocument = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#outputDocument" );
63     
64     /** <p>Indicates the status of the test within a process, such as the RDF Core WG
65      * process.</p>
66      */

67     public static final Property status = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#status" );
68     
69     /** <p>Indicates that while the test should pass, it may generate a warning.</p> */
70     public static final Property warning = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#warning" );
71     
72     /** <p>A premise document of an entailment.</p> */
73     public static final Property premiseDocument = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#premiseDocument" );
74     
75     /** <p>A conclusion document of an entailment.</p> */
76     public static final Property conclusionDocument = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#conclusionDocument" );
77     
78     /** <p>A test case document for a miscellaneous test.</p> */
79     public static final Property document = m_model.createProperty( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#document" );
80     
81     /** <p>This manifest entry is used to describe test cases that do not fall into one
82      * of the categories. It may have several associated files, indicated in <test:document>
83      * elements.</p>
84      */

85     public static final Resource MiscellaneousTest = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#MiscellaneousTest" );
86     
87     /** <p></p> */
88     public static final Resource NT_Document = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NT-Document" );
89     
90     /** <p>These tests consist of one or more premise documents, and a consequent document.
91      * An inference engine is considered to pass the test if it correctly holds that
92      * the expressions in the premise documents do not entail those in the the conclusion
93      * document.</p>
94      */

95     public static final Resource NegativeEntailmentTest = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NegativeEntailmentTest" );
96     
97     /** <p>These tests consist of one input document. The document is not legal RDF/XML.
98      * A parser is considered to pass the test if it correctly holds the input document
99      * to be in error.</p>
100      */

101     public static final Resource NegativeParserTest = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#NegativeParserTest" );
102     
103     /** <p>These tests are specified by one or more premise documents (in RDF/XML or
104      * N-Triples) together with a single conclusion document. In addition, the rules
105      * used for determining entailment are specified by test:entailmentRules elements.</p>
106      */

107     public static final Resource PositiveEntailmentTest = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#PositiveEntailmentTest" );
108     
109     /** <p>These tests consist of one (or more) input documents in RDF/XML as revised.
110      * The expected result is defined using the N-Triples syntax.</p>
111      */

112     public static final Resource PositiveParserTest = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#PositiveParserTest" );
113     
114     /** <p></p> */
115     public static final Resource RDF_XML_Document = m_model.createResource( "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#RDF-XML-Document" );
116     
117
118 }
119
120 /*
121    (c) Copyright 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
122     All rights reserved.
123
124     Redistribution and use in source and binary forms, with or without
125     modification, are permitted provided that the following conditions
126     are met:
127
128     1. Redistributions of source code must retain the above copyright
129        notice, this list of conditions and the following disclaimer.
130
131     2. Redistributions in binary form must reproduce the above copyright
132        notice, this list of conditions and the following disclaimer in the
133        documentation and/or other materials provided with the distribution.
134
135     3. The name of the author may not be used to endorse or promote products
136        derived from this software without specific prior written permission.
137
138     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
139     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
140     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
141     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
142     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
143     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
144     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
145     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
146     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
147     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
148 */
Popular Tags