forked from edward/owl-map
Bug fix for 'no value' in P31
This commit is contained in:
parent
0cb60ee604
commit
f11b440b3f
|
@ -331,6 +331,9 @@ def get_isa_count(items):
|
||||||
for item in items:
|
for item in items:
|
||||||
isa_list = item.get_claim("P31")
|
isa_list = item.get_claim("P31")
|
||||||
for isa in isa_list:
|
for isa in isa_list:
|
||||||
|
if not isa:
|
||||||
|
print("missing IsA:", item.qid)
|
||||||
|
continue
|
||||||
isa_count[isa["id"]] += 1
|
isa_count[isa["id"]] += 1
|
||||||
|
|
||||||
return isa_count.most_common()
|
return isa_count.most_common()
|
||||||
|
|
Loading…
Reference in a new issue