-
Notifications
You must be signed in to change notification settings - Fork 560
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
Turtle serializer: @base directive isn't added #559
Comments
Neither is xml:base added when serializing as xml: >>> g = rdflib.Graph()
>>> g.add((rdflib.URIRef('http://example.com/foo'), rdflib.URIRef('http://example.com/term'), rdflib.URIRef('http://example.com/bar')))
>>> print(g.serialize(format='xml', base='http://example.com').decode('utf-8'))
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:ns1="http://example.com/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<rdf:Description rdf:about="/foo">
<ns1:term rdf:resource="/bar"/>
</rdf:Description>
</rdf:RDF> |
any update on this? |
i do see use cases where having if this issue does get fixed, i suggest that |
Hi...Can I work this issue? It seems pretty straightforward. I would love to communicate with the maintainers regarding the same. |
If there are no objections to adding this feature, maybe as @chrysn suggests, you are welcome. We are happy about any pull-request helping us to fix bugs. We will have to see in which milestone it will be released. |
This issue seems to have been fixed. rdflib version 5.0
|
As observed by achaudhary997, no longer an issue |
When doing
graph.serialize(stream, base='...')
, the@base
directive isn't added.I found a mention of this in #248 (comment) by @gromgull :
but I find this slightly counterintuitive.
The text was updated successfully, but these errors were encountered: