The extra attribute q:qname
is a Sesame-specific extension of the standard format. It is a configuration setting that is supported by Sesame's SPARQLXMLWriter
but is not enabled by default.
It appears, however, that the Workbench client application enables this feature and adds these additional attributes when exporting query results. So I suspect that you are getting your query result by doing the query in the Workbench and then exporting the result to file. This is a bug in the Workbench application and has now been reported as such (see SES-2059).
A workaround is to instead query your Sesame server from a different tool, bypassing the Workbench's problem. You can use something like curl
, or you can even do this from any web browser directly if you want.
For example, if your SPARQL query was this:
SELECT * WHERE {?S ?P ?O } LIMIT 100
and you have a Sesame server running on, for example, localhost:8080
, and the repository you're querying is called myRepository
, you can get the result from your Sesame server directly by entering this URL into your browser:
http://localhost:8080/openrdf-sesame/repositories/myRepository?query=SELECT * WHERE {?S ?P ?O } LIMIT 100
Another workaround would be to appeal to the dotNetRDF developers to relax their parser's strictness a bit :)