[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 xsd: <http://www.w3.org/2001/XMLSchema#> "
|
||||||
+ "PREFIX car: <"+RentACarSimulation.BASE_ONTOLOGY_IRI+"> "
|
+ "PREFIX car: <"+RentACarSimulation.BASE_ONTOLOGY_IRI+"> "
|
||||||
+ "CONSTRUCT { "
|
+ "CONSTRUCT { "
|
||||||
+ " [] rdf:type car:AverageSpeedEvent . "
|
+ " [] rdf:type car:AverageSpeedEvent "
|
||||||
+ " [] car:relatedCar ?car . "
|
+ " ; car:relatedCar ?car "
|
||||||
+ " [] car:averageSpeed ?avgSpeed . "
|
+ " ; car:averageSpeed ?avgSpeed . "
|
||||||
+ "} "
|
+ "} "
|
||||||
+ "FROM STREAM <"+RentACarSimulation.CAR_STREAM_IRI+"> [RANGE 5s STEP 1s] "
|
+ "FROM STREAM <"+RentACarSimulation.CAR_STREAM_IRI+"> [RANGE 5s STEP 1s] "
|
||||||
+ "WHERE { "
|
+ "WHERE { "
|
||||||
+ " { "
|
+ " { "
|
||||||
+ " SELECT (AVG(?speed) AS ?avgSpeed) "
|
+ " SELECT ?car (AVG(?speed) AS ?avgSpeed) "
|
||||||
+ " WHERE { "
|
+ " WHERE { "
|
||||||
+ " ?e rdf:type car:CarStatusEvent . "
|
+ " ?e rdf:type car:CarStatusEvent . "
|
||||||
+ " ?e car:relatedCar ?car . "
|
+ " ?e car:relatedCar ?car . "
|
||||||
|
|
Loading…
Reference in New Issue