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.
Build the to_be_removed variable upfront to contain all the triples
with literal object, then process it. This avoids incremental building
of the set and makes code less nested.
Build the
to_be_removed
variable upfront to contain all the triples with literal object, then process it. This avoids incremental building of the set and makes code less nested.