-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run SPARQL using Robot #27
Comments
Found the documentation: https://robot.obolibrary.org/query It's also important to figure out how to do it from orgmode. That issue mentions the org headers for specifying SPARQL endpoint and return format; need similar for querying a file. |
What I have working so far looks like this (moved comment here, I accidentally put it in the sparql-mode issue ;) ):
But this isn't so great, since the user needs to C-c C-c the Could we try to apply |
I've introduced a function This is used with a hook, so that after the user tangles to OMN, ROBOT automatically translates the result into Turtle. That's obviously important, so that queries can be executed on the ontology. It's in
The hook gets activated in
|
For reading the output from ROBOT into the org-mode document, I added the following. The main point is to use
The org-babel block that can be used in
|
.... but |
Update. by amending |
Commit b37ca47 adds function This works with both
|
Note that ROBOT provides various options for executing queries that aren't supported by this initial commit b37ca47. ROBOT options that may be added later: |
Tested on MacOS: it works. |
See ljos/sparql-mode#75 on how sparql-mode might be improved, so local ELOT hacks can be dropped. |
Closing, since this works OK |
From #23
@johanwk Can you give a sample Robot command? I'm familiar with ARQ but not Robot.
The text was updated successfully, but these errors were encountered: