diff --git a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java index 07b62e0..865bc7d 100644 --- a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java +++ b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java @@ -507,7 +507,7 @@ public class RentACarSimulation implements Runnable { * Also returns the responsible driver if available */ public QueryContainer getWearEvents() { - String query = "REGISTER QUERY getWearEvents AS " + String query = "REGISTER STREAM getWearEvents AS " + "PREFIX rdf: " + "PREFIX rdfs: " + "PREFIX f: " @@ -529,7 +529,7 @@ public class RentACarSimulation implements Runnable { + " ?driver car:hasPhoneNumber ?driverPhone . " + " } " + "}"; - QueryContainer queryContainer = new QueryContainer("getWearEvents", query, false); + QueryContainer queryContainer = new QueryContainer("getWearEvents", query, true); queryContainer.useObserverWindow(); RentACarSimulation.setUpReasoningOnQueryContainer(queryContainer); return queryContainer;