Missing object property values in owl file after Save() when property type = "only"
This post was updated on .
I am having some problems saving my OWL file when I have a property with the property type "only" (class_property_type = ["only"]). Basically, if such a property has values [value1, value2, value3, ... value-n], then the owl file will only contain [value1, value2].
I have made an example file based on my ontology of zoning types and land uses, where each zoning type "allowsUse" or "doesNotAllowUse" "Use". In my example, I have set allowsUse to have property type "only" and doesNotAllowUse to "some". When I assert that a CommercialZone allowsUse UseA, UseB and UseC, printing onto.CommercialZone.allowsUse returns UseA, UseB and UseC, as expected. However, when I save the file and open the owl file, then onto.CommercialZone.allowsUse only has values UseA and UseB (see image).
In general, with the "only" property, only max 2 property values are stored in the owl file. With a "some" property (such as doesNotAllowUse) there is no such problem.
Do you know if this is a bug in OwlReady2, or am I just missing something?
class allowsUse(ZoningType >> LandUse): class_property_type = ["only"]
class doesNotAllowUse(ZoningType >> LandUse): class_property_type = ["some"]