diff options
author | Gunnar Aastrand Grimnes <gromgull@users.noreply.github.com> | 2017-01-12 11:01:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 11:01:05 +0100 |
commit | 3e74b392b831c3c26f67174d9fd57e27bb58ff92 (patch) | |
tree | c2588aeafabeb0c2c06d7a933104bb9a61c16d4e | |
parent | 2c521869ad9a3c7375f9bdc808e0ab4b1d13b661 (diff) | |
parent | 6795589c615f9d878fa0d327dfffd1765be5b5d9 (diff) | |
download | rdflib-3e74b392b831c3c26f67174d9fd57e27bb58ff92.tar.gz |
Merge pull request #588 from pchampin/fix-issue-493
changed prefix for SPARQL namespace in XML serialization
-rw-r--r-- | rdflib/plugins/sparql/results/xmlresults.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |