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 improves performance of
LiteralProxies
class and handling of literals in general.Please consider the following script
Before the change, the script outputs
where the
time
column shows how long it took to perform the inference with OWL-RL.After the change, the script outputs
We can see significant performance improvement.