ljos / sparql-mode

A SPARQL mode for emacs
GNU General Public License v3.0
59 stars 23 forks source link

Evaluation of SPARQL in Org is disabled #55

Closed wouterbeek closed 7 years ago

wouterbeek commented 7 years ago

When I press C-c C-c on a SPARQL code block inside Org mode, I get the following message: "Evaluation of this SPARQL code block is disabled."

This is how I markup the query in Org:

#+BEGIN_SRC sparql :url http://localhost:3020/sparql :format test/csv
select * { ?s ?p ?o } limit 1
#+END_SRC

The same query does work when M-x sparql-query-region is performed in a SPARQL buffer.

emacs-version is 26.0.50; org-version is 9.0.5.

ljos commented 7 years ago

You have written test/csv instead text/csv and I had made a mistake handling error responses. I fixed the error and now you should get better error messages when the server gives an error response.

Thank you for taking the time to send an error report. It is appreciated.

wouterbeek commented 7 years ago

@ljos Thanks for the quick response! I've fixed my typo, but am still receiving the same message.

ljos commented 7 years ago

I looked up the error; seems to be a change in org mode 9. Try to recompile the byte code for org mode and ob-sparql. You might also need to add sparql to the org-babel-do-load-languages.

On Sun, 12 Mar 2017 at 23:19, Wouter Beek notifications@github.com wrote:

@ljos https://github.com/ljos Thanks for the quick response! I've fixed my typo, but am still receiving the same message.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ljos/sparql-mode/issues/55#issuecomment-285981648, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjt1lQcifaXLwg6qp5vOwButf1PLSGGks5rlG9hgaJpZM4MafT1 .