Closed Demirrr closed 2 months ago
Using nothing doesn't seem to work
# hasChild a nothing.
assert hermit.instances(OWLObjectSomeValuesFrom(property=hasChild, filler=nothing))==eval("{OWLNamedIndividual(IRI('http://example.com/father#', 'michelle')), OWLNamedIndividual(IRI('http://example.com/father#', 'heinz')))}")
This got fixed. There was a Manchester rendering & parsing issue for owl:Nothing.
Btw you can use OWLNothing
and OWLThing
instead of declaring them from scratch.
from owlapy.class_expression import OWLNothing, OWLThing
Great thank you!
hermit.instances(OWLNothing.get_object_complement_of())
doesnt seem to work :(
This is now fixed fixed! PR: #73
Throws the following error
Traceback (most recent call last): File "ManchesterOWLSyntaxClassExpressionParser.java", line 53, in org.semanticweb.owlapi.manchestersyntax.parser.ManchesterOWLSyntaxClassExpressionParser.parse Exception: Java Exception
The above exception was the direct cause of the following exception: