Skip to content
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

Invoke sparql from live code block #6

Open
dvargas92495 opened this issue Feb 5, 2023 · 6 comments
Open

Invoke sparql from live code block #6

dvargas92495 opened this issue Feb 5, 2023 · 6 comments

Comments

@dvargas92495
Copy link
Collaborator

No description provided.

@kvistgaard
Copy link

See a full description here

@mdroidian
Copy link
Collaborator

Ah, so would you want something like a button on the Sparql code block? And the results to be outputted as children of the code block?

image

@kvistgaard
Copy link

kvistgaard commented Oct 22, 2023 via email

@mdroidian
Copy link
Collaborator

mdroidian commented Oct 23, 2023

Alright. So I added a new command Run SPARQL Query: Custom

This will load to the Custom Query page initially and grab the last edited sparql code block from the current page.

What left would then be:

  • define endpoint / output format
  • import endpoint / output format with command
  • support block refs
  • possibly add a command that does all of the above and just runs the query (skip the dialog preview)

EDIT: added tasks

  • run the command when the cursor is on the query block or its parent?
  • add shortcut to block menu to run the query

Hopefully this will be helpful in the interim.

https://www.loom.com/share/5ad18cdec7164697893e3c698acf4131

@kvistgaard
Copy link

Wouldn't it be easier to run the command when the cursor is on the query block or its parent?

In addition, it would be nice to be able to start it from the block menu as is the case with some other extensions.

image

BTW, what do you mean by

import endpoint / output format with command

@mdroidian
Copy link
Collaborator

mdroidian commented Oct 28, 2023

Wouldn't it be easier to run the command when the cursor is on the query block or its parent?

Depends on the use case, I guess. I believe currently it imports at the cursor position, so if one wanted to import at a different block than the sparql code block, that functionality would be lost. But I'd be happy to add this feature to the list.

In addition, it would be nice to be able to start it from the block menu as is the case with some other extensions.

This can be added to the list as well.

import endpoint / output format with command

This was referring to grabbing the endpoint from a comment in the sparql query block and updating the endpoint in the dialog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants