-
Notifications
You must be signed in to change notification settings - Fork 555
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
Allow hext to participate in RDF format roundtripping #1656
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, some suggestions but the only critical one is to manually specify the type of HextuplesSerializer.graph_type
in rdflib/plugins/serializers/hext.py
Making a PR with all changes included |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Thanks @aucampia. I added those casts to try and avoid some warnings shown in PyCharm but yeah, the code passed all MyPy tests without the casts. But then I did miss that type setting on |
…hext_fixes One typing fix and removal of redundant casts
I'll give this a few days but if there's no further review, I'll merge: it's a pretty small PR and has had one review! |
Think you should go ahead with the merge as this fixes some important things in serialization. |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Until now, HexTuples parsing & serializing could not participate in RDF format roundtripping due to numerous failures. well, I've solved them by: