Open jgeluk opened 2 years ago
Workaround:
OWL._fail = False
Renamed OWL.Datatype
to OWL.DatatypeProperty
in this fork: https://github.com/EKGF/OWL-RL
This looks a cut and paste like a typo:
OWL:Datatype
should be RDFS:Datatype
Renamed
OWL.Datatype
toOWL.DatatypeProperty
in this fork: https://github.com/EKGF/OWL-RL
This is not ideal: you are adding "to be removes triple" like
to_be_removed.add((OWL.DataRange, OWL.equivalentClass, RDFS.Datatype))
That will never happens (and fail to remove some noise)
=> RDFS:Datatype
Alright, makes sense.
can this be merged asap? seems like a trivial fix.
I had the same issue. I agree with the assessment made by @jjoao . It looks like copy/paste typo errors in two lines in the method 'post_process(self)' of class OWLRL_Extension_Trimming. Consider these 3 lines of code:
to_be_removed.add((RDFS.Datatype, OWL.equivalentClass, OWL.DataRange))
to_be_removed.add((OWL.DataRange, RDFS.subClassOf, OWL.Datatype))
to_be_removed.add((OWL.DataRange, OWL.equivalentClass, OWL.Datatype))
The first of these 3 lines refers to RDFS.Datatype, but the other two lines mistakenly refer to OWL.Datatype, which doesn't exist in the OWL namespace. So a fix involves changing OWL.Datatype to RDFS.Datatype in these two lines.
bump
This line fails with rdflib 6.1.1 because the OWL namespace defined in rdflib does not support the
OWL.Datatype
property:https://github.com/RDFLib/OWL-RL/blob/a77e1791b88b54aace609bc6000aac14c7add4ff/owlrl/OWLRLExtras.py#L354