if r.property._class_property_some and ((r.type == VALUE) or (r.type == SOME) or ((r.type == EXACTLY) and r.cardinality >= 1) or ((r.type == MIN) and r.cardinality >= 1)):
AttributeError: 'Inverse' object has no attribute '_class_property_some'
The following code doesn't treat the case of Inverse property, which has no _class_property_some nor _class_property_only property.
def INDIRECT_get_class_properties(Class):
l = set()
for r in _inherited_properties_value_restrictions(Class, None, set()):
if r.property._class_property_some and ((r.type == VALUE) or (r.type == SOME) or ((r.type == EXACTLY) and r.cardinality >= 1) or ((r.type == MIN) and r.cardinality >= 1)):
l.add(r.property)
elif r.property._class_property_only and (r.type == ONLY):
l.add(r.property)
for storid in Class.namespace.world._get_triples_s_p(Class.storid):
Prop = Class.namespace.world._get_by_storid(storid)
if not Prop is None: # None is is-a,...
l.add(Prop)
return l
Output of Inverse attributes (_class_property_only and _class_property_some are NOT here):
Error:
The following code doesn't treat the case of Inverse property, which has no _class_property_some nor _class_property_only property.
Output of Inverse attributes (_class_property_only and _class_property_some are NOT here):
Output of other property attributes (_class_property_only and _class_property_some ARE here):