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.
This problem has been reported in https://github.com/RDFLib/OWL-RL/issues/50, but there it has been reported as a problem on PROV-O.
The problem seems to be more generic than that. The following is a minimal example:
The augmented graph contains the following (offensive) inferred triple:
This type of inferred facts would cause the graph to be unparseable in some triplestores. In GraphDB, for instance, one gets a parsing error.
Other OWL-RL reasoners, like the one from GraphDB, do not generate statements with literals as the first component of a triple.
The version used was owlrl==6.0.2
The ticket https://github.com/RDFLib/OWL-RL/issues/13 seems to aim to solve this, but is it open since 2018. Are there any plans to fix it?