Include heritage designation in Wikidata item details

This commit is contained in:
Edward Betts 2021-10-06 18:43:37 +02:00
parent 71ac793101
commit b49d92b0bd

View file

@ -648,6 +648,9 @@ def item_detail(item):
street_address = get_item_street_addresses(item)
heritage_designation = [get_item(v["numeric-id"]).label()
for v in item.get_claim("P1435")]
d = {
"qid": item.qid,
"label": item.label(),
@ -657,6 +660,7 @@ def item_detail(item):
"street_address": street_address,
"isa_list": item.get_isa_qids(),
"closed": item.closed(),
"heritage_designation": heritage_designation,
}
if aliases := item.get_aliases():