use of it.unibo.arces.wot.sepa.engine.scheduling.Scheduler in project SEPA by arces-wot.
the class SchedulerTest method main.
public static void main(String[] args) throws SEPAPropertiesException {
EngineProperties properties = new EngineProperties("engine.jpar");
System.out.println(properties.toString());
scheduler = new Scheduler(properties, null);
Handler handler = new SchedulerTest().new Handler();
while (true) {
try {
Thread.sleep(50);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
UpdateRequest update = new UpdateRequest("PREFIX test:<http://sepa/test#> delete {?s ?p ?o} insert {test:s test:p \"" + Math.random() + "\"} where {OPTIONAL{?s ?p ?o}}");
scheduler.schedule(update, handler);
QueryRequest query = new QueryRequest("select * where {?s ?p ?o}");
scheduler.schedule(query, handler);
}
}
Aggregations