[TASK] Try the timestamp-function once again.
This commit is contained in:
parent
4525996e84
commit
e6b9f2c7c2
|
@ -2,7 +2,7 @@
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.settings
|
.settings
|
||||||
|
/bin
|
||||||
|
|
||||||
# Maven products
|
# Maven products
|
||||||
/bin
|
|
||||||
/target
|
/target
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class Main {
|
||||||
+ "PREFIX f: <http://larkc.eu/csparql/sparql/jena/ext#> "
|
+ "PREFIX f: <http://larkc.eu/csparql/sparql/jena/ext#> "
|
||||||
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> "
|
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> "
|
||||||
+ "PREFIX cars: <http://myexample.org/cars#> "
|
+ "PREFIX cars: <http://myexample.org/cars#> "
|
||||||
+ "SELECT ?car ?temp1 ?temp2 "
|
+ "SELECT ?car ?temp1 ?temp2 ( f:timestamp(?car,cars:currentTemperature,?temp1) AS ?ts1) "
|
||||||
+ "FROM STREAM <http://myexample.org/cars> [RANGE 5s STEP 1s] "
|
+ "FROM STREAM <http://myexample.org/cars> [RANGE 5s STEP 1s] "
|
||||||
+ "WHERE { "
|
+ "WHERE { "
|
||||||
+ " ?car cars:currentTemperature ?temp1 . "
|
+ " ?car cars:currentTemperature ?temp1 . "
|
||||||
|
|
Loading…
Reference in New Issue