[TASK] Generic commit.

This commit is contained in:
Jan Philipp Timme 2016-10-11 11:22:06 +02:00
parent b7d9e55bbf
commit 0ab6364465

View File

@ -507,7 +507,7 @@ public class RentACarSimulation implements Runnable {
* Also returns the responsible driver if available * Also returns the responsible driver if available
*/ */
public QueryContainer getWearEvents() { public QueryContainer getWearEvents() {
String query = "REGISTER QUERY getWearEvents AS " String query = "REGISTER STREAM getWearEvents AS "
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> " + "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "
+ "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> " + "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> "
+ "PREFIX f: <http://larkc.eu/csparql/sparql/jena/ext#> " + "PREFIX f: <http://larkc.eu/csparql/sparql/jena/ext#> "
@ -529,7 +529,7 @@ public class RentACarSimulation implements Runnable {
+ " ?driver car:hasPhoneNumber ?driverPhone . " + " ?driver car:hasPhoneNumber ?driverPhone . "
+ " } " + " } "
+ "}"; + "}";
QueryContainer queryContainer = new QueryContainer("getWearEvents", query, false); QueryContainer queryContainer = new QueryContainer("getWearEvents", query, true);
queryContainer.useObserverWindow(); queryContainer.useObserverWindow();
RentACarSimulation.setUpReasoningOnQueryContainer(queryContainer); RentACarSimulation.setUpReasoningOnQueryContainer(queryContainer);
return queryContainer; return queryContainer;