Strabon

annotate examples/teleios/discovery_group.rq @ 1426:014379fdddf2

fixed the tests of geof:distance and geof:buffer, that had wrong results due to the
conversion of the resulting geometry to the srid 3857.
The results are validated using PostGIS, where in the case of buffer there are
small differences in the precision.
Moreover, in the case of BufferMetresTest, there was no point in having as distance
1m, because the geometry did not change, so i added 55000 metres instead (about 0.5 degrees).
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Wed Sep 24 17:43:53 2014 +0300 (2014-09-24)
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