Last modified: 2011-07-18 13:02:37 UTC
When querying SMW using semantic search with JSON export result format, geographic coordinates break the validity of the result. The reason for this is that the "seconds" symbol (") does not get escaped, unintentionally terminating the JSON string for the coordinate. I am using: SM Version 0.7.6.1 and SMW Version 1.5.6 Example query result breaking JSON validity: <pre> { "properties": { "has_coordinates" : { "valueType": "text" } }, "items": [ { "label": "File:1306499229166.jpeg", "has_coordinates": "49° 52' 28" N, 8° 39' 35" E", "uri" : "http://mywiki/index.php?title=File:1306499229166.jpeg", "type" : "Media" } ] } </pre>
Thanks for reporting this, I fixed it in r92426 :) Now results will look like: { "label": "Berlin", "has_coordinates": {"lat":52.5234051,"lon":13.4113999} },
(In reply to comment #1) > Thanks for reporting this, I fixed it in r92426 :) > > Now results will look like: > > { > "label": "Berlin", > "has_coordinates": {"lat":52.5234051,"lon":13.4113999} > }, perfect, thanks!