Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create inferred triples in a NAMED graph #42

Open
anatoly-scherbakov opened this issue Mar 8, 2021 · 1 comment
Open

Create inferred triples in a NAMED graph #42

anatoly-scherbakov opened this issue Mar 8, 2021 · 1 comment

Comments

@anatoly-scherbakov
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant