You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it may be caused by using normal Python semantics to infer literals with same value. In my case ex:Blorb is not understood by Rdflib so it assigns it the value None. However, since both are None they compare equal and they add the attributes.
Another example shows the same happen with integers and booleans:
Here both ex:alpha and ex:beta ends up with ex:hasValue for both xsd:boolean and xsd:integer even though (at least I think) they are different values in RDF(S) interpretations.
I think the issue might be caused by the following lines. Line 124 applies Python semantics to the value equality check: I am not sure what a good fix for this is.
The other part is that literals with unknown datatypes receive value None from the self._literals() call: those literals with value of None should probably be filtered away before the comparison.
Running version 6.0.2. In this example, after running the closure, both
ex:alpha
andex:beta
has both42
and22
under theex:hasValue
predicate.The text was updated successfully, but these errors were encountered: