001: /******************************************************************
002: * File: OWLResults.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: OWLResults.java,v 1.7 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 WebOnt to encode results of test runs.
015: * <p>
016: * Vocabulary definitions from file:data/resultsOntology.rdf
017: * @author Auto-generated by schemagen on 12 Sep 2003 17:18
018: */
019: public class OWLResults {
020: /** <p>The RDF model that holds the vocabulary terms</p> */
021: private static Model m_model = ModelFactory.createDefaultModel();
022:
023: /** <p>The namespace of the vocabalary as a string ({@value})</p> */
024: public static final String NS = "http://www.w3.org/2002/03owlt/resultsOntology#";
025:
026: /** <p>The namespace of the vocabalary as a string</p>
027: * @see #NS */
028: public static String getURI() {
029: return NS;
030: }
031:
032: /** <p>The namespace of the vocabalary as a resource</p> */
033: public static final Resource NAMESPACE = m_model.createResource(NS);
034:
035: /** <p>A web page presenting the output of the test run, including system-specific
036: * additional details.</p>
037: */
038: public static final Property output = m_model
039: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#output");
040:
041: /** <p>The test in question, such as an otest:PositiveEntailmentTest.</p> */
042: public static final Property test = m_model
043: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#test");
044:
045: /** <p>Syntactic tests.</p> */
046: public static final Property syntacticLevelTestFrom = m_model
047: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#syntacticLevelTestFrom");
048:
049: /** <p>The complete system instance on which the test was run, conceptually including
050: * software and hardware components. No range restriction is provided, however,
051: * so the details are flexible; providing an rdfs:label and rdfs:comment may
052: * be sufficient for many applications.</p>
053: */
054: public static final Property system = m_model
055: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#system");
056:
057: /** <p>The point in time at which the test run started; an <a xmlns="http://www.w3.org/1999/xhtml"
058: * href="http://www.w3.org/TR/xmlschema-2/#dateTime">xsd:dateTime</a>.</p>
059: */
060: public static final Property begins = m_model
061: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#begins");
062:
063: /** <p>The time taken for the test to run (as far as it did run) on the tested system;
064: * an <a xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/xmlschema-2/#duration">xsd:duration</a>.
065: * This value depends on many factors, of course, such as the performance of
066: * the hardware components of the tested system. If the system is opaque, these
067: * values should only be used for comparison against other tests run on same
068: * system.</p>
069: */
070: public static final Property duration = m_model
071: .createProperty("http://www.w3.org/2002/03owlt/resultsOntology#duration");
072:
073: /** <p>An event where some system attempts to pass some test.</p> */
074: public static final Resource TestRun = m_model
075: .createResource("http://www.w3.org/2002/03owlt/resultsOntology#TestRun");
076:
077: /** <p>A TestRun where the system's behavior does not pass the test, but also does
078: * not fail. Typically this is caused by behaving in a way the system SHOULD
079: * NOT. For OWL tests, returning an UNKNOWN for most tests should be reported
080: * as an IncompleteRun.</p>
081: */
082: public static final Resource IncompleteRun = m_model
083: .createResource("http://www.w3.org/2002/03owlt/resultsOntology#IncompleteRun");
084:
085: /** <p>A TestRun where the system's behavior fails the test, violating a MUST NOT.</p> */
086: public static final Resource FailingRun = m_model
087: .createResource("http://www.w3.org/2002/03owlt/resultsOntology#FailingRun");
088:
089: /** <p>A TestRun where the system's behavior is sufficient for passing the test.</p> */
090: public static final Resource PassingRun = m_model
091: .createResource("http://www.w3.org/2002/03owlt/resultsOntology#PassingRun");
092:
093: }
094:
095: /*
096: (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
097: All rights reserved.
098:
099: Redistribution and use in source and binary forms, with or without
100: modification, are permitted provided that the following conditions
101: are met:
102:
103: 1. Redistributions of source code must retain the above copyright
104: notice, this list of conditions and the following disclaimer.
105:
106: 2. Redistributions in binary form must reproduce the above copyright
107: notice, this list of conditions and the following disclaimer in the
108: documentation and/or other materials provided with the distribution.
109:
110: 3. The name of the author may not be used to endorse or promote products
111: derived from this software without specific prior written permission.
112:
113: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
114: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
115: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
116: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
117: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
118: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
119: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
120: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
121: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
122: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
123: */
|