Skip to content

UserWarning: NTSerializer does not use custom encoding when serializing to N-Triples #1617

Answered by tcmitchell
tcmitchell asked this question in Q&A
Discussion options

You must be logged in to vote

Workaround: use 'nt11' serializer:

Python 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rdflib
RDFLib Version: 6.0.0
>>> g = rdflib.Graph()
>>> g.parse('example3.nt', format='nt')
<Graph identifier=N28292d3babca46daa94ad47248958fa6 (<class 'rdflib.graph.Graph'>)>
>>> out = g.serialize(format='nt11')
>>> 

Why isn't N-Triples 1.1 the default? It dates to February, 2014.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1376 on December 27, 2021 16:06.