From ca702cd79dbe5c93267e666baac9a0274b63058b Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 4 Oct 2016 15:13:10 +0200 Subject: [PATCH] [TASK] Add missing ?car to select within construct query. --- .../jpt/csparqlproject/rentacar/RentACarSimulation.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java index 16a5e72..31909b4 100644 --- a/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java +++ b/src/main/java/lu/jpt/csparqlproject/rentacar/RentACarSimulation.java @@ -211,14 +211,14 @@ public class RentACarSimulation implements Runnable { + "PREFIX xsd: " + "PREFIX car: <"+RentACarSimulation.BASE_ONTOLOGY_IRI+"> " + "CONSTRUCT { " - + " [] rdf:type car:AverageSpeedEvent . " - + " [] car:relatedCar ?car . " - + " [] car:averageSpeed ?avgSpeed . " + + " [] rdf:type car:AverageSpeedEvent " + + " ; car:relatedCar ?car " + + " ; car:averageSpeed ?avgSpeed . " + "} " + "FROM STREAM <"+RentACarSimulation.CAR_STREAM_IRI+"> [RANGE 5s STEP 1s] " + "WHERE { " + " { " - + " SELECT (AVG(?speed) AS ?avgSpeed) " + + " SELECT ?car (AVG(?speed) AS ?avgSpeed) " + " WHERE { " + " ?e rdf:type car:CarStatusEvent . " + " ?e car:relatedCar ?car . "