OWL-RL icon indicating copy to clipboard operation
OWL-RL copied to clipboard

Create inferred triples in a NAMED graph

Open anatoly-scherbakov opened this issue 4 years ago • 1 comments

When using an rdflib.ConjunctiveGraph, OWL-RL creates its inferred triples in the default, unnamed graph.

Is it possible to create them in a specific named graph instead, if so requested by the user?

anatoly-scherbakov avatar Mar 08 '21 19:03 anatoly-scherbakov

I came up with something: https://github.com/octadocs/octadocs/blob/master/octadocs/octiron/owlrl_named_graph.py

Usage: https://github.com/octadocs/octadocs/blob/master/octadocs/octiron/inference.py#L15

But this won't work with rdflib 6.0.0. I haven't yet ascertained why, but no inferences at all are being drawn. For now, I am sticking to rdflib 5.0.0.

anatoly-scherbakov avatar Aug 01 '21 06:08 anatoly-scherbakov