Hello,
there is a bug in the prop.py when you want to remove and set new data properties of an entity.
In the _callback routine, you are trying to change the difference of the properties (new-old) with _add_data_triple_spod() and _del_data_triple_spod() and you are trying to get the data type of the already existing properties and pass it in the SQL command.
This never deletes data property assertions that are in the ontology without type specification (and also created with owlready2).
FOR EXAMPLE:
<owl:NamedIndividual rdf:about="#entity1">
<rdf:type rdf:resource="#Entry"/>
<abbreviation>ex1</abbreviation>
</owl:NamedIndividual>
The command
abbreviation[entity1] = ["ex2"]
generates the following 2 statements:
* Owlready2 * DEL TRIPLE ex#entity1 ex#abbreviation ex1
http://www.w3.org/2001/XMLSchema#string* Owlready2 * DEL TRIPLE ex#entity1 ex#abbreviation ex2
http://www.w3.org/2001/XMLSchema#stringThis will not delete the first triple, since d is None here.
I recommend to go to _spo at least for deleting the triple and to neglect the type.