diff --git a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java index 0655251..cbb7d13 100644 --- a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java +++ b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java @@ -399,6 +399,7 @@ public class RentACarSimulation implements Runnable { + "FROM <"+RentACarSimulation.DOMAIN_KNOWLEDGE_GRAPH_IRI+"> " + "WHERE { " + " ?e rdf:type car:CarStatusEvent . " + + " ?e car:speed ?speed . " + " ?e car:relatedCar ?car . " + " ?car car:isCarModel ?carModel . " + " ?carModel car:minimumTirePressure ?minTirePressure . " @@ -406,6 +407,7 @@ public class RentACarSimulation implements Runnable { + " ?e car:tirePressure2 ?tpress2 . " + " ?e car:tirePressure3 ?tpress3 . " + " ?e car:tirePressure4 ?tpress4 . " + + " FILTER(?speed > 0) " + " FILTER(?tpress1 < ?minTirePressure || ?tpress2 < ?minTirePressure || ?tpress3 < ?minTirePressure || ?tpress4 < ?minTirePressure) " + "}"; QueryContainer queryContainer = new QueryContainer("getTireWear", query, true);