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

CLI - better error message when nor file or valid query provided #410

Closed
enridaga opened this issue Oct 23, 2023 · 0 comments
Closed

CLI - better error message when nor file or valid query provided #410

enridaga opened this issue Oct 23, 2023 · 0 comments
Labels
Improvement Doing the same thing but better
Milestone

Comments

@enridaga
Copy link
Member

Currently, if someone mistypes a file location for parameter -q, the CLI attempts to execute the file path as a SPARQL query and fails with a syntax error message, which can be confusing. We should first check whether the param is a valid URL or a valid SPARQL query and send a coherent message if none of those checks pass.

See also discussion at SPARQL-Anything/PySPARQL-Anything#9

@enridaga enridaga added the Improvement Doing the same thing but better label Oct 23, 2023
@enridaga enridaga added this to the v0.9.0 milestone Oct 23, 2023
enridaga added a commit that referenced this issue Nov 20, 2023
enridaga added a commit that referenced this issue Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Doing the same thing but better
Projects
None yet
Development

No branches or pull requests

1 participant