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.
Improve iterating over keys of a dictionary in multiple places: avoid using
for k in list(dict.keys())
.Also, use
product
function whenever possible to simplify the source code.