Cannot process query
antru6 opened this issue · comments
The query is:
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX fs: <http://earthanalytics.eu/fs/ontology/>
SELECT ?wkt1 ?dist
WHERE {
?field fs:hasCropTypeName "MAIZE"^^<http://www.w3.org/2001/XMLSchema#string> .
?field fs:hasArea ?area .
?field geo:hasGeometry ?geo1 .
?geo1 geo:asWKT ?wkt1 .
?snowCover rdf:type fs:FoodSecurityObservation .
?snowCover fs:hasDN ?dn .
?snowCover fs:hasRECDATE "2018-03-10T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
?snowCover geo:hasGeometry ?geo2 .
?geo2 geo:asWKT ?wkt2 .
FILTER (?dn > 80) .
BIND(geof:distance(?wkt1, ?wkt2, uom:metre) as ?dist).
FILTER(geof:sfIntersects(?wkt1, "POLYGON ((14.69 48.115, 14.69 48.15, 14.78 48.15, 14.78 48.115, 14.69 48.115))"^^geo:wktLiteral))
FILTER(geof:sfIntersects(?wkt2, "POLYGON ((14.69 48.115, 14.69 48.15, 14.78 48.15, 14.78 48.115, 14.69 48.115))"^^geo:wktLiteral))
FILTER (?dist < 50000) .
}
and the endpoint is http://143.233.226.33:8087/SemaGrow/sparql
The problem is that the contents of ?dist variable are not displayed.