-
Notifications
You must be signed in to change notification settings - Fork 124
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
Fixing issue 190 #218
base: master
Are you sure you want to change the base?
Fixing issue 190 #218
Conversation
SPARQLWrapper/Wrapper.py
Outdated
_validate_format("JSON", [JSON], ct, self.requestedFormat) | ||
return self._convertJSON() | ||
elif _content_type_in_list(ct, _RDF_XML): | ||
#Ananya: This has to be altered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these would cause an error some asserts in the test file.
Altering those too.
elif self.returnFormat == RDF: | ||
raise ValueError("A SPARQL SELECT query doesn't return RDF, so RDF here is not a valid selection for a return type. Return types of JSON & XML are valid.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Windows CR+LF line endings is causing the problem. @ananya2711 see https://fedingo.com/how-to-configure-line-endings-in-git-commit/ |
b38f20e
to
8ffef6e
Compare
Please remove the spurious file |
Added ValueError for invalid select query with RDF return format.
Issue 190