All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.sensor.resource.rq Maven / Gradle / Ivy

#
# Retreive geo:Point, order by decreasing value of aqio:AirQualityIndexProperty,
# apply transformation on each geo:Point URI (processed by template point.rq)
#
prefix o:    
prefix sosa:  
prefix geo:  
prefix aqio:  .

template st:resource {

   st:apply-templates(?uri, st:number())
    
}
where {
    select distinct ?uri where {
        filter xt:print('resource')
        bind (st:focus() as ?uri)
        ?uri a geo:Point .
        ?mesure sosa:hasFeatureOfInterest ?uri ;
            sosa:observedProperty ?p .
        ?p a aqio:AirQualityIndexProperty .        
        ?mesure sosa:hasSimpleResult ?value 
        
        # filter (us:value(?value) <= 30)
    }
    order by desc(us:value(?value))
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy