[TASK] Add missing ?car to select within construct query.
This commit is contained in:
parent
78958c6b48
commit
ca702cd79d
@ -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 . "
|
||||
|
Loading…
Reference in New Issue
Block a user