01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.parser.sparql;
07:
08: import org.openrdf.model.URI;
09: import org.openrdf.model.ValueFactory;
10: import org.openrdf.model.impl.ValueFactoryImpl;
11:
12: /**
13: * Constants for EARL primitives and for the EARL namespace.
14: */
15: public class EARL {
16:
17: public static final String NAMESPACE = "http://www.w3.org/ns/earl#";
18:
19: public final static URI ASSERTION;
20:
21: public final static URI ASSERTEDBY;
22:
23: public final static URI SUBJECT;
24:
25: public final static URI TEST;
26:
27: public final static URI RESULT;
28:
29: public final static URI MODE;
30:
31: public final static URI TESTRESULT;
32:
33: public final static URI OUTCOME;
34:
35: public final static URI SOFTWARE;
36:
37: // Outcome values
38:
39: public final static URI PASS;
40:
41: public final static URI FAIL;
42:
43: public final static URI CANNOTTELL;
44:
45: public final static URI NOTAPPLICABLE;
46:
47: public final static URI NOTTESTED;
48:
49: // Test modes
50:
51: public final static URI MANUAL;
52:
53: public final static URI AUTOMATIC;
54:
55: public final static URI SEMIAUTOMATIC;
56:
57: public final static URI NOTAVAILABLE;
58:
59: public final static URI HEURISTIC;
60:
61: static {
62: ValueFactory factory = ValueFactoryImpl.getInstance();
63: ASSERTION = factory.createURI(EARL.NAMESPACE, "Assertion");
64: ASSERTEDBY = factory.createURI(EARL.NAMESPACE, "assertedBy");
65: SUBJECT = factory.createURI(EARL.NAMESPACE, "subject");
66: TEST = factory.createURI(EARL.NAMESPACE, "test");
67: RESULT = factory.createURI(EARL.NAMESPACE, "result");
68: MODE = factory.createURI(EARL.NAMESPACE, "mode");
69: TESTRESULT = factory.createURI(EARL.NAMESPACE, "TestResult");
70: OUTCOME = factory.createURI(EARL.NAMESPACE, "outcome");
71: SOFTWARE = factory.createURI(EARL.NAMESPACE, "Software");
72:
73: // Outcome values
74:
75: PASS = factory.createURI(EARL.NAMESPACE, "pass");
76: FAIL = factory.createURI(EARL.NAMESPACE, "fail");
77: CANNOTTELL = factory.createURI(EARL.NAMESPACE, "cannotTell");
78: NOTAPPLICABLE = factory.createURI(EARL.NAMESPACE,
79: "notApplicable");
80: NOTTESTED = factory.createURI(EARL.NAMESPACE, "notTested");
81:
82: // Test modes
83: MANUAL = factory.createURI(EARL.NAMESPACE, "manual");
84: AUTOMATIC = factory.createURI(EARL.NAMESPACE, "automatic");
85: SEMIAUTOMATIC = factory.createURI(EARL.NAMESPACE,
86: "semiAutomatic");
87: NOTAVAILABLE = factory
88: .createURI(EARL.NAMESPACE, "notAvailable");
89: HEURISTIC = factory.createURI(EARL.NAMESPACE, "heuristic");
90: }
91: }
|