Description
When using corese query-remote with an inline SPARQL query via -q, the command wrongly tries to open the query string as a local file, resulting in an error.
How to reproduce
Command:
corese query-remote -q 'PREFIX ex: <http://example.org/> SELECT * WHERE { ex:Alice a ex:Person }' -e http://localhost:8080/sparql
Output:
Error: Failed to open SPARQL query file: PREFIX ex: <http:/example.org/> SELECT * WHERE { ex:Alice a ex:Person }
Expected behavior
The client should treat the -q argument as an inline SPARQL query if the provided string is not a file path, and not attempt to read it as a file.
Description
When using
corese query-remotewith an inline SPARQL query via-q, the command wrongly tries to open the query string as a local file, resulting in an error.How to reproduce
Command:
Output:
Expected behavior
The client should treat the
-qargument as an inline SPARQL query if the provided string is not a file path, and not attempt to read it as a file.