Exemple #1
0
  public Graph testRuleNotOpt() throws LoadException, EngineException {
    RuleEngine re = testRules();
    Graph g = re.getRDFGraph();

    System.out.println("Graph: " + g.size());
    Date d1 = new Date();
    re.process();
    Date d2 = new Date();
    System.out.println("** Time std: " + (d2.getTime() - d1.getTime()) / (1000.0));

    validate(g, 41109);
    assertEquals(57402, g.size());
    return g;
  }
Exemple #2
0
  public Graph testRuleOpt() throws LoadException, EngineException {
    RuleEngine re = testRules();
    Graph g = re.getRDFGraph();

    re.setSpeedUp(true);
    System.out.println("Graph: " + g.size());
    Date d1 = new Date();
    re.process();
    Date d2 = new Date();
    System.out.println("** Time opt: " + (d2.getTime() - d1.getTime()) / (1000.0));
    validate(g, 37735);

    assertEquals(54028, g.size());
    return g;
  }