Strabon

annotate examples/teleios/discovery_group.rq @ 1449:373b66ce4884

tests for bug #78
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Thu Dec 18 18:23:59 2014 +0200 (2014-12-18)
parents
children
rev   line source
ggarbis@870 1 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
ggarbis@870 2 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
ggarbis@870 3 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ggarbis@870 4 PREFIX gag:<http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
ggarbis@870 5
ggarbis@870 6 SELECT DISTINCT ?processorname ?tel_event_time ?sensor ?refinement
ggarbis@870 7 (strdf:transform(?hGeo,<http://www.opengis.net/def/crs/EPSG/0/4326>) AS ?Geo)
ggarbis@870 8 (GROUP_CONCAT(?Geo ; separator=";") AS ?pols )
ggarbis@870 9 (GROUP_CONCAT(?hconf ; separator=";") AS ?confidenceValues )
ggarbis@870 10 (GROUP_CONCAT(?muni ; separator=";") AS ?municipalities )
ggarbis@870 11 WHERE {
ggarbis@870 12 ?h noa:hasGeometry ?hGeo ;
ggarbis@870 13 noa:hasAcquisitionTime ?tel_event_time ;
ggarbis@870 14 noa:producedFromProcessingChain ?processorname ;
ggarbis@870 15 noa:isDerivedFromSensor ?sensor ;
ggarbis@870 16 noa:hasConfidence ?hconf ;
ggarbis@870 17 gag:hasMunicipality ?muni .
ggarbis@870 18 OPTIONAL {?h noa:refinedBy ?refinement1 } .
ggarbis@870 19 OPTIONAL {?h noa:isDiscarded ?disc} .
ggarbis@870 20 FILTER( !bound(?disc)).
ggarbis@870 21 FILTER( str(?processorname) = "DynamicThresholds-TimePersistence") .
ggarbis@870 22 FILTER( str(?tel_event_time) >= "2007-08-23T23:00:00" ) .
ggarbis@870 23 FILTER( str(?tel_event_time) <= "2007-08-23T23:00:00" )
ggarbis@870 24 }
ggarbis@870 25 GROUP BY ?processorname ?tel_event_time ?sensor ?refinement
ggarbis@870 26 ORDER BY ?sensor ?tel_event_time ?processorname ?refinement
ggarbis@870 27
ggarbis@870 28