Open leliamesteban opened 4 years ago
We probably need to tweak the readme.
The code should say:
print(g.serialize(format='json-ld', indent=4).decode())
The default serialization is bytes, not UTF8
Oops - managed to accidentally push the proposed change into the 1.1 branch w/o a pull request. Apologies...
Is this issue still open? As in, do we have to use .decode() after calling .serialize() on a graph?
I ran the code from the README.md and I get this output:
The
\n
newlines are not interpeted and it's difficult to see the structure of the output. This is the case when usingpython3
but notpython2.7
.