| Jheald added a comment. |
As an aside (which should maybe be in a separate ticket) what I really wanted to do was to plot the values on a map.
But there seems to be no way to cast variables to a geo:wktLiteral.
I tried the following (full query in query editor):
BIND(CONCAT("Point(",str(?int_lon)," ",str(?int_lat),")") AS ?string) .
BIND(geo:wktLiteral(?string) AS ?int_coords)The string itself, although it looks right in the table display, is not recognised as a pair of plottable co-ordinates.
I hoped there might be a cast function geo:wktLiteral() by analogy with eg xsd:dateTime(), but back comes the error
"Unknown error: unknown function: http://www.opengis.net/ont/geosparql#wktLiteral"I also tried appending ^^geo:wktLiteral in various places, eg BIND(?string^^geo:wktLiteral) AS ... but this just returns a syntax error.
Any ideas as to whether I can do this cast just with the sort of string operations available in SPARQL ?
TASK DETAIL
EMAIL PREFERENCES
To: Jheald
Cc: Aklapper, Jheald, EBjune, merbst, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
Cc: Aklapper, Jheald, EBjune, merbst, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
