RDFLib / OWL-RL

A simple implementation of the OWL2 RL Profile on top of RDFLib: it expands the graph with all possible triples that OWL RL defines. It can be used together with RDFLib to expand an RDFLib Graph object, or as a stand alone service with its own serialization.
http://www.ivan-herman.net/Misc/2008/owlrl/
Other
140 stars 30 forks source link

allow unicode literals #1

Closed maparent closed 6 years ago

maparent commented 9 years ago

The rdflib Literal.__str__ uses the python default encoding, which is often ascii and breaks on unicode literals. The safe thing to do is to convert RDF literals to unicode, not str, on python 2.7.

iherman commented 6 years ago

@mparent, apologies to have missed that; I have not looked at this project for many years now.

(I will have to update the online service as well, hope to get it done today.)