We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These lines cause a spurious '\n' to be inserted in the query string:
https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/stores/sparqlstore.py#L77-L81
Example:
from rdflib.plugins.stores import sparqlstore store = sparqlstore.SPARQLStore() query = "SELECT DISTINCT * WHERE {?s ?p ?o} LIMIT 10" store.setQuery(query) print repr(store.queryString)
This prints '\nSELECT DISTINCT * WHERE {?s ?p ?o} LIMIT 10'
'\nSELECT DISTINCT * WHERE {?s ?p ?o} LIMIT 10'
The text was updated successfully, but these errors were encountered:
i guess this is more a stylistic problem than a real bug...
Sorry, something went wrong.
Sure, but I got some tests to fail because the query actually submitted to the endpoint was different because of the leading '\n'.
@nvitucci better? (you can try with pip install -U git+https://github.com/RDFLib/rdflib.git)
pip install -U git+https://github.com/RDFLib/rdflib.git
Brilliant, thanks a lot!
joernhees
Successfully merging a pull request may close this issue.
These lines cause a spurious '\n' to be inserted in the query string:
https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/stores/sparqlstore.py#L77-L81
Example:
This prints
'\nSELECT DISTINCT * WHERE {?s ?p ?o} LIMIT 10'
The text was updated successfully, but these errors were encountered: