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.
I've reviewed this change, it certainly simplifies that section of the code, and it appears to me that it provides identical functionality and purpose to the original code.
Hopefully, this makes the code bit easier to understand as well.