Closed lu-pl closed 1 year ago
Sorry to bother you again, but I just did a very basic test and realized that reasonable apparently doesn't materialize owl:inverseOf inferences.
reasonable
owl:inverseOf
OS: Arch Linux Python: 3.11 reasonable: 0.2.2
import reasonable from rdflib import Namespace, Graph from rdflib.namespace import OWL ex = Namespace("http://example.org/") graph = Graph() graph.add((ex.subj, ex.pred, ex.obj)) graph.add((ex.inverse, OWL.inverseOf, ex.pred)) r = reasonable.PyReasoner() r.from_graph(graph) entailed = r.reason() print((ex.obj, ex.inverse, ex.subj) in entailed) # False
Am I missing something or is this a problem with reasonable?
Looks like it is a bug in reasonable! Suprised we didn't run into that sooner. I've pushed a fix to reasonable==0.2.3 -- this should have the expected behavior.
reasonable==0.2.3
Sorry to bother you again, but I just did a very basic test and realized that
reasonable
apparently doesn't materializeowl:inverseOf
inferences.OS: Arch Linux Python: 3.11 reasonable: 0.2.2
Am I missing something or is this a problem with
reasonable
?