Skip to content
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

All serializations other than nquads fail #153

Open
jrvosse opened this issue Dec 18, 2023 · 0 comments
Open

All serializations other than nquads fail #153

jrvosse opened this issue Dec 18, 2023 · 0 comments

Comments

@jrvosse
Copy link

jrvosse commented Dec 18, 2023

Using the "buurt.csv" file from the tutorial, all formats other than nquads fail to serialize. I get the same behavior on my other CSV files.

shell> cow_tool convert --format turtle buurt.csv
...
Something went wrong, skipping buurt.csv.
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/cow_csvw/csvw_tool.py", line 79, in __init__
    g.serialize(destination=output_file,
  File "/opt/homebrew/lib/python3.11/site-packages/rdflib/graph.py", line 1118, in serialize
    serializer.serialize(stream, base=base, encoding=encoding, **args)
  File "/opt/homebrew/lib/python3.11/site-packages/rdflib/plugins/serializers/turtle.py", line 241, in serialize
    self.startDocument()
  File "/opt/homebrew/lib/python3.11/site-packages/rdflib/plugins/serializers/turtle.py", line 306, in startDocument
    self.write(self.indent() + "@prefix %s: <%s> .\n" % (prefix, uri))
  File "/opt/homebrew/lib/python3.11/site-packages/rdflib/plugins/serializers/turtle.py", line 171, in write
    self.stream.write(text.encode(self.encoding, "replace"))
TypeError: write() argument must be str, not bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant