[TASK] Add missing ?car to select within construct query.

This commit is contained in:
Jan Philipp Timme 2016-10-04 15:13:10 +02:00
parent 78958c6b48
commit ca702cd79d
1 changed files with 4 additions and 4 deletions

View File

@ -211,14 +211,14 @@ public class RentACarSimulation implements Runnable {
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> "
+ "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 . "