You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current sparql-execute-query always inserts query results into the current buffer. Could we have an option to return the results as a simple elisp list instead, so it can be bound to a variable, &c?
As a sketch: run the query with json result format in a temporary buffer (hopefully to handle multiline string values); apply json-parse-string to (buffer-string); transform into a simple list as return value.
The final RESULTS in the org-babel example below shows what I'd like to have directly from the query.
The current
sparql-execute-query
always inserts query results into the current buffer. Could we have an option to return the results as a simple elisp list instead, so it can be bound to a variable, &c?As a sketch: run the query with
json
result format in a temporary buffer (hopefully to handle multiline string values); applyjson-parse-string
to(buffer-string)
; transform into a simple list as return value.The final
RESULTS
in the org-babel example below shows what I'd like to have directly from the query.PS. The main point here is to get the query results as a return value, rather than always inserted into the current buffer.
The text was updated successfully, but these errors were encountered: