Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It fixes the bug when getting INDIRECT_get_class_properties #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ def get_class_properties(Class):
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)):
if getattr(r.property, "_class_property_some", False) 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):
elif getattr(r.property, "_class_property_only", False) and (r.type == ONLY):
l.add(r.property)

for storid in Class.namespace.world._get_triples_s_p(Class.storid):
Expand Down