semiotproject / semiot-platform

SemIoT Platform
http://semiot.ru
MIT License
8 stars 1 forks source link

"sensor is undefined" on a message from WAMP #143

Closed KMax closed 8 years ago

KMax commented 8 years ago
received message:  @prefix hmtr: <http://purl.org/NET/ssnext/heatmeters#> .
@prefix meter: <http://purl.org/NET/ssnext/meters/core#> .
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix qudt: <http://qudt.org/schema/qudt#> .
@prefix qudt-quantity: <http://qudt.org/vocab/quantity#> .
@prefix : <http://localhost/systems/113496665/observations/temperature#> .

:1459327050 a ssn:Observation ;
    ssn:observedProperty qudt-quantity:ThermodynamicTemperature ;
    ssn:observedBy <http://localhost/sensors/113496665-temperature> ;
    ssn:observationResultTime "2016-03-30T08:37:30Z"^^xsd:dateTime ;
    ssn:observationResult :1459327050-result .

:1459327050-result a ssn:SensorOutput ;
    ssn:isProducedBy <http://localhost/sensors/113496665-temperature> ;
    ssn:hasValue :1459327050-resultvalue .

:1459327050-resultvalue a qudt:QuantityValue ;
    qudt:quantityValue "6.5"^^xsd:double . index.js:64113:9
received message:  @prefix hmtr: <http://purl.org/NET/ssnext/heatmeters#> .
@prefix meter: <http://purl.org/NET/ssnext/meters/core#> .
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix qudt: <http://qudt.org/schema/qudt#> .
@prefix qudt-quantity: <http://qudt.org/vocab/quantity#> .
@prefix qudt-quantity-ext: <http://w3id.org/qudt/vocab/quantity/ext#> .
@prefix : <http://localhost/systems/113496665/observations/humidity#> .

:1459327050 a ssn:Observation ;
    ssn:observedProperty qudt-quantity-ext:RelativeHumidity ;
    ssn:observedBy <http://localhost/sensors/113496665-humidity> ;
    ssn:observationResultTime "2016-03-30T08:37:30Z"^^xsd:dateTime ;
    ssn:observationResult :1459327050-result .

:1459327050-result a ssn:SensorOutput ;
    ssn:isProducedBy <http://localhost/sensors/113496665-humidity> ;
    ssn:hasValue :1459327050-resultvalue .

:1459327050-resultvalue a qudt:QuantityValue ;
    qudt:quantityValue "68.0"^^xsd:double . index.js:64113:9
Error: sensor is undefined
[375]</exports.default/$scope.isStateSensor@http://localhost/explorer/js/index.js:64098:9
[375]</exports.default/$scope.onObservationReceived/<@http://localhost/explorer/js/index.js:64129:17
processQueue@http://localhost/explorer/js/lib/angular.js:15627:28
scheduleProcessQueue/<@http://localhost/explorer/js/lib/angular.js:15643:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost/explorer/js/lib/angular.js:16895:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost/explorer/js/lib/angular.js:16711:15
$RootScopeProvider/this.$get</Scope.prototype.$evalAsync/<@http://localhost/explorer/js/lib/angular.js:16934:15
completeOutstandingRequest@http://localhost/explorer/js/lib/angular.js:5824:7
Browser/self.defer/timeoutId<@http://localhost/explorer/js/lib/angular.js:6101:7