Advertisement
jbjares

RequestDefinitionExportedApp

May 26th, 2016
2,823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 23.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?><ns2:OSDSpec xmlns:ns2="http://www.openiot.eu/osdspec" xmlns:ns3="http://www.w3.org/2007/SPARQL/protocol-types#" userID="http://lsm.deri.ie/resource/user/jbjares">
  2.     <ns2:OAMO name="apptest">
  3.         <ns2:description><![CDATA[go!]]></ns2:description>
  4.         <ns2:graphMeta><![CDATA[{"uid":"graph_78251717301128","positions":{"graphNode_78557209248927":{"y":474.1666551953125,"x":539.1166674023438},"graphNode_78551104779296":{"y":398.1666551953125,"x":676.1166674023438},"graphNode_78424517799071":{"y":195.63333,"x":386.46664298828125},"graphNode_78600154642601":{"y":85.03332389648438,"x":800.2333055859375},"graphNode_78277309124883":{"y":50.616668701171875,"x":119},"graphNode_78286435706436":{"y":476.18331779296875,"x":17.233336103515626},"graphNode_78293441837115":{"y":498.58334220703125,"x":288.2333361035156}},"nodes":[{"uid":"graphNode_78277309124883","propertyValues":{"LAT":53.26871905960906,"LON":-9.058075905195437,"RADIUS":15},"propertyDefinitions":[{"isVariable":FALSE,"isRequired":TRUE,"name":"LAT","javaClass":"java.lang.Number","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"LON","javaClass":"java.lang.Number","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"RADIUS","javaClass":"java.lang.Number","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"}],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.sources.GenericSource","label":"http://openiot.eu/ontology/ns/Netatmo","endpointDefinitions":[{"connectorType":"Dot","uid":"graphNodeEndpoint_78277309249812","maxConnections":1,"isVisible":TRUE,"scope":"Sensor","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"SEL_FILTER_IN","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309285910","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"temperature (C)","userData":"temperature","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309291218","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"humidity (%)","userData":"humidity","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309295111","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"noise (db)","userData":"noise","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309299004","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"co2 (ppm)","userData":"co2","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309309621","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"pressure (mbar)","userData":"pressure","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309313514","maxConnections":-1,"isVisible":TRUE,"scope":"geo_lat","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"LAT","userData":"geo:lat","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78277309317053","maxConnections":-1,"isVisible":TRUE,"scope":"geo_lon","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"LON","userData":"geo:lon","type":"Output","anchor":"Right"}],"type":"SOURCE"},{"uid":"graphNode_78286435706436","propertyValues":{},"propertyDefinitions":[],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.filters.SelectionFilter","label":"SelectionFilter","endpointDefinitions":[{"connectorType":"Dot","uid":"graphNodeEndpoint_78286435745719","maxConnections":1,"isVisible":TRUE,"scope":"Sensor","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"NODE","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78362773492236","maxConnections":-1,"isVisible":TRUE,"scope":"cmp_sensor_Date","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"recordTime","type":"Output","anchor":"Right"}],"type":"FILTER"},{"uid":"graphNode_78293441837115","propertyValues":{"CMP_VALUE1":1459523580000,"CMP_VALUE2":1462029180000},"propertyDefinitions":[{"isVariable":FALSE,"isRequired":TRUE,"name":"CMP_VALUE1","javaClass":"java.util.Date","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"CMP_VALUE2","javaClass":"java.util.Date","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"}],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.comparators.BetweenDateTime","label":"04/01/2016 16:13<br/> &lt;= IN &lt;= <br/>04/30/2016 16:13","endpointDefinitions":[{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78293441943994","maxConnections":1,"isVisible":TRUE,"scope":"cmp_sensor_Date","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"IN","type":"Input","anchor":"Left"}],"type":"COMPARATOR"},{"uid":"graphNode_78424517799071","propertyValues":{"GROUPS":["recordTime_year","recordTime_month","recordTime_day"]},"propertyDefinitions":[{"isVariable":FALSE,"isRequired":TRUE,"name":"GROUPS","javaClass":"java.util.ArrayList","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"}],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.filters.Group","label":"Group","endpointDefinitions":[{"connectorType":"Dot","uid":"graphNodeEndpoint_78507028424507","maxConnections":-1,"isVisible":TRUE,"scope":"grp_Date","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"grp_recordTime_day","type":"Output","anchor":"Right"},{"connectorType":"Dot","uid":"graphNodeEndpoint_78507028420261","maxConnections":-1,"isVisible":TRUE,"scope":"grp_Date","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"grp_recordTime_month","type":"Output","anchor":"Right"},{"connectorType":"Dot","uid":"graphNodeEndpoint_78507028398318","maxConnections":-1,"isVisible":TRUE,"scope":"grp_Date","isRequired":FALSE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"grp_recordTime_year","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78424517864897","maxConnections":-1,"isVisible":TRUE,"scope":"sensor_Number sensor_Integer sensor_Long sensor_Double sensor_Float","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"ATTRIBUTES","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78436185456314","maxConnections":0,"isVisible":TRUE,"scope":"grp_Number","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"grp_temperature (C)","type":"Output","anchor":"Right"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78439946197036","maxConnections":0,"isVisible":TRUE,"scope":"grp_Number","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"grp_humidity (%)","type":"Output","anchor":"Right"}],"type":"FILTER"},{"uid":"graphNode_78551104779296","propertyValues":{},"propertyDefinitions":[],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.aggegators.Average","label":"Average","endpointDefinitions":[{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78551104812917","maxConnections":1,"isVisible":TRUE,"scope":"Number Integer Long Double Float sensor_Number sensor_Integer sensor_Long sensor_Double sensor_Float grp_Number grp_Integer grp_Long grp_Double grp_Float","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"IN","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78551104815748","maxConnections":1,"isVisible":TRUE,"scope":"agr_Number","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"OUT","type":"Output","anchor":"Right"}],"type":"AGGREGATOR"},{"uid":"graphNode_78557209248927","propertyValues":{},"propertyDefinitions":[],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.aggegators.Average","label":"Average","endpointDefinitions":[{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78557209299889","maxConnections":1,"isVisible":TRUE,"scope":"Number Integer Long Double Float sensor_Number sensor_Integer sensor_Long sensor_Double sensor_Float grp_Number grp_Integer grp_Long grp_Double grp_Float","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"IN","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78557209304844","maxConnections":1,"isVisible":TRUE,"scope":"agr_Number","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"OUT","type":"Output","anchor":"Right"}],"type":"AGGREGATOR"},{"uid":"graphNode_78600154642601","propertyValues":{"Y_AXIS_LABEL":"Temp and Hum","X_AXIS_LABEL":"Time","SERIES_1_LABEL":"Humidity","SERIES_0_LABEL":"Temperature","SERIES":"2","X_AXIS_TYPE":"Date (observation)","TITLE":"LineChart"},"propertyDefinitions":[{"isVariable":FALSE,"isRequired":TRUE,"name":"TITLE","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"SERIES","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","allowedValues":["1","2","3","4","5"],"type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"X_AXIS_TYPE","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","allowedValues":["Number","Date (result set)","Date (observation)"],"type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"X_AXIS_LABEL","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"Y_AXIS_LABEL","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"SERIES_0_LABEL","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"},{"isVariable":FALSE,"isRequired":TRUE,"name":"SERIES_1_LABEL","javaClass":"java.lang.String","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeProperty","type":"Writable"}],"class":"org.openiot.ui.request.definition.web.model.nodes.impl.sinks.LineChart","label":"LineChart","endpointDefinitions":[{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78600154726476","maxConnections":-1,"isVisible":TRUE,"scope":"grp_Date","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"x1","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78600154729661","maxConnections":0,"isVisible":TRUE,"scope":"agr_Number agr_Integer agr_Long, agr_Float agr_Double","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"y1","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78606955922671","maxConnections":-1,"isVisible":TRUE,"scope":"grp_Date","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"x2","type":"Input","anchor":"Left"},{"connectorType":"Rectangle","uid":"graphNodeEndpoint_78606955795620","maxConnections":0,"isVisible":TRUE,"scope":"agr_Number agr_Integer agr_Long, agr_Float agr_Double","isRequired":TRUE,"class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeEndpoint","label":"y2","type":"Input","anchor":"Left"}],"type":"SINK"}],"class":"org.openiot.ui.request.commons.models.DefaultGraphModel","connections":[{"srcNode":"graphNode_78286435706436","uid":"graphNodeConnection_1464275771801","srcEndpoint":"graphNodeEndpoint_78286435745719","dstEndpoint":"graphNodeEndpoint_78277309249812","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78277309124883"},{"srcNode":"graphNode_78286435706436","uid":"graphNodeConnection_1464275776763","srcEndpoint":"graphNodeEndpoint_78362773492236","dstEndpoint":"graphNodeEndpoint_78293441943994","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78293441837115"},{"srcNode":"graphNode_78277309124883","uid":"graphNodeConnection_1464275845209","srcEndpoint":"graphNodeEndpoint_78277309285910","dstEndpoint":"graphNodeEndpoint_78424517864897","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78424517799071"},{"srcNode":"graphNode_78277309124883","uid":"graphNodeConnection_1464275848993","srcEndpoint":"graphNodeEndpoint_78277309291218","dstEndpoint":"graphNodeEndpoint_78424517864897","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78424517799071"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464275973581","srcEndpoint":"graphNodeEndpoint_78436185456314","dstEndpoint":"graphNodeEndpoint_78551104812917","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78551104779296"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464275977231","srcEndpoint":"graphNodeEndpoint_78439946197036","dstEndpoint":"graphNodeEndpoint_78557209299889","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78557209248927"},{"srcNode":"graphNode_78551104779296","uid":"graphNodeConnection_1464276071617","srcEndpoint":"graphNodeEndpoint_78551104815748","dstEndpoint":"graphNodeEndpoint_78600154729661","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78557209248927","uid":"graphNodeConnection_1464276105178","srcEndpoint":"graphNodeEndpoint_78557209304844","dstEndpoint":"graphNodeEndpoint_78606955795620","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464276118923","srcEndpoint":"graphNodeEndpoint_78507028424507","dstEndpoint":"graphNodeEndpoint_78600154726476","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464276123411","srcEndpoint":"graphNodeEndpoint_78507028420261","dstEndpoint":"graphNodeEndpoint_78600154726476","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464276130452","srcEndpoint":"graphNodeEndpoint_78507028398318","dstEndpoint":"graphNodeEndpoint_78600154726476","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464276134493","srcEndpoint":"graphNodeEndpoint_78507028424507","dstEndpoint":"graphNodeEndpoint_78606955922671","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"},{"srcNode":"graphNode_78424517799071","uid":"graphNodeConnection_1464276138186","srcEndpoint":"graphNodeEndpoint_78507028420261","dstEndpoint":"graphNodeEndpoint_78606955922671","class":"org.openiot.ui.request.commons.nodes.base.DefaultGraphNodeConnection","dstNode":"graphNode_78600154642601"}]}]]></ns2:graphMeta>
  5.         <ns2:OSMO>
  6.             <ns2:queryControls>
  7.                 <ns2:QuerySchedule/>
  8.                 <ns2:reportIfEmpty>FALSE</ns2:reportIfEmpty>
  9.             </ns2:queryControls>
  10.             <ns2:requestPresentation>
  11.                 <ns2:widget widgetID="node://widget_graphNode_78600154642601">
  12.                     <ns2:presentationAttr name="Y_AXIS_LABEL" value="Temp and Hum"/>
  13.                     <ns2:presentationAttr name="SERIES_1_LABEL" value="Humidity"/>
  14.                     <ns2:presentationAttr name="X_AXIS_LABEL" value="Time"/>
  15.                     <ns2:presentationAttr name="SERIES_0_LABEL" value="Temperature"/>
  16.                     <ns2:presentationAttr name="X_AXIS_TYPE" value="Date (observation)"/>
  17.                     <ns2:presentationAttr name="SERIES" value="2"/>
  18.                     <ns2:presentationAttr name="TITLE" value="LineChart"/>
  19.                     <ns2:presentationAttr name="widgetClass" value="org.openiot.ui.request.definition.web.model.nodes.impl.sinks.LineChart"/>
  20.                 </ns2:widget>
  21.             </ns2:requestPresentation>
  22.             <ns3:query-request>
  23.                 <query><![CDATA[  # [1 / 2] visualization type: 'LineChart' and sensors of type:
  24.   #      - http://openiot.eu/ontology/ns/Netatmo
  25.   # Generated: Thu May 26 16:23:45 BST 2016
  26.   SELECT DISTINCT  ?y1 ?x1_day ?x1_month ?x1_year
  27.   FROM <http://lsm.deri.ie/OpenIoT/guest_demo/sensordata#>
  28.   WHERE
  29.   {
  30.     {
  31.       SELECT DISTINCT AVG(?graphNodeEndpoint_78277309285910) AS ?y1 AVG( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) ) AS ?x1_day AVG( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) ) AS ?x1_month AVG( fn:year-from-dateTime(?graphNode_78277309124883_recordTime) ) AS ?x1_year
  32.       WHERE
  33.       {
  34.         ?graphNode_78277309124883_record <http://openiot.eu/ontology/ns/value> ?graphNodeEndpoint_78277309285910 .
  35.         ?graphNode_78277309124883_record <http://www.w3.org/2000/01/rdf-schema#label> 'temperature' .
  36.         ?graphNode_78277309124883_record <http://purl.oclc.org/NET/ssnx/ssn#observationResultTime> ?graphNode_78277309124883_recordTime .
  37.         ?graphNode_78277309124883_record <http://openiot.eu/ontology/ns/isObservedValueOf> ?graphNode_78277309124883_sensor .
  38.         ?graphNode_78277309124883_sensor <http://purl.oclc.org/NET/ssnx/ssn#observedBy> ?graphNode_78277309124883_sensorId .
  39.         {
  40.           SELECT ?graphNode_78277309124883_sensorId
  41.           FROM <http://lsm.deri.ie/OpenIoT/guest_demo/sensormeta#>
  42.           WHERE
  43.           {
  44.             ?graphNode_78277309124883_sensorId <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://openiot.eu/ontology/ns/Netatmo> .
  45.             <http://openiot.eu/ontology/ns/Netatmo> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://purl.oclc.org/NET/ssnx/ssn#Sensor> .
  46.             ?graphNode_78277309124883_sensorId <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> ?graphNode_78277309124883_loc .
  47.             ?graphNode_78277309124883_loc geo:geometry ?graphNode_78277309124883_geo .
  48.             ?graphNode_78277309124883_loc geo:lat ?graphNode_78277309124883_lat .
  49.             ?graphNode_78277309124883_loc geo:long ?graphNode_78277309124883_lon .
  50.             FILTER (<bif:st_intersects>(?graphNode_78277309124883_geo, <bif:st_point>( -9.058075905195437, 53.26871905960906), 15.0)) .
  51.           }
  52.         }
  53.         FILTER (?graphNode_78277309124883_recordTime >= "2016-04-01T16:13:00.000+01:00"^^xsd:date AND ?graphNode_78277309124883_recordTime <= "2016-04-30T16:13:00.000+01:00"^^xsd:date ).
  54.       }
  55.       GROUP BY         ( fn:year-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) )
  56.       ORDER BY         ( fn:year-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) )
  57.     }
  58.   }
  59. ]]></query>
  60.             </ns3:query-request>
  61.             <ns3:query-request>
  62.                 <query><![CDATA[  # [2 / 2] visualization type: 'LineChart' and sensors of type:
  63.   #      - http://openiot.eu/ontology/ns/Netatmo
  64.   # Generated: Thu May 26 16:23:45 BST 2016
  65.   SELECT DISTINCT  ?y2 ?x2_day ?x2_month
  66.   FROM <http://lsm.deri.ie/OpenIoT/guest_demo/sensordata#>
  67.   WHERE
  68.   {
  69.     {
  70.       SELECT DISTINCT AVG(?graphNodeEndpoint_78277309291218) AS ?y2 AVG( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) ) AS ?x2_day AVG( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) ) AS ?x2_month
  71.       WHERE
  72.       {
  73.         ?graphNode_78277309124883_record <http://openiot.eu/ontology/ns/value> ?graphNodeEndpoint_78277309291218 .
  74.         ?graphNode_78277309124883_record <http://www.w3.org/2000/01/rdf-schema#label> 'humidity' .
  75.         ?graphNode_78277309124883_record <http://purl.oclc.org/NET/ssnx/ssn#observationResultTime> ?graphNode_78277309124883_recordTime .
  76.         ?graphNode_78277309124883_record <http://openiot.eu/ontology/ns/isObservedValueOf> ?graphNode_78277309124883_sensor .
  77.         ?graphNode_78277309124883_sensor <http://purl.oclc.org/NET/ssnx/ssn#observedBy> ?graphNode_78277309124883_sensorId .
  78.         {
  79.           SELECT ?graphNode_78277309124883_sensorId
  80.           FROM <http://lsm.deri.ie/OpenIoT/guest_demo/sensormeta#>
  81.           WHERE
  82.           {
  83.             ?graphNode_78277309124883_sensorId <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://openiot.eu/ontology/ns/Netatmo> .
  84.             <http://openiot.eu/ontology/ns/Netatmo> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://purl.oclc.org/NET/ssnx/ssn#Sensor> .
  85.             ?graphNode_78277309124883_sensorId <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> ?graphNode_78277309124883_loc .
  86.             ?graphNode_78277309124883_loc geo:geometry ?graphNode_78277309124883_geo .
  87.             ?graphNode_78277309124883_loc geo:lat ?graphNode_78277309124883_lat .
  88.             ?graphNode_78277309124883_loc geo:long ?graphNode_78277309124883_lon .
  89.             FILTER (<bif:st_intersects>(?graphNode_78277309124883_geo, <bif:st_point>( -9.058075905195437, 53.26871905960906), 15.0)) .
  90.           }
  91.         }
  92.         FILTER (?graphNode_78277309124883_recordTime >= "2016-04-01T16:13:00.000+01:00"^^xsd:date AND ?graphNode_78277309124883_recordTime <= "2016-04-30T16:13:00.000+01:00"^^xsd:date ).
  93.       }
  94.       GROUP BY         ( fn:year-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) )
  95.       ORDER BY         ( fn:year-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:month-from-dateTime(?graphNode_78277309124883_recordTime) )         ( fn:day-from-dateTime(?graphNode_78277309124883_recordTime) )
  96.     }
  97.   }
  98. ]]></query>
  99.             </ns3:query-request>
  100.         </ns2:OSMO>
  101.     </ns2:OAMO>
  102. </ns2:OSDSpec>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement