Commit f8e0f755 authored by Giustozzi Franco's avatar Giustozzi Franco
Browse files

second update

parent bcffdca1
......@@ -239,9 +239,9 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_C_Wtemp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_C_Wtemp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_TG_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
......@@ -264,9 +264,9 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_C_Wtemp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_C_Wtemp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_TG_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
......@@ -289,9 +289,9 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_P_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_Conv_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_P_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_Conv_temp> [RANGE 20s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
......@@ -314,9 +314,9 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_P_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_Conv_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_P_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_Conv_temp> [RANGE 20s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
......@@ -339,10 +339,10 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_C_Wtemp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_Conv_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_C_Wtemp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_Conv_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_S_G_temp> [RANGE 20s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
......@@ -369,28 +369,102 @@ public class Example {
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_C_Wtemp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_TG_temp> [RANGE 20s STEPS 5s] "
+ "FROM STREAM <Stream_Conv_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_G_temp> [RANGE 15s STEPS 5s] "
+ "FROM STREAM <Stream_S_PowerOutput> [RANGE 30s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_speed> [RANGE 30s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_Pangle> [RANGE 30s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
+ " ?m sosa:hosts sosa:S_C_Wtemp . "
+ " :S_P_Wtemp sosa:madeObservation ?o1 . "
+ " ?o1 sosa:hasSimpleResult ?v1 . "
+ " ?m sosa:hosts sosa:S_TG_temp . "
+ " :S_TG_temp sosa:madeObservation ?o2 "
+ " ?o2 sosa:hasSimpleResult ?v2 . "
+ " ?m sosa:hosts sosa:S_Conv_temp . "
+ " :S_Conv_temp sosa:madeObservation ?o3 . "
+ " ?o3 sosa:hasSimpleResult ?v3 . "
+ " ?m :isPartOf ?pl . "
+ " ?m sosa:hosts sosa:S_PowerOutput . "
+ " :S_PowerOutput sosa:madeObservation ?o1 . "
+ " ?o1 sosa:hasSimpleResult ?v1 . "
+ " ?m sosa:hosts sosa:S_R_speed . "
+ " :S_R_speed sosa:madeObservation ?o2 "
+ " ?o2 sosa:hasSimpleResult ?v2 . "
+ " ?m sosa:hosts sosa:S_R_Pangle . "
+ " :S_R_Pangle sosa:madeObservation ?o3 . "
+ " ?o3 sosa:hasSimpleResult ?v3 . "
+ " FILTER ( "
+ " ?v1 > 80.0 && "
+ " ?v2 < 35.0 && "
+ " ?v3 < 45.0 ) . "
+ " ?v1 > 2000.0 && "
+ " ?v2 < 200.0 && "
+ " ?v3 < 5.0 ) . "
+ "} ";
String queryS12 = "REGISTER QUERY S12-detection AS "
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_S_PowerOutput> [RANGE 30s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_speed> [RANGE 30s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_Pangle> [RANGE 30s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
+ " ?m sosa:hosts sosa:S_PowerOutput . "
+ " :S_PowerOutput sosa:madeObservation ?o1 . "
+ " ?o1 sosa:hasSimpleResult ?v1 . "
+ " ?m sosa:hosts sosa:S_R_speed . "
+ " :S_R_speed sosa:madeObservation ?o2 "
+ " ?o2 sosa:hasSimpleResult ?v2 . "
+ " ?m sosa:hosts sosa:S_R_Pangle . "
+ " :S_R_Pangle sosa:madeObservation ?o3 . "
+ " ?o3 sosa:hasSimpleResult ?v3 . "
+ " FILTER ( "
+ " ?v1 > 2000.0 && "
+ " ?v2 < 100.0 && "
+ " ?v3 < 5.0 ) . "
+ "} ";
String queryS13 = "REGISTER QUERY S13-detection AS "
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_S_PowerOutput> [RANGE 35s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_speed> [RANGE 35s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_Pangle> [RANGE 35s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
+ " ?m sosa:hosts sosa:S_PowerOutput . "
+ " :S_PowerOutput sosa:madeObservation ?o1 . "
+ " ?o1 sosa:hasSimpleResult ?v1 . "
+ " ?m sosa:hosts sosa:S_R_speed . "
+ " :S_R_speed sosa:madeObservation ?o2 "
+ " ?o2 sosa:hasSimpleResult ?v2 . "
+ " ?m sosa:hosts sosa:S_R_Pangle . "
+ " :S_R_Pangle sosa:madeObservation ?o3 . "
+ " ?o3 sosa:hasSimpleResult ?v3 . "
+ " FILTER ( "
+ " ?v1 < 500.0 && "
+ " ?v2 < 200.0 && "
+ " ?v3 < 5.0 ) . "
+ "} ";
String queryS14 = "REGISTER QUERY S14-detection AS "
+ "PREFIX : <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "PREFIX sosa: <http://www.w3.org/ns/sosa/> "
+ "SELECT ?m ?pl "
+ "FROM STREAM <Stream_S_PowerOutput> [RANGE 35s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_speed> [RANGE 35s STEPS 5s] "
+ "FROM STREAM <Stream_S_R_Pangle> [RANGE 35s STEPS 5s] "
+ "FROM <http://semanticweb.org/STEaMINg/ContextOntology-COInd4#> "
+ "WHERE { "
+ " ?m :isPartOf ?pl . "
+ " ?m sosa:hosts sosa:S_PowerOutput . "
+ " :S_PowerOutput sosa:madeObservation ?o1 . "
+ " ?o1 sosa:hasSimpleResult ?v1 . "
+ " ?m sosa:hosts sosa:S_R_speed . "
+ " :S_R_speed sosa:madeObservation ?o2 "
+ " ?o2 sosa:hasSimpleResult ?v2 . "
+ " ?m sosa:hosts sosa:S_R_Pangle . "
+ " :S_R_Pangle sosa:madeObservation ?o3 . "
+ " ?o3 sosa:hasSimpleResult ?v3 . "
+ " FILTER ( "
+ " ?v1 < 200.0 && "
+ " ?v2 < 200.0 && "
+ " ?v3 < 5.0 ) . "
+ "} ";
//+ "CONSTRUCT { [] a :situationCODE1234 ; :hasObservation ?o1 ; :hasObservation ?o2 . } "
//+ "f:timestamp(:sensorTM1,:madeObservation,?o1) < f:timestamp(?s1,:madeObservation,?o2)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment