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.
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.
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.