GitHub user adel-ayara edited a discussion: GeoSPARQL query internal error
Give the following RDF data snippet: ``` lbm:dp_2343139521664647169 a lbm:DrivePath; lbm:featIdInt "2343139521664647169"^^xsd:long; geo:hasGeometry [ geo:asWKT "LINESTRING(11.542548705 48.162593991, 11.542659095 48.162528193, 11.542749703 48.162474632, 11.542810723 48.162439261, 11.542872414 48.16240456, 11.542882724 48.162398776, 11.542945337 48.162364746, 11.54309269 48.162286459, 11.543155471 48.162252596, 11.543207355 48.162224013, 11.543258904 48.16219518, 11.543299891 48.162171878)"^^geo:wktLiteral ] ; ``` I am trying to apply the following GeoSPARQL query using Jena: ``` PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX spatial: <http://jena.apache.org/spatial#> PREFIX lbm: <http://aa-service/behaviorMap#> SELECT ?dp ?wkt WHERE { ?dp a lbm:DrivePath ; geo:hasGeometry ?geom . ?geom geo:asWKT ?geowkt . ?geowkt spatial:withinBox(11.54616880452042 48.1382084235794 11.559631195479579 48.147191576420596) . } ``` But I am getting the following error: ``` Internal error: Not a URI, Blank or variable: "LINESTRING(11.538205789 48.143360792, 11.53825935 48.143357774, 11.538326321 48.143354589, 11.538339732 48.143353751, 11.538353059 48.143352577, 11.538392957 48.143348722)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> org.apache.jena.sparql.expr.ExprEvalException: Not a URI, Blank or variable: "LINESTRING(11.538205789 48.143360792, 11.53825935 48.143357774, 11.538326321 48.143354589, 11.538339732 48.143353751, 11.538353059 48.143352577, 11.538392957 48.143348722)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> ``` Does anyone know what is wrong with my query? GitHub link: https://github.com/apache/jena/discussions/3275 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
