Re: How to import instances and its corresponding property values from database to an ontology
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/How-to-import-instances-and-its-corresponding-property-values-from-database-to-an-ontology-tp387p390.html
Hi,
You should also check that my_customer.customerNumber is really a dataproperty (you may mispelled the dataproperty name, or forget to create it).
This can be done with :
print(my_customer.customerNumber)
BEFORE my_customer.customerNumber = ... . If it is a dataproperty, you should obtain an empty list (no value defined yet). If it is not, you should get an AttributeError.
Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13