I have the following SPARQL query:
PREFIX ssn: <http://purl.oclc.org/NET/ssnx/ssn#> PREFIX dtp: <http://dtp-126.sncs.abdn.ac.uk#> PREFIX dbp: <http://dbpedia.org/resource/> SELECT ?value ?time WHERE { dtp:CD7514 ssn:madeObservation ?observation . ?observation ssn:observedProperty ?property . ?property ssn:hasValue <http://dbpedia.org/resource/Temperature> . ?observation ssn:observationResult ?observationValue . ?observationValue ssn:hasValue ?value . ?observationValue ssn:observationSamplingTime ?time FILTER(?time > 1291908000) }
Which, in a nutshell, selects all observations of the temperature sensor from the dtp sensor: CD7514 and filters values smaller than the specified time stamp.
However, adding a filter constraint returns 0 results (when there are observations corresponding to this time region!)
Is it possible that? time is a varchar / text / String data type, and therefore the comparison cannot be performed? If so, is it possible to do the conversion in SPARQL?
Bailz source share