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

SPARQL result in XML may not be strictly valid? #493

Closed
pchampin opened this issue Jul 6, 2015 · 3 comments
Closed

SPARQL result in XML may not be strictly valid? #493

pchampin opened this issue Jul 6, 2015 · 3 comments
Labels
enhancement New feature or request SPARQL
Milestone

Comments

@pchampin
Copy link
Contributor

pchampin commented Jul 6, 2015

The XML serializer for SPARQL results produces a result that looks valid to me, but is not recognized by at least one tool (namely Corese). The problem comes from the fact that the serializer produces something like

  <sparql:sparql xmlns:sparql="http://www.w3.org/2005/sparql-results#">

while Corese expects an empty NS prefix, as in

  <sparql xmlns="http://www.w3.org/2005/sparql-results#">

which is actually what the recommendation says. Again, the fact that the documentation uses XML namespaces makes me think that what RDFLib produces is valid, but the phrasing ("written as follow") makes it ambiguous. I explicitly asked the question on the public mailing list.

Whatever the answer is, I guess it wouldn't hurt to be a little more conservative in RDFLib. If I'm correct, changing that line to use the empty prefix rather than the "sparql" prefix would do the trick (sorry, not really able to test it myself right now).

@joernhees joernhees added enhancement New feature or request SPARQL labels Jul 8, 2015
@joernhees joernhees added this to the rdflib 5.0.0 milestone Jul 8, 2015
@joernhees
Copy link
Member

@gromgull any feedback on this?

@joernhees
Copy link
Member

@gromgull
Copy link
Member

fixed by #588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SPARQL
Projects
None yet
Development

No branches or pull requests

3 participants