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

Showing SPARQL query in UI #459

Open
HaritzPuerto opened this issue Feb 28, 2023 · 2 comments
Open

Showing SPARQL query in UI #459

HaritzPuerto opened this issue Feb 28, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@HaritzPuerto
Copy link
Collaborator

Hi,

I can print the sparql from https://github.com/UKP-SQuARE/square-core/tree/master/skills/kgqa-kqapro in the UI if it's always returned. To do this, we would need to update the API schema though... and it's getting a bit bulky

Is showing the sparql actually useful? I would indeed help for explainability though

afaik, right now sparql is not only shown for syntax errors in the sparql

@HaritzPuerto HaritzPuerto added the question Further information is requested label Feb 28, 2023
@HaishuoFang
Copy link
Contributor

HaishuoFang commented Mar 1, 2023

Currently, SPARQL will only be shown when it cant get the answer from back-end KG. This could be caused by two reasons:

  1. syntax error. 2. No answer in the KG. I do a if-else condition in the skill-api to write answer/sparql into the skill output

I agree showing SPARQL would be helpful for explainability. Do we need to change the prediction constructor to make it work?

@HaritzPuerto
Copy link
Collaborator Author

yes, I think we would need to change the prediction construction, but @timbmg may give a better answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants