From 6795589c615f9d878fa0d327dfffd1765be5b5d9 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Thu, 28 Jan 2016 16:33:44 +0100 Subject: changed prefix for SPARQL namespace in XML serialization* --- rdflib/plugins/sparql/results/xmlresults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdflib/plugins/sparql/results/xmlresults.py b/rdflib/plugins/sparql/results/xmlresults.py index 8c7f0000..85c33882 100644 --- a/rdflib/plugins/sparql/results/xmlresults.py +++ b/rdflib/plugins/sparql/results/xmlresults.py @@ -145,7 +145,7 @@ class SPARQLXMLWriter: def __init__(self, output, encoding='utf-8'): writer = XMLGenerator(output, encoding) writer.startDocument() - writer.startPrefixMapping(u'sparql', SPARQL_XML_NAMESPACE) + writer.startPrefixMapping(u'', SPARQL_XML_NAMESPACE) writer.startPrefixMapping(u'xml', XML_NAMESPACE) writer.startElementNS( (SPARQL_XML_NAMESPACE, u'sparql'), -- cgit v1.2.1