Ejemplo n.º 1
0
  @Before
  public void setUp() throws Exception {
    arg1simple = f.createLiteral("abc");
    arg2simple = f.createLiteral("b");

    arg1en = f.createLiteral("abc", "en");
    arg2en = f.createLiteral("b", "en");

    arg1cy = f.createLiteral("abc", "cy");
    arg2cy = f.createLiteral("b", "cy");

    arg1string = f.createLiteral("abc", XMLSchema.STRING);
    arg2string = f.createLiteral("b", XMLSchema.STRING);

    arg1year = f.createLiteral("2007", XMLSchema.GYEAR);
    arg2year = f.createLiteral("2009", XMLSchema.GYEAR);

    arg1dateTime = f.createLiteral("2009-01-01T20:20:20Z", XMLSchema.DATETIME);
    arg2dateTime = f.createLiteral("2007-01-01T20:20:20+02:00", XMLSchema.DATETIME);

    arg1int = f.createLiteral(10);
    arg2int = f.createLiteral(1);

    arg1unknown = f.createLiteral("foo", f.createIRI("http://example.com/datatype"));
    arg2unknown = f.createLiteral("bar", f.createIRI("http://example.com/datatype"));
  }
Ejemplo n.º 2
0
  static {
    ValueFactory factory = SimpleValueFactory.getInstance();
    ASSERTOR = factory.createIRI(EARL.NAMESPACE, "Assertor");
    ASSERTION = factory.createIRI(EARL.NAMESPACE, "Assertion");
    ASSERTEDBY = factory.createIRI(EARL.NAMESPACE, "assertedBy");
    SUBJECT = factory.createIRI(EARL.NAMESPACE, "subject");
    TEST = factory.createIRI(EARL.NAMESPACE, "test");
    TEST_SUBJECT = factory.createIRI(EARL.NAMESPACE, "TestSubject");
    RESULT = factory.createIRI(EARL.NAMESPACE, "result");
    MODE = factory.createIRI(EARL.NAMESPACE, "mode");
    TESTRESULT = factory.createIRI(EARL.NAMESPACE, "TestResult");
    OUTCOME = factory.createIRI(EARL.NAMESPACE, "outcome");
    SOFTWARE = factory.createIRI(EARL.NAMESPACE, "Software");

    // Outcome values

    PASS = factory.createIRI(EARL.NAMESPACE, "pass");
    FAIL = factory.createIRI(EARL.NAMESPACE, "fail");
    CANNOTTELL = factory.createIRI(EARL.NAMESPACE, "cannotTell");
    NOTAPPLICABLE = factory.createIRI(EARL.NAMESPACE, "notApplicable");
    NOTTESTED = factory.createIRI(EARL.NAMESPACE, "notTested");

    // Test modes
    MANUAL = factory.createIRI(EARL.NAMESPACE, "manual");
    AUTOMATIC = factory.createIRI(EARL.NAMESPACE, "automatic");
    SEMIAUTOMATIC = factory.createIRI(EARL.NAMESPACE, "semiAutomatic");
    NOTAVAILABLE = factory.createIRI(EARL.NAMESPACE, "notAvailable");
    HEURISTIC = factory.createIRI(EARL.NAMESPACE, "heuristic");
  }
Ejemplo n.º 3
0
 static {
   ValueFactory factory = SimpleValueFactory.getInstance();
   EVALUATION_STRATEGY_FACTORY = factory.createIRI(NAMESPACE, "evaluationStrategyFactory");
 }